diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 18:22:11 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 18:22:11 +0100 |
commit | 214e43f4e434ef172636950e117d32d1f2343647 (patch) | |
tree | 6a87a85d20b9cf63b636acfbe0ca3c16829e05ec /main/gettext | |
parent | 143b728e552236e537892a1944289f35e032d758 (diff) | |
download | aports-214e43f4e434ef172636950e117d32d1f2343647.tar.bz2 aports-214e43f4e434ef172636950e117d32d1f2343647.tar.xz |
main/gettext: fix build on eglibc
Diffstat (limited to 'main/gettext')
-rw-r--r-- | main/gettext/APKBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/main/gettext/APKBUILD b/main/gettext/APKBUILD index 048b3e941e..2b9d59fce2 100644 --- a/main/gettext/APKBUILD +++ b/main/gettext/APKBUILD @@ -22,6 +22,12 @@ prepare() { msg "Applying $i..." patch -p1 < $i || return 1 done + # fix eglibc-2.16+ build issue + sed -i -e '/gets is a/d' \ + gettext-tools/gnulib-lib/stdio.in.h \ + gettext-tools/libgettextpo/stdio.in.h \ + gettext-runtime/gnulib-lib/stdio.in.h \ + || return 1 } build() { @@ -46,8 +52,8 @@ package() { libintl() { replaces="gettext" mkdir -p "$subpkgdir"/usr/lib - - mv "$pkgdir"/usr/lib/libintl.so.* "$subpkgdir"/usr/lib + [ "$ALPINE_LIBC" != "eglibc" ] && mv "$pkgdir"/usr/lib/libintl.so.* \ + "$subpkgdir"/usr/lib || return 1 } md5sums="0c86e5af70c195ab8bd651d17d783928 gettext-0.18.2.tar.gz" |