CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
cpio: fixed issues with glibc 'gets' removal (aligned with upstream)
authorVictor Martinez <pitillo@ono.com>
Sat, 24 Nov 2012 00:02:15 +0000 (00:02 +0000)
committerVictor Martinez <pitillo@ono.com>
Sat, 24 Nov 2012 00:02:15 +0000 (00:02 +0000)
cpio/Pkgfile

index c4aa11001eb83ca58c55e054be3698579f3bbe23..bc3c492314105914dd188ddc274ab7bae4b217d2 100644 (file)
@@ -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
 }