main/tar: fix build on eglibc

This commit is contained in:
Carlo Landmeter 2013-01-04 17:32:23 +01:00
parent 7ef948f03b
commit 23139fcf9e

View File

@ -12,6 +12,13 @@ makedepends=
source="ftp://ftp.gnu.org/gnu/tar/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
prepare() {
cd "$srcdir/$pkgname-$pkgver"
# fix eglibc-2.16+ build issue
sed -i -e '/gets is a/d' \
gnu/stdio.in.h || return 1
}
build() {
cd "$srcdir/$pkgname-$pkgver"