Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : rust | name : rust | ||||
| version : 1.34.2 | version : 1.35.0 | ||||
| release : 51 | release : 52 | ||||
| source : | source : | ||||
| - https://static.rust-lang.org/dist/rustc-1.34.2-src.tar.gz : c69a4a85a1c464368597df8878cb9e1121aae93e215616d45ad7d23af3052f56 | - https://static.rust-lang.org/dist/rustc-1.35.0-src.tar.xz : 169756df2298957bcf02da6a612996c24a51b9ac3b23409e6507d69eb2e6f523 | ||||
| - https://static.rust-lang.org/dist/2019-02-28/rustc-1.33.0-x86_64-unknown-linux-gnu.tar.gz : 54a342f718b712d8a17fd7878ebd37d22a82ebc70b59c421168cd4153fd04c2b | |||||
| - https://static.rust-lang.org/dist/2019-02-28/rust-std-1.33.0-x86_64-unknown-linux-gnu.tar.gz : 661c2ba717ae1502f002b4c6e7aeb8941685c7ea8fe7ac26ed9ede26f615b7af | |||||
| - https://static.rust-lang.org/dist/2019-02-28/cargo-0.34.0-x86_64-unknown-linux-gnu.tar.gz : 4795ae5ca3bb8c7c83ca338676bb02b670efa1eb474e346284b629dc872bcce8 | |||||
| license : | license : | ||||
| - Apache-2.0 | - Apache-2.0 | ||||
| - MIT | - MIT | ||||
| summary : | summary : | ||||
| - A fast and secure system programming language | - A fast and secure system programming language | ||||
| - docs : Documentation for the Rust language | - docs : Documentation for the Rust language | ||||
| - ^cargo : The Rust build system | - ^cargo : The Rust build system | ||||
| description: | description: | ||||
| Show All 9 Lines | - ^cargo : | ||||
| - /usr/bin/cargo | - /usr/bin/cargo | ||||
| - /usr/share/bash-completion/completions/cargo | - /usr/share/bash-completion/completions/cargo | ||||
| - /usr/share/man/man1/cargo* | - /usr/share/man/man1/cargo* | ||||
| - /usr/share/zsh/site-functions/_cargo | - /usr/share/zsh/site-functions/_cargo | ||||
| - docs : | - docs : | ||||
| - /usr/share/doc/* | - /usr/share/doc/* | ||||
| libsplit : no | libsplit : no | ||||
| builddeps : | builddeps : | ||||
| # Cargo deps | |||||
| - pkgconfig(libgit2) | - pkgconfig(libgit2) | ||||
| - pkgconfig(libssh2) | - pkgconfig(libssh2) | ||||
| # i686 target deps | - cargo | ||||
| - fakeroot-32bit # Tests | - fakeroot-32bit # Tests | ||||
| - glibc-32bit-devel | - glibc-32bit-devel | ||||
| - libgcc-32bit | - libgcc-32bit | ||||
| rundeps : | rundeps : | ||||
| - ^cargo : | - ^cargo : | ||||
| - libgit2 | - libgit2 | ||||
| - libssh2 | - libssh2 | ||||
| - rust | - rust | ||||
| setup : | | setup : | | ||||
| %patch -p1 < $pkgfiles/Fix-rust-1.34-bootstrap.patch | %patch -p1 < $pkgfiles/Set-correct-libdir-in-bootstrap.patch | ||||
| stage0_date=$(grep '^date' src/stage0.txt | awk '{ print $2 }') | %patch -p1 src/bootstrap/native.rs $pkgfiles/Fix-building-1.35.0-with-internal-llvm.patch | ||||
| mkdir -p build/cache/$stage0_date | sed -e 's|PREFIX|%PREFIX%|g' \ | ||||
| ln -sv $sources/* build/cache/$stage0_date/ | -e 's|LIBDIR|%libdir%|g' $pkgfiles/config.toml.in > config.toml | ||||
| sed -e 's|PREFIX|%PREFIX%|' \ | |||||
| -e 's|LIBDIR|%libdir%|' $pkgfiles/config.toml.in > config.toml | |||||
| build : | | build : | | ||||
| export LIBGIT2_SYS_USE_PKG_CONFIG=1 | export LIBGIT2_SYS_USE_PKG_CONFIG=1 | ||||
| export LIBSSH2_SYS_USE_PKG_CONFIG=1 | export LIBSSH2_SYS_USE_PKG_CONFIG=1 | ||||
| # These env variables are for LLVM to be built correctly | # These env variables are for LLVM to be built correctly | ||||
| # since it sometimes fails on the build server | # since it sometimes fails on the build server | ||||
| unset LD_AS_NEEDED LDFLAGS CXXFLAGS CFLAGS | unset LD_AS_NEEDED LDFLAGS CXXFLAGS CFLAGS | ||||
| export CFLAGS="-march=x86-64 -mtune=generic -O3 -fstack-protector -pipe" | export CFLAGS="-march=x86-64 -mtune=generic -O3 -fstack-protector -pipe" | ||||
| export CXXFLAGS="$CFLAGS" | export CXXFLAGS="$CFLAGS" | ||||
| ./x.py build %JOBS% | ./x.py build %JOBS% | ||||
| ./x.py doc %JOBS% | |||||
| install : | | install : | | ||||
| DESTDIR=$installdir ./x.py install %JOBS% | DESTDIR=$installdir ./x.py install %JOBS% | ||||
| install -m00644 -d $installdir/usr/share/bash-completion/completions | install -m00644 -d $installdir/usr/share/bash-completion/completions | ||||
| mv $installdir/etc/bash_completion.d/cargo $installdir/usr/share/bash-completion/completions/ | mv $installdir/etc/bash_completion.d/cargo $installdir/usr/share/bash-completion/completions/ | ||||
| rm -rf $installdir/etc | rm -rf $installdir/etc | ||||
| # Remove text files from libs (manifests, installation logs...) | # Remove text files from libs (manifests, installation logs...) | ||||
| find $installdir/%libdir%/rustlib -maxdepth 1 -type f -delete | find $installdir/%libdir%/rustlib -maxdepth 1 -type f -delete | ||||
| Show All 9 Lines | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.