[arch-commits] Commit in rust/repos (6 files)

Johannes Löthberg demize at archlinux.org
Thu Apr 27 22:35:15 UTC 2017


    Date: Thursday, April 27, 2017 @ 22:35:14
  Author: demize
Revision: 226130

archrelease: copy trunk to community-x86_64, community-i686

Added:
  rust/repos/community-i686/PKGBUILD
    (from rev 226129, rust/trunk/PKGBUILD)
  rust/repos/community-x86_64/PKGBUILD
    (from rev 226129, rust/trunk/PKGBUILD)
Deleted:
  rust/repos/community-i686/0001-liballoc_jemalloc-fix-linking-with-system-library.patch
  rust/repos/community-i686/PKGBUILD
  rust/repos/community-x86_64/0001-liballoc_jemalloc-fix-linking-with-system-library.patch
  rust/repos/community-x86_64/PKGBUILD

-------------------------------------------------------------------------------+
 /PKGBUILD                                                                     |  148 ++++++++++
 community-i686/0001-liballoc_jemalloc-fix-linking-with-system-library.patch   |   41 --
 community-i686/PKGBUILD                                                       |   80 -----
 community-x86_64/0001-liballoc_jemalloc-fix-linking-with-system-library.patch |   41 --
 community-x86_64/PKGBUILD                                                     |   80 -----
 5 files changed, 148 insertions(+), 242 deletions(-)

