summaryrefslogtreecommitdiff
path: root/community/augeas
diff options
context:
space:
mode:
Diffstat (limited to 'community/augeas')
-rw-r--r--community/augeas/PKGBUILD9
-rw-r--r--community/augeas/augeas-0.10.0-gets.patch10
2 files changed, 16 insertions, 3 deletions
diff --git a/community/augeas/PKGBUILD b/community/augeas/PKGBUILD
index f670fd7dc..0fce1973e 100644
--- a/community/augeas/PKGBUILD
+++ b/community/augeas/PKGBUILD
@@ -4,19 +4,22 @@
pkgname=augeas
pkgver=0.10.0
-pkgrel=2
+pkgrel=2.1
pkgdesc="A configuration editing tool that parses config files and transforms them into a tree"
arch=('i686' 'x86_64' 'mips64el')
url="http://augeas.net"
license=('LGPL')
depends=('libxml2' 'gcc-libs')
options=('!libtool')
-source=(http://augeas.net/download/$pkgname-$pkgver.tar.gz{,.sig})
+source=(http://augeas.net/download/$pkgname-$pkgver.tar.gz{,.sig}
+ augeas-0.10.0-gets.patch)
md5sums=('fe1834e90a066c3208ac0214622c7352'
- 'efb3f1a90ff31320dcc4c499eba5a555')
+ 'efb3f1a90ff31320dcc4c499eba5a555'
+ '1dd66088ad8814f16cab9b6858df5af6')
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@