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

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


    Date: Saturday, September 28, 2019 @ 14:07:12
  Author: demize
Revision: 363508

Update removal of unused files

These files are only used by the uninstall script so are useless in package manager-managed packages.

Modified:
  rust/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-09-28 14:01:32 UTC (rev 363507)
+++ PKGBUILD	2019-09-28 14:07:12 UTC (rev 363508)
@@ -60,10 +60,10 @@
   for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
 
-  cd "$pkgdir/usr/lib"
+  # delete unnecesary files, e.g. components and manifest files only used for the uninstall script
+  cd "$pkgdir"/usr/lib/rustlib
+  rm components install.log manifest-* rust-installer-version uninstall.sh
 
-  rm rustlib/{components,manifest-rustc,rust-installer-version}
-
   # 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/



More information about the arch-commits mailing list