summaryrefslogtreecommitdiff
path: root/community/augeas
diff options
context:
space:
mode:
Diffstat (limited to 'community/augeas')
-rw-r--r--community/augeas/PKGBUILD3
-rw-r--r--community/augeas/augeas-0.10.0-gets.patch10
2 files changed, 12 insertions, 1 deletions
diff --git a/community/augeas/PKGBUILD b/community/augeas/PKGBUILD
index 9c79d790e..b19b3e230 100644
--- a/community/augeas/PKGBUILD
+++ b/community/augeas/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=augeas
pkgver=1.0.0
pkgrel=1
pkgdesc="A configuration editing tool that parses config files and transforms them into a tree"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://augeas.net"
license=('LGPL')
depends=('libxml2' 'gcc-libs')
@@ -17,6 +17,7 @@ md5sums=('82131019432ecf8102e1491610ad2dd1'
build() {
cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i ${srcdir}/augeas-0.10.0-gets.patch
sed -i 's|Requires:.*|Requires: libxml-2.0|' augeas.pc.in
./configure --prefix=/usr
make
diff --git a/community/augeas/augeas-0.10.0-gets.patch b/community/augeas/augeas-0.10.0-gets.patch
new file mode 100644
index 000000000..d66a46935
--- /dev/null
+++ b/community/augeas/augeas-0.10.0-gets.patch
@@ -0,0 +1,10 @@
+--- augeas-0.10.0.orig/gnulib/lib/stdio.in.h 2011-03-03 20:07:59.000000000 -0500
++++ augeas-0.10.0/gnulib/lib/stdio.in.h 2012-12-23 07:26:24.774463902 -0500
+@@ -162,7 +162,6 @@
+ 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@