From 5f6bd1078b20823e7382ade77e34d65e9c365772 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 2 Feb 2022 23:06:47 +0000 Subject: made rust compile correctly for js78 to work --- repo/devel/rustc.xibuild | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'repo/devel/rustc.xibuild') diff --git a/repo/devel/rustc.xibuild b/repo/devel/rustc.xibuild index f6d9bc3..97f6b3f 100644 --- a/repo/devel/rustc.xibuild +++ b/repo/devel/rustc.xibuild @@ -33,10 +33,10 @@ extended = true [install] # Adjust the prefix for the desired destination #prefix = "/usr" -prefix = "/opt/rustc-1.32.0" +prefix = "/opt/rustc-$PKG_VER" # docdir is used even if the full awesome docs are not installed -docdir = "share/doc/rustc-1.32.0" +docdir = "share/doc/rustc-$PKG_VER" [rust] channel = "stable" @@ -72,10 +72,8 @@ pathprepend /opt/rustc/bin PATH # End /etc/profile.d/rustc.sh EOF -} - -postinstall () { -cat >> /etc/ld.so.conf << EOF + mkdir -pv $PKG_DEST/etc/ld.so.conf.d +cat >> $PKG_DEST/etc/ld.so.conf.d/rustc.conf << EOF # Begin rustc addition /opt/rustc/lib @@ -83,5 +81,4 @@ cat >> /etc/ld.so.conf << EOF # End rustc addition EOF -ldconfig } -- cgit v1.2.1