[arch-commits] Commit in rust/trunk (PKGBUILD)

Johannes Löthberg demize at archlinux.org
Sat Sep 28 14:01:33 UTC 2019


    Date: Saturday, September 28, 2019 @ 14:01:32
  Author: demize
Revision: 363507

Add comment explaining reason for ln -sf

Modified:
  rust/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 14:00:19 UTC (rev 363506)
+++ PKGBUILD	2019-09-28 14:01:32 UTC (rev 363507)
@@ -63,8 +63,11 @@
   cd "$pkgdir/usr/lib"
 
   rm rustlib/{components,manifest-rustc,rust-installer-version}
-  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
 
+  # rustbuild always installs copies of the shared libraries to /usr/lib,
+  # overwrite them with symlinks to the per-architecture versions
+  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so "$pkgdir"/usr/lib/
+
   # move docs and lib32 libs out of the way for splitting
   mv "$pkgdir"/usr/share/doc "$srcdir"
   mv "$pkgdir"/usr/lib/rustlib/i686-unknown-linux-gnu "$srcdir"


More information about the arch-commits mailing list