diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-02 18:54:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-02 18:56:44 +0000 |
commit | c73915ec3896cbe83bc6910db1cc9234c3dc1a73 (patch) | |
tree | fe2242a0ea62f2ee93c4a87e469afe012bf77e91 /main/libc0.9.32 | |
parent | d93c7e36ee65aef6a4b5fd033dced67760b8242f (diff) | |
download | aports-c73915ec3896cbe83bc6910db1cc9234c3dc1a73.tar.bz2 aports-c73915ec3896cbe83bc6910db1cc9234c3dc1a73.tar.xz |
main/libc0.9.32: split out libpthread
Avoid that libgcc always are pulled in by libc0.9.32. For compat
reasons we also introduce a subpackage called libc. This way we
don't break all packages depending on libc0.9.32
Diffstat (limited to 'main/libc0.9.32')
-rw-r--r-- | main/libc0.9.32/APKBUILD | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/main/libc0.9.32/APKBUILD b/main/libc0.9.32/APKBUILD index 06edd5de81..bb0fc08c6a 100644 --- a/main/libc0.9.32/APKBUILD +++ b/main/libc0.9.32/APKBUILD @@ -4,18 +4,21 @@ pkgname=libc$_abiver _gitver= pkgver=0.9.33.2 _ver=${pkgver/_/-} -pkgrel=9 +pkgrel=10 pkgdesc="C library for developing embedded Linux systems" url=http://uclibc.org license="LGPL-2" arch="all" options= makedepends="linux-headers" -subpackages="uclibc-dev:dev uclibc-utils:utils libthread_db" +# libc subpackage must be last +subpackages="uclibc-dev:dev uclibc-utils:utils libthread_db libpthread libc" depends_dev="linux-headers=>2.6.32" replaces=uclibc +depends="libpthread libc" options="!strip" triggers="uclibc-utils.trigger=/lib:/usr/lib" +ldpath="/lib" _snapurl="http://git.uclibc.org/uClibc/snapshot/master.tar.bz2" _snapfile="$pkgname-$pkgver.tar.bz2" @@ -130,6 +133,7 @@ dev() { utils() { pkgdesc="uClibc utility programs" replaces="uclibc $pkgname" + depends= mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/sbin mv "$pkgdir"/sbin/* "$subpkgdir"/sbin/ mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/ @@ -137,10 +141,29 @@ utils() { libthread_db() { pkgdesc="uClibc thread debugging library" + depends= mkdir -p "$subpkgdir"/lib mv "$pkgdir"/lib/libthread_db* "$subpkgdir"/lib/ } +libpthread() { + pkgdesc="uClibc threading and realtime libraries" + replaces="libc0.9.32" + depends= + mkdir -p "$subpkgdir"/lib + mv "$pkgdir"/lib/libpthread* \ + "$pkgdir"/lib/librt* \ + "$subpkgdir"/lib/ +} + +libc() { + pkgdesc="uClibc standard C libraries" + replaces="libc0.9.32" + depends= + mkdir -p "$subpkgdir"/lib + mv "$pkgdir"/lib/* "$subpkgdir"/lib/ +} + md5sums="73e6fe215648d02246f4d195b25fb17e uClibc-0.9.33.2.tar.xz d4c8fb190eb4327453ed924159ca432e 0001-Compatible-stack-protector-for-non-Thread-Local-stor.patch f9c9de09da5eade2fb9dff8f9f8b3fc9 0002-resolv-res_query-for-CNAMEs.patch |