summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtar/Pkgfile21
1 files changed, 12 insertions, 9 deletions
diff --git a/tar/Pkgfile b/tar/Pkgfile
index c6ad408ea..701863e48 100755
--- a/tar/Pkgfile
+++ b/tar/Pkgfile
@@ -9,13 +9,16 @@ release=1
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
-cd $name-$version
-FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr \
- --bindir=/bin \
- --libexecdir=/usr/sbin
-make
-make DESTDIR=$PKG install
-if [ -f $PKG/usr/share/info/dir ]; then
- rm $PKG/usr/share/info/dir
-fi
+ cd $name-$version
+
+ sed -i '/gets is a security hole/d' gnu/stdio.in.h
+
+ FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/usr \
+ --bindir=/bin \
+ --libexecdir=/usr/sbin
+ make
+ make DESTDIR=$PKG install
+ if [ -f $PKG/usr/share/info/dir ]; then
+ rm $PKG/usr/share/info/dir
+ fi
}