From 1324f601f136a438b1adb1cbeaa1cc5a203cd1b7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 21 Apr 2015 09:09:24 +0200 Subject: [PATCH] xbps: fix bootstrap build and remove obsolete stuff. --- srcpkgs/xbps/template | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index be9d4fb166e..317fc3ce268 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -12,10 +12,7 @@ license="2-clause-BSD" makedepends="zlib-devel libressl-devel libarchive-devel" depends="xbps-triggers" -if [ -z "$CHROOT_READY" ]; then - CFLAGS+=" -idirafter ${XBPS_MASTERDIR}/usr/include" - LDFLAGS+=" -L${XBPS_MASTERDIR}/usr/lib" -else +if [ "$CHROOT_READY" ]; then hostmakedepends="git pkg-config" makedepends+=" atf-devel" xbps-tests_package() { @@ -31,6 +28,7 @@ do_fetch() { git clone -b${version} git://github.com/voidlinux/xbps ${wrksrc} } do_configure() { + CFLAGS+=" -Wno-error=redundant-decls" HAVE_VASPRINTF=1 ./configure --prefix=/usr --sysconfdir=/etc --enable-debug \ ${CHROOT_READY:+--enable-tests} }