facter: fix mips* build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-10-04 09:56:26 +02:00
parent d70d910c47
commit 7329526862
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647

View File

@ -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