Changeset View
Changeset View
Standalone View
Standalone View
package.yml
| name : rust | name : rust | ||||
| version : 1.38.0 | version : 1.39.0 | ||||
| release : 56 | release : 57 | ||||
| source : | source : | ||||
| - https://static.rust-lang.org/dist/rustc-1.38.0-src.tar.xz : 3a7991aa4cb44ef941d71636e45a95468b520dc6fc7cf725364925bd3e3d3a34 | - https://static.rust-lang.org/dist/rustc-1.39.0-src.tar.xz : 4b0dbb356070687a606034f71dc032b783bbf8b5d3f9fff39f2c1fbc4f171c29 | ||||
| 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 | ||||
| - ^cargo : The Rust build system | - ^cargo : The Rust build system | ||||
| description: | description: | ||||
| - Rust is a systems programming language that runs blazingly fast, prevents nearly all segfaults, and guarantees thread safety. | - Rust is a systems programming language that runs blazingly fast, prevents nearly all segfaults, and guarantees thread safety. | ||||
| Show All 10 Lines | |||||
| libsplit : no | libsplit : no | ||||
| builddeps : | builddeps : | ||||
| - pkgconfig(libgit2) | - pkgconfig(libgit2) | ||||
| - pkgconfig(libssh2) | - pkgconfig(libssh2) | ||||
| - cargo | - cargo | ||||
| - fakeroot-32bit # Tests | - fakeroot-32bit # Tests | ||||
| - glibc-32bit-devel | - glibc-32bit-devel | ||||
| - libgcc-32bit | - libgcc-32bit | ||||
| - llvm-devel | |||||
| rundeps : | rundeps : | ||||
| - ^cargo : | - ^cargo : | ||||
| - libgit2 | - libgit2 | ||||
| - libssh2 | - libssh2 | ||||
| - rust | - rust | ||||
| setup : | | setup : | | ||||
| %patch -p1 < $pkgfiles/Set-correct-libdir-in-bootstrap.patch | %patch -p1 < $pkgfiles/Set-correct-libdir-in-bootstrap.patch | ||||
| %patch -p1 src/bootstrap/native.rs $pkgfiles/Fix-building-1.35.0-with-internal-llvm.patch | |||||
| sed -e 's|PREFIX|%PREFIX%|g' \ | sed -e 's|PREFIX|%PREFIX%|g' \ | ||||
| -e 's|LIBDIR|%libdir%|g' $pkgfiles/config.toml.in > config.toml | -e 's|LIBDIR|%libdir%|g' $pkgfiles/config.toml.in > config.toml | ||||
| build : | | build : | | ||||
| # Don't use system libgit2 for now: https://github.com/rust-lang/rust/issues/63476 | # Don't use system libgit2 for now: https://github.com/rust-lang/rust/issues/63476 | ||||
| #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 | |||||
| # since it sometimes fails on the build server | |||||
| unset LD_AS_NEEDED LDFLAGS | |||||
| export CFLAGS="-march=x86-64 -mtune=generic -O3 -fstack-protector -pipe" | |||||
| export CXXFLAGS="$CFLAGS" | |||||
| ./x.py build | ./x.py build | ||||
| ./x.py build cargo | ./x.py build cargo | ||||
| install : | | install : | | ||||
| export DESTDIR=$installdir | export DESTDIR=$installdir | ||||
| ./x.py install | ./x.py install | ||||
| ./x.py install cargo | ./x.py install cargo | ||||
| install -dm00644 $installdir/usr/share/bash-completion/completions | install -dm00644 $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 | ||||
| # Remove license files and such | # Remove license files and such | ||||
| find $installdir/usr/share/doc/rust \( -name '*LICENSE*' -o -name '*COPYRIGHT*' \) -delete | find $installdir/usr/share/doc/rust \( -name '*LICENSE*' -o -name '*COPYRIGHT*' \) -delete | ||||
| rm $installdir/usr/share/doc/rust/{README.md,README.md.old} | rm $installdir/usr/share/doc/rust/{README.md,README.md.old} | ||||
| check : | | check : | | ||||
| # Some tests require targets we don't support, such as ARM. | # Some tests require targets we don't support, such as ARM. | ||||
| # For this reason we run only a small subset of the test suite. | # For this reason we run only a small subset of the test suite. | ||||
| ./x.py test src/test/codegen | ./x.py test src/test/codegen | ||||
| ./x.py test src/test/compile-fail | ./x.py test src/test/compile-fail | ||||
| ./x.py test src/test/pretty | |||||
| ./x.py test src/test/run-fail | ./x.py test src/test/run-fail | ||||
| ./x.py test src/test/run-make | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.