[arch-commits] Commit in ponyc/repos/community-x86_64 (PKGBUILD PKGBUILD gcc7.patch)

Felix Yan felixonmars at archlinux.org
Fri Jul 21 08:29:00 UTC 2017


    Date: Friday, July 21, 2017 @ 08:28:59
  Author: felixonmars
Revision: 245915

archrelease: copy trunk to community-x86_64

Added:
  ponyc/repos/community-x86_64/PKGBUILD
    (from rev 245914, ponyc/trunk/PKGBUILD)
  ponyc/repos/community-x86_64/gcc7.patch
    (from rev 245914, ponyc/trunk/gcc7.patch)
Deleted:
  ponyc/repos/community-x86_64/PKGBUILD

------------+
 PKGBUILD   |  125 +++++++++++++++++++++++++++++++----------------------------
 gcc7.patch |   34 ++++++++++++++++
 2 files changed, 101 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-21 08:28:36 UTC (rev 245914)
+++ PKGBUILD	2017-07-21 08:28:59 UTC (rev 245915)
@@ -1,58 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=ponyc
-pkgver=0.13.1
-pkgrel=1
-pkgdesc='An actor model, capabilities, high performance programming language'
-url='http://ponylang.org/'
-arch=('x86_64')
-license=('BSD')
-depends=('llvm39-libs')
-makedepends=('llvm39' 'git')
-checkdepends=('pcre2')
-options=('!strip')
-optdepends=('pcre2: Needed for the regex package.')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz")
-sha512sums=('e5e41e1e92b5d3fb0a7ee4df8f8ab7c9cec18511435b51f6047a35c6f16d365b0ff6e112fb19505e273a3c9c83e36766edc6f141125afcaaa90b887a5295db05')
-
-build() {
-  cd ponyc-$pkgver
-  make config=release prefix=/usr arch=x86-64 verbose=
-
-  mkdir docs
-  build/release/ponyc packages/stdlib -rexpr -g -o docs
-}
-
-check() {
-  cd ponyc-$pkgver
-  make config=release prefix=/usr arch=x86-64 verbose= test
-}
-
-package() {
-  cd ponyc-$pkgver
-  # The makefile is very strange and requires almost as much post-correction
-  # as to simply do the installation myself.  Even with patches to the
-  # makefile to stop it attempting to symlink locations it has no business
-  # touching.
-  #make config=release prefix=/usr destdir="$pkgdir"/usr/lib/pony/"$pkgver" install
-
-  install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/bin/ponyc
-  install -Dm644 build/release/libponyrt-pic.a "$pkgdir"/usr/lib/libponyrt.a
-  install -Dm644 build/release/libponyc.a "$pkgdir"/usr/lib/libponyc.a
-  install -Dm644 src/libponyrt/pony.h "$pkgdir"/usr/include/pony.h
-
-  # Ponyc is designed to read its standard packages from the same directory.
-  install -dm755 "$pkgdir"/usr/bin
-  ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin
-
-  cp -dr --no-preserve=ownership packages "$pkgdir"/usr/lib/pony/"$pkgver"
-
-  # Let's include the examples as documentation is scarce.
-  install -dm755 "$pkgdir"/usr/share/doc/pony
-  cp -dr --no-preserve=ownership examples "$pkgdir"/usr/share/doc/pony
-
-  cp -dr docs/* "$pkgdir"/usr/share/doc/pony
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
-}

Copied: ponyc/repos/community-x86_64/PKGBUILD (from rev 245914, ponyc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-07-21 08:28:59 UTC (rev 245915)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=ponyc
+pkgver=0.15.0
+pkgrel=1
+pkgdesc='An actor model, capabilities, high performance programming language'
+url='http://ponylang.org/'
+arch=('x86_64')
+license=('BSD')
+depends=('llvm39-libs')
+makedepends=('llvm39' 'git')
+checkdepends=('pcre2')
+options=('!strip')
+optdepends=('pcre2: Needed for the regex package.')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ponylang/ponyc/archive/$pkgver.tar.gz"
+        gcc7.patch)
+sha512sums=('ddd73714ce2d8b38231b5e45facbc1bf554f4914cf85544ada846e22893927b5e5f81f3edbcbd254ae5d1804e01ce969b3373b48309af1cd5482a0be91a72264'
+            '5e13a430396995141591efb1c2194f1a0039119536b7eb7f7278d9535553ee466f2f48b8b90a536039dd78e149575ca0ff456dd1c8f6615d01f75401eedd88d6')
+
+prepare() {
+  cd ponyc-$pkgver
+  sed -i 's/-Werror //' Makefile
+
+  patch -p1 -i "$srcdir"/gcc7.patch
+}
+
+build() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose=
+
+  mkdir docs
+  build/release/ponyc packages/stdlib -rexpr -g -o docs
+}
+
+check() {
+  cd ponyc-$pkgver
+  make config=release prefix=/usr arch=x86-64 verbose= test
+}
+
+package() {
+  cd ponyc-$pkgver
+  # The makefile is very strange and requires almost as much post-correction
+  # as to simply do the installation myself.  Even with patches to the
+  # makefile to stop it attempting to symlink locations it has no business
+  # touching.
+  #make config=release prefix=/usr destdir="$pkgdir"/usr/lib/pony/"$pkgver" install
+
+  install -Dm755 build/release/ponyc "$pkgdir"/usr/lib/pony/"$pkgver"/bin/ponyc
+  install -Dm644 build/release/libponyrt-pic.a "$pkgdir"/usr/lib/libponyrt.a
+  install -Dm644 build/release/libponyc.a "$pkgdir"/usr/lib/libponyc.a
+  install -Dm644 src/libponyrt/pony.h "$pkgdir"/usr/include/pony.h
+
+  # Ponyc is designed to read its standard packages from the same directory.
+  install -dm755 "$pkgdir"/usr/bin
+  ln -sf /usr/lib/pony/"$pkgver"/bin/ponyc "$pkgdir"/usr/bin
+
+  cp -dr --no-preserve=ownership packages "$pkgdir"/usr/lib/pony/"$pkgver"
+
+  # Let's include the examples as documentation is scarce.
+  install -dm755 "$pkgdir"/usr/share/doc/pony
+  cp -dr --no-preserve=ownership examples "$pkgdir"/usr/share/doc/pony
+
+  cp -dr docs/* "$pkgdir"/usr/share/doc/pony
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
+}

Copied: ponyc/repos/community-x86_64/gcc7.patch (from rev 245914, ponyc/trunk/gcc7.patch)
===================================================================
--- gcc7.patch	                        (rev 0)
+++ gcc7.patch	2017-07-21 08:28:59 UTC (rev 245915)
@@ -0,0 +1,34 @@
+diff --git a/src/libponyc/codegen/genexe.c b/src/libponyc/codegen/genexe.c
+index 304a6f675..a063818d8 100644
+--- a/src/libponyc/codegen/genexe.c
++++ b/src/libponyc/codegen/genexe.c
+@@ -277,7 +277,7 @@ static bool link_exe(compile_t* c, ast_t* program,
+ #ifdef PONY_USE_LTO
+     "-flto -fuse-linker-plugin "
+ #endif
+-    "%s %s %s %s -lpthread %s -lm %s",
++    "%s %s %s %s -lpthread -latomic %s -lm %s",
+     linker, file_exe, arch, mcx16_arg, fuseld, file_o, lib_args, ponyrt, ldl,
+     export
+     );
+diff --git a/Makefile b/Makefile
+index a795d8f57..dd8923b97 100644
+--- a/Makefile
++++ b/Makefile
+@@ -437,11 +437,11 @@ libponyc.benchmarks.links = libgbenchmark libponyc libponyrt llvm
+ libponyrt.benchmarks.links = libgbenchmark libponyrt
+ 
+ ifeq ($(OSTYPE),linux)
+-  ponyc.links += libpthread libdl
+-  libponyc.tests.links += libpthread libdl
+-  libponyrt.tests.links += libpthread libdl
+-  libponyc.benchmarks.links += libpthread libdl
+-  libponyrt.benchmarks.links += libpthread libdl
++  ponyc.links += libpthread libdl libatomic
++  libponyc.tests.links += libpthread libdl libatomic
++  libponyrt.tests.links += libpthread libdl libatomic
++  libponyc.benchmarks.links += libpthread libdl libatomic
++  libponyrt.benchmarks.links += libpthread libdl libatomic
+ endif
+
+ 
\ No newline at end of file



More information about the arch-commits mailing list