diff options
author | Stefan Schmidt | 2017-01-09 18:57:52 +0100 |
---|---|---|
committer | Stefan Schmidt | 2017-01-09 18:57:52 +0100 |
commit | b7297a85b694179b01e4900b48ced145658ce33d (patch) | |
tree | 567298edaaca5a73aa56773b125916f33309baac | |
download | aur-b7297a85b694179b01e4900b48ced145658ce33d.tar.gz |
Initial version
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 90 | ||||
-rw-r--r-- | glibc-1915d6d1.patch.xz | bin | 0 -> 214744 bytes |
4 files changed, 120 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dbcdf6a6b974 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = powerpc-linux-gnu-glibc-headers + pkgdesc = GNU C Library headers (powerpc-linux-gnu) + pkgver = 2.23 + pkgrel = 5 + url = http://www.gnu.org/software/libc/ + arch = any + license = GPL + license = LGPL + makedepends = powerpc-linux-gnu-gcc-stage1>=5.3.0 + depends = powerpc-linux-gnu-linux-api-headers>=4.5.5 + options = !buildflags + options = !strip + options = staticlibs + source = http://ftp.gnu.org/gnu/libc/glibc-2.23.tar.xz + source = http://ftp.gnu.org/gnu/libc/glibc-2.23.tar.xz.sig + source = glibc-1915d6d1.patch.xz + validpgpkeys = F37CDAB708E65EA183FD1AF625EF0A436C2A4AFF + md5sums = 456995968f3acadbed39f5eba31678df + md5sums = SKIP + md5sums = 90fad90d55a4c70d91a79539ed3642e2 + +pkgname = powerpc-linux-gnu-glibc-headers + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..c14ca8a5b418 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.pkg.* +src/ +pkg/ +glibc-*.tar.xz +*.sig +*.sign +*.part diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4e3a9e154179 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,90 @@ +# Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com> +# Contributor: toha257 <toha257@gmail.com> +# Contributor: Allan McRae <allan@archlinux.org> +# Contributor: Kevin Mihelich <kevin@archlinuxarm.org> +# Contributor: Tavian Barnes <tavianator@tavianator.com> +# Maintainer: Stefan Schmidt <thrimbor.github@gmail.com> + +_target="powerpc-linux-gnu" +pkgname=${_target}-glibc-headers +pkgver=2.23 +pkgrel=5 +_commit=1915d6d1 +pkgdesc="GNU C Library headers (${_target})" +arch=('any') +url="http://www.gnu.org/software/libc/" +license=('GPL' 'LGPL') +depends=("${_target}-linux-api-headers>=4.5.5") +makedepends=("${_target}-gcc-stage1>=5.3.0") +options=('!buildflags' '!strip' 'staticlibs') +source=(http://ftp.gnu.org/gnu/libc/glibc-${pkgver}.tar.xz{,.sig} + glibc-${_commit}.patch.xz) +md5sums=('456995968f3acadbed39f5eba31678df' + 'SKIP' + '90fad90d55a4c70d91a79539ed3642e2') +validpgpkeys=('F37CDAB708E65EA183FD1AF625EF0A436C2A4AFF') # Carlos O'Donell + +prepare() { + cd glibc-${pkgver} + + patch -p1 -i ${srcdir}/glibc-${_commit}.patch + + mkdir ${srcdir}/glibc-build +} + +build() { + cd glibc-build + + echo "slibdir=/lib" >> configparms + echo "rtlddir=/lib" >> configparms + echo "sbindir=/bin" >> configparms + echo "rootsbindir=/bin" >> configparms + + # remove hardening options for building libraries + export CFLAGS="-U_FORTIFY_SOURCE -O2" + export CPPFLAGS="-U_FORTIFY_SOURCE -O2" + unset LD_LIBRARY_PATH + + export BUILD_CC=gcc + export CC=${_target}-gcc + export CXX=${_target}-g++ + export AR=${_target}-ar + export RANLIB=${_target}-ranlib + + ../glibc-${pkgver}/configure --prefix=/ \ + --target=${_target} --host=${_target} --build=${CHOST} \ + --libdir=/lib --libexecdir=/lib \ + --with-headers=/usr/${_target}/include \ + --enable-add-ons \ + --enable-obsolete-rpc \ + --enable-kernel=2.6.32 \ + --enable-bind-now --disable-profile \ + --enable-stackguard-randomization \ + --enable-lock-elision \ + --disable-multi-arch \ + --disable-werror + + # make some libs and stubs + make csu/subdir_lib +} + +package() { + cd glibc-build + + make install_root=${pkgdir}/usr/${_target} install-headers \ + install-bootstrap-headers=yes + + # glibc doesn't support eglibc's install-bootstrap-headers + # Luckily a blank gnu/stubs.h is all we need + touch ${pkgdir}/usr/${_target}/include/gnu/stubs.h + + mkdir -p ${pkgdir}/usr/${_target}/lib + cp csu/crt1.o csu/crti.o csu/crtn.o ${pkgdir}/usr/${_target}/lib + + # create stub lib + ${_target}-gcc -nostdlib -nostartfiles -shared -x c /dev/null \ + -o ${pkgdir}/usr/${_target}/lib/libc.so + + mkdir -p ${pkgdir}/usr/${_target}/usr + ln -s ../{include,lib} ${pkgdir}/usr/${_target}/usr +} diff --git a/glibc-1915d6d1.patch.xz b/glibc-1915d6d1.patch.xz Binary files differnew file mode 100644 index 000000000000..3eefd201662d --- /dev/null +++ b/glibc-1915d6d1.patch.xz |