diff options
author | Wilken Gottwalt | 2023-08-05 09:13:07 +0200 |
---|---|---|
committer | Wilken Gottwalt | 2023-08-05 09:13:07 +0200 |
commit | 54bc2cec873c37c2850bab8ac792f3b69276471f (patch) | |
tree | 488f1ef0a0d5e3ee415abd7a1876cbd5e7cc99ea | |
parent | af5acd488ca83fb671040f0b2fee795696c05f55 (diff) | |
download | aur-54bc2cec873c37c2850bab8ac792f3b69276471f.tar.gz |
enabled support of old or deprecated apis
- cleanup packaging section
- updated configure part to include older apis which enable headers
required in later stages
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 25 insertions, 28 deletions
@@ -1,7 +1,7 @@ pkgbase = arm-linux-gnueabihf-glibc-headers pkgdesc = GNU C Library headers pkgver = 2.38 - pkgrel = 1 + pkgrel = 2 url = https://www.gnu.org/software/libc/ arch = any license = GPL @@ -9,11 +9,13 @@ pkgbase = arm-linux-gnueabihf-glibc-headers makedepends = arm-linux-gnueabihf-gcc-stage1>=13.2.0 makedepends = python depends = arm-linux-gnueabihf-linux-api-headers>=6.1 + conflicts = arm-linux-gnueabihf-glibc + conflicts = arm-linux-gnueabihf-eglibc + replaces = arm-linux-gnueabihf-glibc options = !buildflags options = !strip options = !lto options = staticlibs - options = debug source = https://ftp.gnu.org/gnu/glibc/glibc-2.38.tar.xz source = https://ftp.gnu.org/gnu/glibc/glibc-2.38.tar.xz.sig source = sdt.h @@ -10,17 +10,19 @@ _target=arm-linux-gnueabihf pkgname=${_target}-glibc-headers pkgver=2.38 -pkgrel=1 +pkgrel=2 pkgdesc="GNU C Library headers" arch=('any') url="https://www.gnu.org/software/libc/" license=(GPL LGPL) depends=("${_target}-linux-api-headers>=6.1") makedepends=("${_target}-gcc-stage1>=13.2.0" python) -options=(!buildflags !strip !lto staticlibs debug) +conflicts=("${_target}-glibc" "${_target}-eglibc") +replaces=("${_target}-glibc") +options=(!buildflags !strip !lto staticlibs) source=(https://ftp.gnu.org/gnu/glibc/glibc-${pkgver}.tar.xz{,.sig} sdt.h sdt-config.h) -validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell +validpgpkeys=(7273542B39962DF7B299931416792B4EA25340F8 # Carlos O'Donell BC7C7372637EC10C57D7AA6579C43DFBF1CF2187) # Siddhesh Poyarekar md5sums=('778cce0ea6bf7f84ca8caacf4a01f45b' 'SKIP' @@ -32,20 +34,6 @@ prepare() { } build() { - local _configure_flags=( - --prefix=/ - --with-headers=/usr/${_target}/include - --enable-add-ons - --enable-bind-now - --enable-lock-elision - --enable-stack-protector=strong - --enable-stackguard-randomization - --disable-multi-arch - --disable-systemtap - --disable-profile - --disable-werror - ) - cd glibc-build echo "slibdir=/lib" >> configparms @@ -56,9 +44,8 @@ build() { # remove fortify for building libraries CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} - # - CFLAGS="${CFLAGS/-fno-plt/} -g -O2" - CXXFLAGS="${CXXFLAGS/-fno-plt/} -g -O2" + CFLAGS="${CFLAGS/-fno-plt/} -O2" + CXXFLAGS="${CXXFLAGS/-fno-plt/} -O2" LDFLAGS="${LDFLAGS/,-z,now/}" export BUILD_CC=gcc @@ -71,9 +58,22 @@ build() { --target=${_target} \ --host=${_target} \ --build=${CHOST} \ + --prefix=/usr \ --libdir=/lib \ --libexecdir=/lib \ - ${_configure_flags[@]} + --includedir=/include \ + --with-headers=/usr/${_target}/include \ + --enable-add-ons \ + --enable-bind-now \ + --enable-lock-elision \ + --enable-stack-protector=strong \ + --enable-stackguard-randomization \ + --enable-crypt \ + --enable-obsolete-rpc \ + --enable-kernel=2.6.32 \ + --disable-multi-arch \ + --disable-profile \ + --disable-werror # make some libs and stubs make csu/subdir_lib @@ -89,21 +89,16 @@ package() { touch "${pkgdir}"/usr/"${_target}"/include/gnu/stubs.h mkdir -p "${pkgdir}"/usr/"${_target}"/lib - #install -Dm644 "${srcdir}"/glibc-build/csu/crt1.o csu/crti.o csu/crtn.o "${pkgdir}"/usr/"${_target}"/lib install -Dm644 "${srcdir}"/glibc-build/csu/crt*.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 - # provide tracing probes to libstdc++ for exceptions, possibly for other # libraries too. Useful for gdb's catch command. install -Dm644 "${srcdir}"/sdt.h "${pkgdir}"/usr/"${_target}"/include/sys/sdt.h install -Dm644 "${srcdir}"/sdt-config.h "${pkgdir}"/usr/"${_target}"/include/sys/sdt-config.h # strip it manually to prevent makepkg complaining about srcdir references - strip "${pkgdir}"/usr/"${_target}"/lib/* 2>/dev/null || true find "${pkgdir}"/usr/"${_target}"/lib -type f -exec /usr/bin/"${_target}"-strip --strip-unneeded {} \; 2>/dev/null || true } |