diff options
Diffstat (limited to 'extra/cpio')
-rw-r--r-- | extra/cpio/PKGBUILD | 11 | ||||
-rw-r--r-- | extra/cpio/gets.patch | 16 |
2 files changed, 23 insertions, 4 deletions
diff --git a/extra/cpio/PKGBUILD b/extra/cpio/PKGBUILD index 959cb23dd..94d607333 100644 --- a/extra/cpio/PKGBUILD +++ b/extra/cpio/PKGBUILD @@ -2,18 +2,21 @@ # Maintainer: judd <jvinet@zeroflux.org> pkgname=cpio pkgver=2.11 -pkgrel=3 +pkgrel=3.1 pkgdesc="A tool to copy files into or out of a cpio or tar archive" -arch=(i686 x86_64) +arch=(i686 x86_64 'mips64el') license=('GPL') url="http://www.gnu.org/software/cpio" depends=('glibc') -source=(ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz) +source=(ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz + gets.patch) install=cpio.install -md5sums=('1112bb6c45863468b5496ba128792f6c') +md5sums=('1112bb6c45863468b5496ba128792f6c' + 'e9e9d1d64a2caa4b9f49b08dc09298db') build() { cd ${srcdir}/${pkgname}-${pkgver} + patch -p1 -i "$srcdir/gets.patch" ./configure --prefix=/usr --mandir=/usr/share/man make } diff --git a/extra/cpio/gets.patch b/extra/cpio/gets.patch new file mode 100644 index 000000000..0203b645e --- /dev/null +++ b/extra/cpio/gets.patch @@ -0,0 +1,16 @@ +diff -ru cpio-2.11.orig/gnu/stdio.in.h cpio-2.11/gnu/stdio.in.h +--- cpio-2.11.orig/gnu/stdio.in.h 2012-12-22 22:48:06.596855514 +0100 ++++ cpio-2.11/gnu/stdio.in.h 2012-12-22 22:49:21.496002937 +0100 +@@ -135,12 +135,6 @@ + "use gnulib module fflush for portable POSIX compliance"); + #endif + +-/* It is very rare that the developer ever has full control of stdin, +- so any use of gets warrants an unconditional warning. Assume it is +- always declared, since it is required by C89. */ +-#undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +- + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |