mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
rust: enable i686.
This commit is contained in:
parent
085f0baae6
commit
2fd82131b6
1 changed files with 22 additions and 11 deletions
|
@ -9,7 +9,7 @@ lib32disabled=yes
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
build_style=configure
|
build_style=configure
|
||||||
make_build_args="dist VERBOSE=1"
|
make_build_args="dist VERBOSE=1"
|
||||||
only_for_archs="x86_64 x86_64-musl"
|
only_for_archs="i686 x86_64 x86_64-musl"
|
||||||
hostmakedepends="cmake curl pkg-config python"
|
hostmakedepends="cmake curl pkg-config python"
|
||||||
makedepends="libffi-devel lld-devel llvm ncurses-devel zlib-devel"
|
makedepends="libffi-devel lld-devel llvm ncurses-devel zlib-devel"
|
||||||
short_desc="Safe, concurrent, practical systems language"
|
short_desc="Safe, concurrent, practical systems language"
|
||||||
|
@ -41,6 +41,17 @@ x86_64)
|
||||||
08f8cde5c305ba22052871292336d63cb493cbf38bb050ab0b8496a3536cac1c
|
08f8cde5c305ba22052871292336d63cb493cbf38bb050ab0b8496a3536cac1c
|
||||||
8ecf9bca3ece59ee291afda5fd8c371739d0d52771912c5da0d909fd9d130b3f"
|
8ecf9bca3ece59ee291afda5fd8c371739d0d52771912c5da0d909fd9d130b3f"
|
||||||
;;
|
;;
|
||||||
|
i686)
|
||||||
|
# extract from src/stage0.txt
|
||||||
|
distfiles+="
|
||||||
|
https://static.rust-lang.org/dist/2016-12-18/rustc-1.14.0-i686-unknown-linux-gnu.tar.gz
|
||||||
|
https://static.rust-lang.org/dist/2016-12-18/rust-std-1.14.0-i686-unknown-linux-gnu.tar.gz
|
||||||
|
https://static.rust-lang.org/cargo-dist/2016-11-28/cargo-nightly-i686-unknown-linux-gnu.tar.gz"
|
||||||
|
checksum+="
|
||||||
|
af22508823865245dc1c451d79679c33898092573608017b5b4b764b1dfe205e
|
||||||
|
6ddbcb00893645d9c06ef2f82d60e516e618cfed03abe6deb0a18be7914d3394
|
||||||
|
8fb0cacdd2ab32b8dbdf74ae63914e1f97baf8bac0e8c1db1414a57677b93f88"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
|
@ -87,29 +98,29 @@ pre_build() {
|
||||||
do_configure() {
|
do_configure() {
|
||||||
local _triplet
|
local _triplet
|
||||||
case $XBPS_TARGET_MACHINE in
|
case $XBPS_TARGET_MACHINE in
|
||||||
i686*) _triplet=i686-unknown-linux-gnu;;
|
i686) _triplet=i686-unknown-linux-gnu;;
|
||||||
x86_64) _triplet=x86_64-unknown-linux-gnu;;
|
x86_64) _triplet=x86_64-unknown-linux-gnu;;
|
||||||
x86_64-musl) _triplet=x86_64-unknown-linux-musl;;
|
x86_64-musl) _triplet=x86_64-unknown-linux-musl;;
|
||||||
*) _triplet=$XBPS_TARGET_MACHINE;;
|
*) _triplet=$XBPS_TARGET_MACHINE;;
|
||||||
esac
|
esac
|
||||||
export LD_LIBRARY_PATH="$wrksrc/stage0/lib"
|
export LD_LIBRARY_PATH="$wrksrc/stage0/lib"
|
||||||
configure_args="
|
configure_args="
|
||||||
--prefix=/usr
|
--prefix=/usr
|
||||||
--host=${_triplet}
|
--host=${_triplet}
|
||||||
--build=${_triplet}
|
--build=${_triplet}
|
||||||
--release-channel=stable
|
--release-channel=stable
|
||||||
--disable-rpath
|
--disable-rpath
|
||||||
--enable-ccache
|
--enable-ccache
|
||||||
--enable-rustbuild
|
--enable-rustbuild
|
||||||
--llvm-root=/usr
|
--llvm-root=/usr
|
||||||
"
|
"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
configure_args+="--musl-root=/usr --disable-jemalloc"
|
configure_args+="--musl-root=/usr --disable-jemalloc"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
./configure $configure_args
|
./configure $configure_args
|
||||||
|
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
vmkdir usr
|
vmkdir usr
|
||||||
|
|
Loading…
Add table
Reference in a new issue