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

Jan Steffens heftig at archlinux.org
Thu Jun 18 22:09:52 UTC 2020


    Date: Thursday, June 18, 2020 @ 22:09:50
  Author: heftig
Revision: 389518

1.44.1-1

Modified:
  rust/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-18 21:26:33 UTC (rev 389517)
+++ PKGBUILD	2020-06-18 22:09:50 UTC (rev 389518)
@@ -5,8 +5,8 @@
 
 pkgname=('rust' 'lib32-rust-libs' 'rust-docs')
 epoch=1
-pkgver=1.44.0
-pkgrel=2
+pkgver=1.44.1
+pkgrel=1
 
 _llvm_ver=10.0.0
 
@@ -23,7 +23,7 @@
 source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
         "https://github.com/llvm/llvm-project/releases/download/llvmorg-$_llvm_ver/compiler-rt-$_llvm_ver.src.tar.xz"{,.sig})
 
-sha256sums=('bf2df62317e533e84167c5bc7d4351a99fdab1f9cd6e6ba09f51996ad8561100'
+sha256sums=('7e2e64cb298dd5d5aea52eafe943ba0458fa82f2987fdcda1ff6f537b6f88473'
             'SKIP'
             '6a7da64d3a0a7320577b68b9ca4933bdcab676e898b759850e827333c3282c75'
             'SKIP')
@@ -78,6 +78,18 @@
   python ./x.py dist -j "$(nproc)"
   DESTDIR="$PWD"/dest-rust python ./x.py install -j "$(nproc)"
 
+  # Remove analysis data for libs that weren't installed
+  # TODO: Find out where these come from
+  local file lib
+  while read -rd '' file; do
+    lib="${file%.json}.rlib"
+    lib="${lib/\/analysis\///lib/}"
+    if [[ ! -e $lib ]]; then
+      echo "missing '$lib'"
+      rm -v "$file"
+    fi
+  done < <(find "dest-rust/usr/lib/rustlib"  -path '*/analysis/*.json' -print0)
+
   # move docs and lib32 libs out of the way for splitting
   mv dest-rust/usr/lib/rustlib/i686-unknown-linux-gnu dest-i686
   mv dest-rust/usr/share/doc dest-doc



More information about the arch-commits mailing list