From 73295268627e66e48bf8c5927d45739b25dfd999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 4 Oct 2018 09:56:26 +0200 Subject: [PATCH] facter: fix mips* build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/facter/template | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/srcpkgs/facter/template b/srcpkgs/facter/template index b953418e39caf0..a93973208803ea 100644 --- a/srcpkgs/facter/template +++ b/srcpkgs/facter/template @@ -15,9 +15,12 @@ homepage="http://puppetlabs.com/facter" distfiles="http://downloads.puppetlabs.com/${pkgname}/${pkgname}-${version}.tar.gz" checksum=3b4950e0284154f448a47500905a078117006b48267996ea3795da51ccead198 -if [ "$XBPS_GCC_VERSION_MAJOR" -ge 8 ]; then - CXXFLAGS+=" -Wno-catch-value -Wno-stringop-truncation" -fi +CXXFLAGS="-Wno-catch-value -Wno-stringop-truncation" +pre_configure() { + case "$XBPS_TARGET_MACHINE" in + mips*) sed -i lib/CMakeLists.txt -e'/add_subdirectory(tests)/d' ;; + esac +} post_install() { vlicense LICENSE