[Slackbuilds-users] rust

Jorge Almeida jjalmeida at gmail.com
Thu May 26 19:41:02 UTC 2016


On Thu, May 26, 2016 at 10:14 AM, Willy Sudiarto Raharjo
<willysr at slackbuilds.org> wrote:
>>> Yes the build script is broken since it doesn't install everything.
>>> I mean everything you have to do is to unpack the downloaded rust
>>> distribution:
>>> tar zxf rust-1.5.0-x86_64-unknown-linux-gnu.tar.gz
>>>
>>> And move the rust-1.5.0-x86_64-unknown-linux-gnu/rust-std-x86_64-
>>> unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/
>>> to /usr/lib64/rustlib/:
>>>
>>> mv rust-1.5.0-x86_64-unknown-linux-gnu/rust-std-x86_64-unknown-linux-
>>> gnu/lib/rustlib/x86_64-unknown-linux-gnu/ /usr/lib64/rustlib/
>>>
>>> and it will work.
>>> For 1.8.0 and 32bit it should be similar.
>>>
>>
>> I edited the Slackbuild according to your instructions (as I didn't
>> want to pollute the filesystem with stuff unknown to the Slackware
>> packaging system). Sure enough, it works fine now (with version 1.8.0,
>> 32bit system)
>
> a patch to fix this issue is very appreciated :)
>
Cheers

Jorge
-------------- next part --------------
--- rust.SlackBuild	2015-12-19 00:29:55.000000000 +0000
+++ rust.SlackBuild_new	2016-05-26 20:29:23.241567345 +0100
@@ -24,7 +24,7 @@
 
 PRGNAM=rust
 PRGNAM2=cargo
-VERSION=${VERSION:-1.5.0}
+VERSION=${VERSION:-1.8.0}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
@@ -41,16 +41,12 @@
 OUTPUT=${OUTPUT:-/tmp}
 
 if [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
   LIBDIRSUFFIX=""
 elif [ "$ARCH" = "i686" ]; then
-  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
   LIBDIRSUFFIX=""
 elif [ "$ARCH" = "x86_64" ]; then
-  SLKCFLAGS="-O2 -fPIC"
   LIBDIRSUFFIX="64"
 else
-  SLKCFLAGS="-O2"
   LIBDIRSUFFIX=""
 fi
 
@@ -99,6 +95,8 @@
 chmod 755 $PKG/usr/doc/$PRGNAM-$VERSION/html
 find -L $PKG/usr/doc/$PRGNAM-$VERSION/html -type d -exec chmod 755 {} \;
 
+mv $PRGNAM-std-$ARCH-unknown-linux-gnu/lib/rustlib/$ARCH-unknown-linux-gnu $PKG/usr/lib$LIBDIRSUFFIX/rustlib/
+
 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc
 


More information about the SlackBuilds-users mailing list