Deleted: community-i686/0001-liballoc_jemalloc-fix-linking-with-system-library.patch
===================================================================
--- community-i686/0001-liballoc_jemalloc-fix-linking-with-system-library.patch	2017-04-27 22:28:43 UTC (rev 226129)
+++ community-i686/0001-liballoc_jemalloc-fix-linking-with-system-library.patch	2017-04-27 22:35:14 UTC (rev 226130)
@@ -1,41 +0,0 @@
-From 781561a6f26008a49572e156f80b577d6af60262 Mon Sep 17 00:00:00 2001
-From: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
-Date: Fri, 3 Feb 2017 16:15:34 +0900
-Subject: [PATCH] liballoc_jemalloc: fix linking with system library
-
----
- src/liballoc_jemalloc/build.rs | 11 ++++++-----
- 1 file changed, 6 insertions(+), 5 deletions(-)
-
-diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs
-index 1143df0c63..297f5ce99f 100644
---- a/src/liballoc_jemalloc/build.rs
-+++ b/src/liballoc_jemalloc/build.rs
-@@ -42,6 +42,12 @@ fn main() {
-         return;
-     }
- 
-+    if target.contains("android") {
-+        println!("cargo:rustc-link-lib=gcc");
-+    } else if !target.contains("windows") && !target.contains("musl") {
-+        println!("cargo:rustc-link-lib=pthread");
-+    }
-+
-     if let Some(jemalloc) = env::var_os("JEMALLOC_OVERRIDE") {
-         let jemalloc = PathBuf::from(jemalloc);
-         println!("cargo:rustc-link-search=native={}",
-@@ -176,11 +182,6 @@ fn main() {
-         println!("cargo:rustc-link-lib=static=jemalloc_pic");
-     }
-     println!("cargo:rustc-link-search=native={}/lib", build_dir.display());
--    if target.contains("android") {
--        println!("cargo:rustc-link-lib=gcc");
--    } else if !target.contains("windows") && !target.contains("musl") {
--        println!("cargo:rustc-link-lib=pthread");
--    }
- 
-     // The pthread_atfork symbols is used by jemalloc on android but the really
-     // old android we're building on doesn't have them defined, so just make
--- 
-2.12.0
-

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2017-04-27 22:28:43 UTC (rev 226129)
+++ community-i686/PKGBUILD	2017-04-27 22:35:14 UTC (rev 226130)
@@ -1,80 +0,0 @@
-# $Id$
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Daniel Micay <danielmicay at gmail.com>
-# Contributor: userwithuid <userwithuid at gmail.com>
-
-pkgname=('rust' 'rust-docs')
-epoch=1
-pkgver=1.16.0
-pkgrel=1
-
-pkgdesc='Systems programming language focused on safety, speed and concurrency'
-url='https://www.rust-lang.org/'
-arch=('x86_64' 'i686')
-license=('MIT' 'Apache')
-
-makedepends=('libffi' 'perl' 'python2' 'curl' 'llvm' 'jemalloc')
-
-options=('!emptydirs')
-
-source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
-        0001-liballoc_jemalloc-fix-linking-with-system-library.patch)
-
-sha256sums=('f966b31eb1cd9bd2df817c391a338eeb5b9253ae0a19bf8a11960c560f96e8b4'
-            'SKIP'
-            'b61d9aae58925b222cd44d7b41f0aa648fde89a48e7772aa659acd0d74dde612')
-validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
-
-prepare() {
-  cd "rustc-$pkgver-src"
-
-  # Backport of https://github.com/rust-lang/rust/pull/39481
-  patch -p1 <"$srcdir"/0001-liballoc_jemalloc-fix-linking-with-system-library.patch
-}
-
-build() {
-  cd "rustc-$pkgver-src"
-
-  ./configure \
-    --prefix=/usr \
-    --release-channel=stable \
-    --llvm-root=/usr \
-    --disable-codegen-tests \
-    --jemalloc-root=/usr/lib
-
-  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
-
-  python2 ./x.py build --verbose
-}
-
-package_rust() {
-  depends=('gcc-libs' 'llvm-libs')
-
-  cd "rustc-$pkgver-src"
-
-  make DESTDIR="$pkgdir" install
-
-  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
-
-  cd "$pkgdir/usr/lib"
-
-  rm rustlib/{components,manifest-rustc,rust-installer-version}
-  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
-
-  # move docs out of the way
-  mv "$pkgdir/usr/share/doc" "$srcdir/"
-}
-
-package_rust-docs() {
-  msg2 "Packaging documentation"
-  install -d "$pkgdir/usr/share/doc/"
-  mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
-
-  msg2 "Packaging license files for the documentation"
-  for license in APACHE MIT; do install -Dm644 "rustc-$pkgver-src/LICENSE-$license" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
-}
-
-# vim:set ts=2 sw=2 et:

Copied: rust/repos/community-i686/PKGBUILD (from rev 226129, rust/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-04-27 22:35:14 UTC (rev 226130)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: userwithuid <userwithuid at gmail.com>
+
+pkgname=('rust' 'rust-docs')
+epoch=1
+pkgver=1.17.0
+pkgrel=1
+
+pkgdesc='Systems programming language focused on safety, speed and concurrency'
+url='https://www.rust-lang.org/'
+arch=('x86_64' 'i686')
+license=('MIT' 'Apache')
+
+makedepends=('rust' 'cargo' 'libffi' 'perl' 'python2' 'curl' 'llvm' 'jemalloc')
+
+options=('!emptydirs')
+
+source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
+
+sha256sums=('4baba3895b75f2492df6ce5a28a916307ecd1c088dc1fd02dbfa8a8e86174f87'
+            'SKIP')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  ./configure \
+    --prefix=/usr \
+    --release-channel=stable \
+    --llvm-root=/usr \
+    --enable-llvm-link-shared \
+    --disable-codegen-tests \
+    --jemalloc-root=/usr/lib \
+    --enable-local-rust
+
+  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
+
+  python2 ./x.py build --verbose
+}
+
+package_rust() {
+  depends=('gcc-libs' 'llvm-libs')
+  optdepends=('cargo')
+
+  cd "rustc-$pkgver-src"
+
+  make DESTDIR="$pkgdir" install
+
+  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+
+  cd "$pkgdir/usr/lib"
+
+  rm rustlib/{components,manifest-rustc,rust-installer-version}
+  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
+
+  # move docs out of the way
+  mv "$pkgdir/usr/share/doc" "$srcdir/"
+}
+
+package_rust-docs() {
+  msg2 "Packaging documentation"
+  install -d "$pkgdir/usr/share/doc/"
+  mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
+
+  msg2 "Packaging license files for the documentation"
+  for license in APACHE MIT; do install -Dm644 "rustc-$pkgver-src/LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-x86_64/0001-liballoc_jemalloc-fix-linking-with-system-library.patch
===================================================================
--- community-x86_64/0001-liballoc_jemalloc-fix-linking-with-system-library.patch	2017-04-27 22:28:43 UTC (rev 226129)
+++ community-x86_64/0001-liballoc_jemalloc-fix-linking-with-system-library.patch	2017-04-27 22:35:14 UTC (rev 226130)
@@ -1,41 +0,0 @@
-From 781561a6f26008a49572e156f80b577d6af60262 Mon Sep 17 00:00:00 2001
-From: Tatsuyuki Ishi <ishitatsuyuki at gmail.com>
-Date: Fri, 3 Feb 2017 16:15:34 +0900
-Subject: [PATCH] liballoc_jemalloc: fix linking with system library
-
----
- src/liballoc_jemalloc/build.rs | 11 ++++++-----
- 1 file changed, 6 insertions(+), 5 deletions(-)
-
-diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs
-index 1143df0c63..297f5ce99f 100644
---- a/src/liballoc_jemalloc/build.rs
-+++ b/src/liballoc_jemalloc/build.rs
-@@ -42,6 +42,12 @@ fn main() {
-         return;
-     }
- 
-+    if target.contains("android") {
-+        println!("cargo:rustc-link-lib=gcc");
-+    } else if !target.contains("windows") && !target.contains("musl") {
-+        println!("cargo:rustc-link-lib=pthread");
-+    }
-+
-     if let Some(jemalloc) = env::var_os("JEMALLOC_OVERRIDE") {
-         let jemalloc = PathBuf::from(jemalloc);
-         println!("cargo:rustc-link-search=native={}",
-@@ -176,11 +182,6 @@ fn main() {
-         println!("cargo:rustc-link-lib=static=jemalloc_pic");
-     }
-     println!("cargo:rustc-link-search=native={}/lib", build_dir.display());
--    if target.contains("android") {
--        println!("cargo:rustc-link-lib=gcc");
--    } else if !target.contains("windows") && !target.contains("musl") {
--        println!("cargo:rustc-link-lib=pthread");
--    }
- 
-     // The pthread_atfork symbols is used by jemalloc on android but the really
-     // old android we're building on doesn't have them defined, so just make
--- 
-2.12.0
-

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2017-04-27 22:28:43 UTC (rev 226129)
+++ community-x86_64/PKGBUILD	2017-04-27 22:35:14 UTC (rev 226130)
@@ -1,80 +0,0 @@
-# $Id$
-# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
-# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: Daniel Micay <danielmicay at gmail.com>
-# Contributor: userwithuid <userwithuid at gmail.com>
-
-pkgname=('rust' 'rust-docs')
-epoch=1
-pkgver=1.16.0
-pkgrel=1
-
-pkgdesc='Systems programming language focused on safety, speed and concurrency'
-url='https://www.rust-lang.org/'
-arch=('x86_64' 'i686')
-license=('MIT' 'Apache')
-
-makedepends=('libffi' 'perl' 'python2' 'curl' 'llvm' 'jemalloc')
-
-options=('!emptydirs')
-
-source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc}
-        0001-liballoc_jemalloc-fix-linking-with-system-library.patch)
-
-sha256sums=('f966b31eb1cd9bd2df817c391a338eeb5b9253ae0a19bf8a11960c560f96e8b4'
-            'SKIP'
-            'b61d9aae58925b222cd44d7b41f0aa648fde89a48e7772aa659acd0d74dde612')
-validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
-
-prepare() {
-  cd "rustc-$pkgver-src"
-
-  # Backport of https://github.com/rust-lang/rust/pull/39481
-  patch -p1 <"$srcdir"/0001-liballoc_jemalloc-fix-linking-with-system-library.patch
-}
-
-build() {
-  cd "rustc-$pkgver-src"
-
-  ./configure \
-    --prefix=/usr \
-    --release-channel=stable \
-    --llvm-root=/usr \
-    --disable-codegen-tests \
-    --jemalloc-root=/usr/lib
-
-  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
-
-  python2 ./x.py build --verbose
-}
-
-package_rust() {
-  depends=('gcc-libs' 'llvm-libs')
-
-  cd "rustc-$pkgver-src"
-
-  make DESTDIR="$pkgdir" install
-
-  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
-
-  cd "$pkgdir/usr/lib"
-
-  rm rustlib/{components,manifest-rustc,rust-installer-version}
-  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
-
-  # move docs out of the way
-  mv "$pkgdir/usr/share/doc" "$srcdir/"
-}
-
-package_rust-docs() {
-  msg2 "Packaging documentation"
-  install -d "$pkgdir/usr/share/doc/"
-  mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
-
-  msg2 "Packaging license files for the documentation"
-  for license in APACHE MIT; do install -Dm644 "rustc-$pkgver-src/LICENSE-$license" \
-    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
-}
-
-# vim:set ts=2 sw=2 et:

Copied: rust/repos/community-x86_64/PKGBUILD (from rev 226129, rust/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-04-27 22:35:14 UTC (rev 226130)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: userwithuid <userwithuid at gmail.com>
+
+pkgname=('rust' 'rust-docs')
+epoch=1
+pkgver=1.17.0
+pkgrel=1
+
+pkgdesc='Systems programming language focused on safety, speed and concurrency'
+url='https://www.rust-lang.org/'
+arch=('x86_64' 'i686')
+license=('MIT' 'Apache')
+
+makedepends=('rust' 'cargo' 'libffi' 'perl' 'python2' 'curl' 'llvm' 'jemalloc')
+
+options=('!emptydirs')
+
+source=("https://static.rust-lang.org/dist/rustc-$pkgver-src.tar.gz"{,.asc})
+
+sha256sums=('4baba3895b75f2492df6ce5a28a916307ecd1c088dc1fd02dbfa8a8e86174f87'
+            'SKIP')
+validpgpkeys=('108F66205EAEB0AAA8DD5E1C85AB96E6FA1BE5FE') # Rust Language (Tag and Release Signing Key) <rust-key at rust-lang.org>
+
+build() {
+  cd "rustc-$pkgver-src"
+
+  ./configure \
+    --prefix=/usr \
+    --release-channel=stable \
+    --llvm-root=/usr \
+    --enable-llvm-link-shared \
+    --disable-codegen-tests \
+    --jemalloc-root=/usr/lib \
+    --enable-local-rust
+
+  export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi"
+
+  python2 ./x.py build --verbose
+}
+
+package_rust() {
+  depends=('gcc-libs' 'llvm-libs')
+  optdepends=('cargo')
+
+  cd "rustc-$pkgver-src"
+
+  make DESTDIR="$pkgdir" install
+
+  for license in APACHE MIT; do install -Dm644 "LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+
+  cd "$pkgdir/usr/lib"
+
+  rm rustlib/{components,manifest-rustc,rust-installer-version}
+  ln -sf rustlib/$CARCH-unknown-linux-gnu/lib/*.so .
+
+  # move docs out of the way
+  mv "$pkgdir/usr/share/doc" "$srcdir/"
+}
+
+package_rust-docs() {
+  msg2 "Packaging documentation"
+  install -d "$pkgdir/usr/share/doc/"
+  mv "$srcdir"/doc/* "$pkgdir"/usr/share/doc/rust/
+
+  msg2 "Packaging license files for the documentation"
+  for license in APACHE MIT; do install -Dm644 "rustc-$pkgver-src/LICENSE-$license" \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE-$license"; done
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list