Subject: [alpine-devel] [PATCH] /main/gcc - make libatomic a subpackage (with pkgrel bumped)

From: Stuart Cardall <[email-masked]>
Date: Wed, 16 Apr 2014 00:33:37 +0000

This patch has $pkgrel correctly bumped to r7
---
 main/gcc/APKBUILD | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index cba7184..6f0478c 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -9,7 +9,7 @@ _cross=""
 	&& _cross="-$CTARGET"
 
 pkgname="$pkgname$_cross"
-pkgrel=6
+pkgrel=7
 pkgdesc="The GNU Compiler Collection"
 url="http://gcc.gnu.org"
 arch="all"
@@ -105,6 +105,8 @@ x86 | x86_64)	LIBQUADMATH=$LANG_FORTRAN ;;
 *)		LIBQUADMATH=false ;;
 esac
 
+# libatomic is a dependency for openvswitch
+$LIBATOMIC && subpackages="$subpackages libatomic"
 $LIBGCC && subpackages="$subpackages libgcc"
 $LIBQUADMATH && subpackages="$subpackages libquadmath"
 if $LIBGOMP; then
@@ -427,6 +429,17 @@ package() {
 	fi
 }
 
+libatomic() {
+        pkgdesc="GCC Atomic library"
+        depends=
+        CARCH="$CTARGET_ARCH"
+
+        mkdir -p "$subpkgdir"/usr/lib
+        mv "$pkgdir"/usr/lib/libatomic.so.* "$subpkgdir"/usr/lib/ || \
+                cp -a "$pkgdir"/usr/$CTARGET/lib/libatomic.so.* "$subpkgdir"/usr/lib/ || \
+                return 1
+}
+
 libcxx() {
 	pkgdesc="GNU C++ standard runtime library"
 	depends=
-- 
1.9.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---