From 1b9f6dc846379470b620b5dbb9d4d7acd1de148c Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Jan 2013 00:05:59 -0800 Subject: Mon Jan 28 00:05:59 PST 2013 --- core/glibc/PKGBUILD | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'core/glibc/PKGBUILD') diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD index eeb85e099..5ac8f5dc2 100644 --- a/core/glibc/PKGBUILD +++ b/core/glibc/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 173938 2012-12-28 13:11:04Z allan $ +# $Id: PKGBUILD 176038 2013-01-26 23:37:18Z allan $ # Maintainer: Allan McRae # toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc @@ -6,7 +6,7 @@ pkgname=glibc pkgver=2.17 -pkgrel=1 +pkgrel=2 pkgdesc="GNU C Library" arch=('i686' 'x86_64') url="http://www.gnu.org/software/libc" @@ -20,12 +20,14 @@ backup=(etc/gai.conf options=('!strip') install=glibc.install source=(http://ftp.gnu.org/gnu/libc/${pkgname}-${pkgver}.tar.xz{,.sig} + glibc-2.17-sync-with-linux37.patch nscd.service nscd.tmpfiles locale.gen.txt locale-gen) md5sums=('87bf675c8ee523ebda4803e8e1cec638' '6db4d1661cf34282755dc90330465f6d' + 'fb99380d94598cc76d793deebf630022' 'c1e07c0bec0fe89791bfd9d13fc85edf' 'bccbe5619e75cf1d97312ec3681c605c' '07ac979b6ab5eeb778d55f041529d623' @@ -35,8 +37,8 @@ md5sums=('87bf675c8ee523ebda4803e8e1cec638' build() { cd ${srcdir}/${pkgname}-${pkgver} - # ldconfig does not need to look in /usr/lib64 or /usr/libx32 on Arch Linux - sed -i "s#add_system_dir#do_not_add_system_dir#" sysdeps/unix/sysv/linux/x86_64/dl-cache.h + # combination of upstream commits 318cd0b, b540704 and fc1abbe + patch -p1 -i ${srcdir}/glibc-2.17-sync-with-linux37.patch cd ${srcdir} mkdir glibc-build @@ -57,6 +59,7 @@ build() { ${srcdir}/${pkgname}-${pkgver}/configure --prefix=/usr \ --libdir=/usr/lib --libexecdir=/usr/lib \ --with-headers=/usr/include \ + --with-bugurl=https://bugs.archlinux.org/ \ --enable-add-ons=nptl,libidn \ --enable-obsolete-rpc \ --enable-kernel=2.6.32 \ @@ -96,10 +99,7 @@ package() { rm -f ${pkgdir}/etc/ld.so.{cache,conf} - # eventually this will move to the filesystem package - ln -s usr/lib ${pkgdir}/lib - - install -dm755 ${pkgdir}/{etc/rc.d,usr/{sbin,lib/{,locale,systemd/system,tmpfiles.d}}} + install -dm755 ${pkgdir}/usr/lib/{locale,systemd/system,tmpfiles.d} install -m644 ${srcdir}/${pkgname}-${pkgver}/nscd/nscd.conf ${pkgdir}/etc/nscd.conf install -m644 ${srcdir}/nscd.service ${pkgdir}/usr/lib/systemd/system @@ -107,19 +107,16 @@ package() { install -m644 ${srcdir}/${pkgname}-${pkgver}/posix/gai.conf ${pkgdir}/etc/gai.conf - install -m755 ${srcdir}/locale-gen ${pkgdir}/usr/sbin + install -m755 ${srcdir}/locale-gen ${pkgdir}/usr/bin + + # temporary symlink + ln -s ../../sbin/ldconfig ${pkgdir}/usr/bin/ldconfig # create /etc/locale.gen install -m644 ${srcdir}/locale.gen.txt ${pkgdir}/etc/locale.gen sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \ ${srcdir}/glibc-${pkgver}/localedata/SUPPORTED >> ${pkgdir}/etc/locale.gen - if [[ ${CARCH} = "x86_64" ]]; then - # fix paths and compliance with binary blobs... - sed -i '/RTLDLIST/s%lib64%lib%' ${pkgdir}/usr/bin/ldd - ln -s usr/lib ${pkgdir}/lib64 - fi - # Do not strip the following files for improved debugging support # ("improved" as in not breaking gdb and valgrind...): # ld-${pkgver}.so -- cgit v1.2.3-54-g00ecf