From 59c01c7f235c14779a04896b2f23abb2cdd4f699 Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Thu, 18 Oct 2012 16:39:26 +0000 Subject: [PATCH] cpio: fixed issues with glibc 'gets' removal (aligned with upstream) --- cpio/Pkgfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cpio/Pkgfile b/cpio/Pkgfile index c4aa110..bc3c492 100644 --- a/cpio/Pkgfile +++ b/cpio/Pkgfile @@ -5,20 +5,26 @@ name=cpio version=2.11 -release=1 +release=2 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \ cpio-2.11-stat.patch) build() { cd $name-$version + patch -p1 -i $SRC/cpio-2.11-stat.patch + # fix for glibc 'gets' removal + sed -i -e '/gets is a/d' gnu/stdio.in.h + ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --mandir=/usr/man \ --disable-nls + make make DESTDIR=$PKG install + rm -r $PKG/usr/{share,libexec} rm $PKG/usr/man/man1/mt.1 } -- 2.26.2