Skip to content

Commit 3484b24

Browse files
committed
Add patch to fix building rust 1.25.x and newer
rust-lang/rust#51698
1 parent 68df5d5 commit 3484b24

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

rust/rust.SlackBuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ if [ "$LOCAL_BOOTSTRAP" = "yes" ] ; then
235235
sed -i "s|^\(extended = true\)$|\1\nrustc = \"/usr/bin/rustc\"\ncargo = \"/usr/bin/cargo\"|" config.toml
236236
fi
237237

238+
239+
if [ "$ARCH" = "x86_64" ] && [ "$LOCAL_BOOTSTRAP" = "yes" ] && [ "$(echo "$VERSION" | cut -d. -f 1)" -eq 1 ] && [ "$(echo "$VERSION" | cut -d. -f 2)" -gt 24 ] ; then
240+
zcat $CWD/slackware64_local_bootstrap.diff.gz | patch -p1 --verbose || exit 1
241+
fi
242+
238243
chown -R root:root .
239244
find -L . \
240245
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
328 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)