aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/APKBUILD
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2014-04-15 23:59:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-16 08:00:41 +0000
commit7b1de2968f11be226b8d34f458011bdadb3a6967 (patch)
tree9ee52543cc344ab857ee77dfc4d67e8308b5d583 /main/gcc/APKBUILD
parentb35c92de3e329f6648ce77668442eb535f5e6394 (diff)
downloadaports-7b1de2968f11be226b8d34f458011bdadb3a6967.tar.gz
aports-7b1de2968f11be226b8d34f458011bdadb3a6967.tar.bz2
aports-7b1de2968f11be226b8d34f458011bdadb3a6967.tar.xz
main/gcc: - make libatomic a subpackage
This patch makes libatomic a subpackage of gcc which stops openvswitch installing gcc & all of it's dependencies. fixes #2844
Diffstat (limited to 'main/gcc/APKBUILD')
-rw-r--r--main/gcc/APKBUILD16
1 files changed, 15 insertions, 1 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index cba71842c9..a835c00219 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,18 @@ package() {
fi
}
+libatomic() {
+ pkgdesc="GCC Atomic library"
+ depends=
+ replaces="gcc"
+ 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=