diff options
Diffstat (limited to 'core/glibc/PKGBUILD')
-rw-r--r-- | core/glibc/PKGBUILD | 57 |
1 files changed, 46 insertions, 11 deletions
diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD index 93a075106..8fba27d0f 100644 --- a/core/glibc/PKGBUILD +++ b/core/glibc/PKGBUILD @@ -7,8 +7,10 @@ pkgname=glibc pkgver=2.16.0 pkgrel=2 +_glibcportsver=2.16 +_glibcportsdate=20120710 pkgdesc="GNU C Library" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/libc" license=('GPL' 'LGPL') groups=('base') @@ -20,6 +22,7 @@ backup=(etc/gai.conf options=('!strip') install=glibc.install source=(http://ftp.gnu.org/gnu/libc/${pkgname}-${pkgver}.tar.xz{,.sig} + http://repo.parabolagnulinux.org/other/glibc-ports-${_glibcportsver}_${_glibcportsdate}.tar.xz{,.sig} glibc-2.15-fix-res_query-assert.patch glibc-2.15-revert-c5a0802a.patch nscd.rcd @@ -27,15 +30,14 @@ source=(http://ftp.gnu.org/gnu/libc/${pkgname}-${pkgver}.tar.xz{,.sig} nscd.tmpfiles locale.gen.txt locale-gen) -md5sums=('80b181b02ab249524ec92822c0174cf7' - '2a1221a15575820751c325ef4d2fbb90' - '31f415b41197d85d3bbee3d1eecd06a3' - '0a0383d50d63f1c02919fe9943b82014' - '589d79041aa767a5179eaa4e2737dd3f' - 'ad8a9af15ab7eeaa23dc7ee85024af9f' - 'bccbe5619e75cf1d97312ec3681c605c' - '07ac979b6ab5eeb778d55f041529d623' - '476e9113489f93b348b21e144b6a8fcf') + +mksource-ports() { + git clone git://sourceware.org/git/glibc-ports.git + pushd glibc-ports + git checkout -b glibc-${_glibcportsver}-arch origin/release/${_glibcportsver}/master + popd + tar -cvJf glibc-ports-${_glibcportsver}_${_glibcportsdate}.tar.xz glibc-ports/* +} build() { cd ${srcdir}/${pkgname}-${pkgver} @@ -48,6 +50,12 @@ build() { # https://bugzilla.redhat.com/show_bug.cgi?id=552960 patch -p1 -i ${srcdir}/glibc-2.15-revert-c5a0802a.patch + if [ "${CARCH}" = "mips64el" ]; then + ln -s ../glibc-ports ports + + # Fix typo making util-linux build fail. + sed -i "s/_MIPS_SIM_ABIN32/_MIPS_SIM_NABI32/" ports/sysdeps/unix/sysv/linux/mips/Makefile + fi cd ${srcdir} mkdir glibc-build cd glibc-build @@ -56,6 +64,9 @@ build() { # Hack to fix NPTL issues with Xen, only required on 32bit platforms # TODO: make separate glibc-xen package for i686 export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs" + elif [[ ${CARCH} = "mips64el" ]]; then + # mips64el is only supported out of tree. + extra_addons=",ports" fi echo "slibdir=/lib" >> configparms @@ -67,7 +78,7 @@ build() { ${srcdir}/${pkgname}-${pkgver}/configure --prefix=/usr \ --libdir=/usr/lib --libexecdir=/usr/lib \ --with-headers=/usr/include \ - --enable-add-ons=nptl,libidn \ + --enable-add-ons=nptl,libidn$extra_addons \ --enable-obsolete-rpc \ --enable-kernel=2.6.32 \ --enable-bind-now --disable-profile \ @@ -151,3 +162,27 @@ package() { usr/lib/{libmemusage,libpcprofile,libSegFault}.so \ usr/lib/{pt_chown,{audit,gconv}/*.so} } + + + +md5sums=('80b181b02ab249524ec92822c0174cf7' + '2a1221a15575820751c325ef4d2fbb90' + 'e1a95db2cd37e805afefee1a055d02a6' + '31f415b41197d85d3bbee3d1eecd06a3' + '0a0383d50d63f1c02919fe9943b82014' + '589d79041aa767a5179eaa4e2737dd3f' + 'ad8a9af15ab7eeaa23dc7ee85024af9f' + 'bccbe5619e75cf1d97312ec3681c605c' + '07ac979b6ab5eeb778d55f041529d623' + '476e9113489f93b348b21e144b6a8fcf') +md5sums=('80b181b02ab249524ec92822c0174cf7' + '2a1221a15575820751c325ef4d2fbb90' + 'e1a95db2cd37e805afefee1a055d02a6' + 'ffc870fd046ac8bf9d70459e680bf2c0' + '31f415b41197d85d3bbee3d1eecd06a3' + '0a0383d50d63f1c02919fe9943b82014' + '589d79041aa767a5179eaa4e2737dd3f' + 'ad8a9af15ab7eeaa23dc7ee85024af9f' + 'bccbe5619e75cf1d97312ec3681c605c' + '07ac979b6ab5eeb778d55f041529d623' + '476e9113489f93b348b21e144b6a8fcf') |