summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorflygoat2017-01-27 13:41:04 +0800
committerflygoat2017-01-27 13:41:04 +0800
commitfb3b0c460f1ddccd86915fb393e11762f1bbbc28 (patch)
tree80035b424f50edc3c95a8ec14d69b073ac30aa82
downloadaur-fb3b0c460f1ddccd86915fb393e11762f1bbbc28.tar.gz
Add files
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD83
-rw-r--r--glibc-1915d6d1.patch.xzbin0 -> 214744 bytes
3 files changed, 106 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1b32cfcf6b1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = armv8l-linux-gnueabihf-glibc-headers
+ pkgdesc = GNU C Library headers (armv8l-linux-gnueabihf)
+ pkgver = 2.23
+ pkgrel = 5
+ url = http://www.gnu.org/software/libc/
+ arch = any
+ license = GPL
+ license = LGPL
+ makedepends = armv8l-linux-gnueabihf-gcc-stage1>=5.3.0
+ depends = armv8l-linux-gnueabihf-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 = armv8l-linux-gnueabihf-glibc-headers
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cdd100c7786
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,83 @@
+_target="armv8l-linux-gnueabihf"
+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 -mlittle-endian -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
new file mode 100644
index 00000000000..3eefd201662
--- /dev/null
+++ b/glibc-1915d6d1.patch.xz
Binary files differ