Commit c73915ec authored by Natanael Copa's avatar Natanael Copa
Browse files

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
parent d93c7e36
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment