[arch-commits] Commit in lib32-rust/repos/multilib-x86_64 (4 files)

Jan Steffens heftig at archlinux.org
Tue Aug 20 04:32:32 UTC 2019


    Date: Tuesday, August 20, 2019 @ 04:32:31
  Author: heftig
Revision: 500232

archrelease: copy trunk to multilib-x86_64

Added:
  lib32-rust/repos/multilib-x86_64/PKGBUILD
    (from rev 500231, lib32-rust/trunk/PKGBUILD)
  lib32-rust/repos/multilib-x86_64/config.toml
    (from rev 500231, lib32-rust/trunk/config.toml)
Deleted:
  lib32-rust/repos/multilib-x86_64/PKGBUILD
  lib32-rust/repos/multilib-x86_64/config.toml

-------------+
 PKGBUILD    |  105 +++++++++++++++++++++++++++++++---------------------------
 config.toml |   57 ++++++++++++++++---------------
 2 files changed, 86 insertions(+), 76 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-20 04:32:20 UTC (rev 500231)
+++ PKGBUILD	2019-08-20 04:32:31 UTC (rev 500232)
@@ -1,48 +0,0 @@
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-
-pkgname=lib32-rust
-pkgver=1.37.0
-pkgrel=1
-
-pkgdesc='32-bit libraries for rust'
-url='https://www.rust-lang.org/'
-arch=('x86_64')
-license=('MIT' 'Apache')
-
-makedepends=('llvm' 'libffi' 'perl' 'python' 'curl' 'cmake')
-depends=('lib32-gcc-libs' "rust=1:$pkgver-1")
-
-source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
-        config.toml)
-
-sha256sums=('120e7020d065499cc6b28759ff04153bfdc2ac9b5adeb252331a4eb87cbe38c3'
-            'SKIP'
-            'b832b7db40338740e7080a60f515cb8eb86d7b5a0ec3c9ebe6d6c868878c9061')
-validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
-
-prepare() {
-  cd "rustc-$pkgver-src"
-
-  cp "$srcdir"/config.toml config.toml
-}
-
-build() {
-  cd "rustc-$pkgver-src"
-
-  python ./x.py build
-}
-
-package() {
-  cd "rustc-$pkgver-src"
-
-  target="$pkgdir"/"$(rustc --print sysroot)"/lib/rustlib
-  install -d "$target"
-  cp -r \
-    build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-unknown-linux-gnu \
-    "$target"
-
-  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
-}
-
-# vim:set ts=2 sw=2 et:

Copied: lib32-rust/repos/multilib-x86_64/PKGBUILD (from rev 500231, lib32-rust/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-08-20 04:32:31 UTC (rev 500232)
@@ -0,0 +1,57 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgname=lib32-rust
+pkgver=1.37.0
+pkgrel=2
+
+_llvm_ver=8.0.1
+
+pkgdesc='32-bit libraries for rust'
+url='https://www.rust-lang.org/'
+arch=('x86_64')
+license=('MIT' 'Apache')
+
+makedepends=("llvm=$_llvm_ver" 'libffi' 'perl' 'python' 'curl' 'cmake')
+depends=('lib32-gcc-libs' "rust=1:$pkgver-$pkgrel")
+
+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}
+        config.toml)
+
+sha256sums=('120e7020d065499cc6b28759ff04153bfdc2ac9b5adeb252331a4eb87cbe38c3'
+            'SKIP'
+            '11828fb4823387d820c6715b25f6b2405e60837d12a7469e7a8882911c721837'
+            'SKIP'
+            'b7dee253d4e55a34ce07e0f2b9f15197285458565a38eabf9d4d49870f133e68')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE'  # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+              '474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
+
+prepare() {
+  cd "rustc-$pkgver-src"
+
+  cp "$srcdir"/config.toml config.toml
+}
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  export RUST_BACKTRACE=1
+  export RUST_COMPILER_RT_ROOT="$srcdir/compiler-rt-$_llvm_ver.src"
+
+  python ./x.py build -j"$(nproc)"
+}
+
+package() {
+  cd "rustc-$pkgver-src"
+
+  local target="$pkgdir/$(rustc --print sysroot)/lib/rustlib"
+  install -d "$target"
+  cp -r \
+    build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/i686-unknown-linux-gnu \
+    "$target"
+
+  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: config.toml
===================================================================
--- config.toml	2019-08-20 04:32:20 UTC (rev 500231)
+++ config.toml	2019-08-20 04:32:31 UTC (rev 500232)
@@ -1,28 +0,0 @@
-[llvm]
-link-shared = true
-
-[build]
-target = ["i686-unknown-linux-gnu"] # defaults to just the build triple
-cargo = "/usr/bin/cargo"
-rustc = "/usr/bin/rustc"
-python = "python"
-extended = true
-sanitizers = false
-local-rebuild = true
-
-[install]
-prefix = "/usr"
-
-[rust]
-# 0 or the new default of 16 is faster, but can result in worse performance
-# https://github.com/rust-lang/rust/issues/47745
-codegen-units = 1
-
-debuginfo-level = 2
-
-channel = "stable"
-
-rpath = false
-
-[target.x86_64-unknown-linux-gnu]
-llvm-config = "/usr/bin/llvm-config"

Copied: lib32-rust/repos/multilib-x86_64/config.toml (from rev 500231, lib32-rust/trunk/config.toml)
===================================================================
--- config.toml	                        (rev 0)
+++ config.toml	2019-08-20 04:32:31 UTC (rev 500232)
@@ -0,0 +1,29 @@
+[llvm]
+link-shared = true
+
+[build]
+target = ["i686-unknown-linux-gnu"] # defaults to just the build triple
+cargo = "/usr/bin/cargo"
+rustc = "/usr/bin/rustc"
+python = "python"
+extended = true
+sanitizers = false
+profiler = true
+local-rebuild = true
+
+[install]
+prefix = "/usr"
+
+[rust]
+# 0 or the new default of 16 is faster, but can result in worse performance
+# https://github.com/rust-lang/rust/issues/47745
+codegen-units = 1
+
+debuginfo-level = 2
+
+channel = "stable"
+
+rpath = false
+
+[target.x86_64-unknown-linux-gnu]
+llvm-config = "/usr/bin/llvm-config"


More information about the arch-commits mailing list