From 94f278ba8311df4c73d9df01946748104e602793 Mon Sep 17 00:00:00 2001 From: Andrew Clemons Date: Sat, 10 Dec 2022 23:31:02 +0900 Subject: [PATCH] development/racer: Updated for version 2.2.1. Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- development/racer/README | 11 --- development/racer/racer.SlackBuild | 41 +++++----- development/racer/racer.info | 120 +++++++++++++++++++++++++++-- 3 files changed, 137 insertions(+), 35 deletions(-) diff --git a/development/racer/README b/development/racer/README index beee2409f8..8614f48dfe 100644 --- a/development/racer/README +++ b/development/racer/README @@ -1,12 +1 @@ racer - Rust Code Completion utility - -This requires rust nightly installed through rustup. Before running -this slackbuild, you should install the nightly from 2021-05-01 (or -later?) by running: - - rustup toolchain install \ - --component rustc-dev --profile default nightly-2022-01-14 - -Warning: This SlackBuild requires network access when it runs, meaning -it downloads files from the Internet with root access. You should -decide for yourself whether or not you think this is a good idea. diff --git a/development/racer/racer.SlackBuild b/development/racer/racer.SlackBuild index 2c15161b86..a2a84c6b70 100644 --- a/development/racer/racer.SlackBuild +++ b/development/racer/racer.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for racer # Copyright 2017-2018,2020-2021 Andrew Clemons, Wellington New Zealand +# Copyright 2022 Andrew Clemons, Tokyo Japan # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=racer -VERSION=${VERSION:-2.2.0} +VERSION=${VERSION:-2.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -59,15 +60,15 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" - CARGOTARGET="--target i586-unknown-linux-gnu" + CARGOTARGET="--target $ARCH-unknown-linux-gnu" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" - CARGOTARGET="--target i686-unknown-linux-gnu" -elif [ "$ARCH" = "x86_64" ]; then + CARGOTARGET="--target $ARCH-unknown-linux-gnu" +elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" - CARGOTARGET="--target x86_64-unknown-linux-gnu" + CARGOTARGET="--target $ARCH-unknown-linux-gnu" else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -133,6 +134,20 @@ mkdir vendor done ) +# racer needs a specific nightly version of rust +tar -xf $CWD/rust-nightly-$ARCH*-unknown-linux-gnu*.tar.gz +tar -xf $CWD/rustc-dev-nightly-$ARCH*-unknown-linux-gnu*.tar.gz +( + cd rust-nightly-$ARCH*-unknown-linux-gnu* + ./install.sh --destdir=../.rust --prefix="" --without=rust-docs --disable-ldconfig +) +( + cd rustc-dev-nightly-$ARCH*-unknown-linux-gnu* + ./install.sh --destdir=../.rust --prefix="" --disable-ldconfig +) +rm -rf rust-nightly-$ARCH*-unknown-linux-gnu* +rm -rf rustc-dev-nightly-$ARCH*-unknown-linux-gnu* + chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -140,23 +155,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -( - mkdir rustup-bin - cd rustup-bin - ln -s /usr/bin/rustup rustc -) -RUST_NIGHTLY=${RUST_NIGHTLY:-nightly-2022-01-14} - -if ! rustup toolchain list | grep "$RUST_NIGHTLY" > /dev/null 2>&1 ; then - rustup toolchain install --component rustc-dev --profile default "$RUST_NIGHTLY" -fi - -PATH="$(pwd)/rustup-bin:$PATH" \ +PATH="$(pwd)/.rust/bin/:$PATH" \ +LD_LIBRARY_PATH="$(pwd)/.rust/lib:$LD_LIBRARY_PATH" \ CARGO_HOME=.cargo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ -rustup run "$RUST_NIGHTLY" cargo build --release $CARGOTARGET +cargo build --release $CARGOTARGET mkdir -p $PKG/usr/bin/ diff --git a/development/racer/racer.info b/development/racer/racer.info index 164614c796..b8b166b9d0 100644 --- a/development/racer/racer.info +++ b/development/racer/racer.info @@ -1,7 +1,11 @@ PRGNAM="racer" -VERSION="2.2.0" +VERSION="2.2.1" HOMEPAGE="https://github.com/racer-rust/racer" -DOWNLOAD="https://github.com/racer-rust/racer/archive/v2.2.0/racer-2.2.0.tar.gz \ +DOWNLOAD="https://github.com/racer-rust/racer/archive/2.2.1/racer-2.2.1.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rust-nightly-i686-unknown-linux-gnu.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rustc-dev-nightly-i686-unknown-linux-gnu.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rust-nightly-armv7-unknown-linux-gnueabihf.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rustc-dev-nightly-armv7-unknown-linux-gnueabihf.tar.gz \ https://crates-io.s3-us-west-1.amazonaws.com/crates/aho-corasick/aho-corasick-0.7.18.crate \ https://crates-io.s3-us-west-1.amazonaws.com/crates/ansi_term/ansi_term-0.12.1.crate \ https://crates-io.s3-us-west-1.amazonaws.com/crates/atty/atty-0.2.14.crate \ @@ -48,7 +52,11 @@ DOWNLOAD="https://github.com/racer-rust/racer/archive/v2.2.0/racer-2.2.0.tar.gz https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-util/winapi-util-0.1.5.crate \ https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate \ https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi/winapi-0.3.9.crate" -MD5SUM="7b34a8dfc553aa55b28ad4701c40b92e \ +MD5SUM="ee279321a37bcf5b6844f0461d3abeee \ + 56a3aea28c989242d8cd5fbcf429e689 \ + dc2a10529622241d9541365fee0751e0 \ + faed9b806a4fe4ac7a74f747d45d0790 \ + 5d419e406d157817be43baa2a292c4a3 \ 425b8fdf70df59998d9b7c89083e48d1 \ f44e8d1d2e61974b268852797530ea41 \ 142cb4b9a653e56e56311f0c883b8582 \ @@ -95,8 +103,108 @@ MD5SUM="7b34a8dfc553aa55b28ad4701c40b92e \ b9e37d5fc4ad28b612b78ad37816684d \ 09de9d01e7331ff3da11f58be8bef0df \ 0498c4a11448bfc35dc7bb2caa64c753" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="rustup" +DOWNLOAD_x86_64="https://github.com/racer-rust/racer/archive/2.2.1/racer-2.2.1.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rust-nightly-x86_64-unknown-linux-gnu.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rustc-dev-nightly-x86_64-unknown-linux-gnu.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rust-nightly-aarch64-unknown-linux-gnu.tar.gz \ + https://static.rust-lang.org/dist/2022-01-14/rustc-dev-nightly-aarch64-unknown-linux-gnu.tar.gz \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/aho-corasick/aho-corasick-0.7.18.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/ansi_term/ansi_term-0.12.1.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/atty/atty-0.2.14.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/bitflags/bitflags-1.3.2.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/cfg-if/cfg-if-1.0.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/clap/clap-2.34.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/convert_case/convert_case-0.4.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/derive_more/derive_more-0.99.17.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/env_logger/env_logger-0.7.1.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/fastrand/fastrand-1.6.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/hermit-abi/hermit-abi-0.1.19.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/humantime/humantime-1.3.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/humantime/humantime-2.1.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/instant/instant-0.1.12.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/itoa/itoa-1.0.1.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/lazy_static/lazy_static-1.4.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/lazycell/lazycell-1.3.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.112.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/log/log-0.4.14.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/memchr/memchr-2.4.1.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/proc-macro2/proc-macro2-1.0.36.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/quick-error/quick-error-1.2.3.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/quote/quote-1.0.14.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/redox_syscall/redox_syscall-0.2.10.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/regex-syntax/regex-syntax-0.6.25.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/regex/regex-1.5.4.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/remove_dir_all/remove_dir_all-0.5.3.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/rls-span/rls-span-0.5.4.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/rustc_version/rustc_version-0.4.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/ryu/ryu-1.0.9.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/semver/semver-1.0.4.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/serde/serde-1.0.133.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/serde_derive/serde_derive-1.0.133.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/serde_json/serde_json-1.0.74.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/strsim/strsim-0.8.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/syn/syn-1.0.85.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/tempfile/tempfile-3.3.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/termcolor/termcolor-1.1.2.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/textwrap/textwrap-0.11.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/unicode-width/unicode-width-0.1.9.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/unicode-xid/unicode-xid-0.2.2.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/vec_map/vec_map-0.8.2.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-i686-pc-windows-gnu/winapi-i686-pc-windows-gnu-0.4.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-util/winapi-util-0.1.5.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate \ + https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi/winapi-0.3.9.crate" +MD5SUM_x86_64="ee279321a37bcf5b6844f0461d3abeee \ + 03be3f6d2f9ed4eb9afcbf0334bb5b8a \ + 3f0c2ed3988fa79d80f5e0c21b474fa3 \ + 83232e571be212303c92be5eb7048c39 \ + 58693d4aeeb02cc587ac648681391bdf \ + 425b8fdf70df59998d9b7c89083e48d1 \ + f44e8d1d2e61974b268852797530ea41 \ + 142cb4b9a653e56e56311f0c883b8582 \ + a295edb6953237ebbdfa8e731229f9a3 \ + 74634128440dbc3766bda76fdf0aaa05 \ + 59ae9122b2946d4d52bc48a1da5c5e06 \ + fff3aa07be4920daefab088326186e76 \ + b4585736b4551ce939e025bce98973fc \ + 081ed755ceb8e0b7c78cffde40fd084d \ + af4d95b1232fad952cb92c95e77f5f3c \ + 0b7994d1256215201bdfb810a357ffa2 \ + bb2582cae7b3d837f5da1df153001db5 \ + c01022fe0357c10ca1d48b16187f81bd \ + 5f153f7135dceb02f88266121c836b4e \ + 5c98b89b530b563b6e5f6e1b631c4b35 \ + fba3b040a55c01be7376d3dd5c4d4920 \ + 23cc9e52c52465f5b225e62ab7cc3457 \ + b47e45d4ce97cc8801c9607638fd86eb \ + 40e508baeee8cdccbc471489b0f449ff \ + d75b1c734f85b007c55ca84217df4201 \ + 5af0856196b1bb934f25a66b082c4131 \ + 3181dca31efe33cbed29a45d0ec67848 \ + c6a333e4527b04e6914a54b6342cda18 \ + 4a80ab58144fc731cd12abc6d5139d7f \ + 82401c70623ccc1bfc0bcb5c3b0ac8b7 \ + 4606e4a248df4d70509afded817aca14 \ + 0538d1da369f3e3f0412aa4d735c1b61 \ + f3ecdd7e46e81e0d54b4839dca48ae4e \ + fdf3aa5e1f6c33e4f68b0f7b08e1e94e \ + 7fe15f165a1812b23e5b1980aa364de2 \ + d8d8d451b56798b0485b1f21e31bfed2 \ + eb46ec258f86967c4e82b1a18aef2ccc \ + fc80378369ae5eb3ed948ca679f57d75 \ + bf157ab39406e7d8e470044e0764600e \ + 781d4ccf5d04c98fa02af207a9639249 \ + 54a1cfe5d06974014c253f60b3a7cd82 \ + f29a1bb1b5f3f29cedb36f40f720d765 \ + ebdff467249aa3dca005a441dc824236 \ + a8de006fe0c7e373c560dd51599287a8 \ + a42cc2834b2150027d7b427558a87803 \ + 087bfc476e9d73628cebd265590f11f7 \ + 333b4ba3f64c35b6f89b521e8d64548b \ + db96b50050277bf05a3c68534bbb9586 \ + b9e37d5fc4ad28b612b78ad37816684d \ + 09de9d01e7331ff3da11f58be8bef0df \ + 0498c4a11448bfc35dc7bb2caa64c753" +REQUIRES="" MAINTAINER="Andrew Clemons" EMAIL="andrew.clemons@gmail.com"