facter: fix gcc-8.2.0 build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-08-09 14:41:14 +02:00
parent 2354746907
commit 55306060d5
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -15,6 +15,10 @@ homepage="http://puppetlabs.com/facter"
distfiles="http://downloads.puppetlabs.com/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=aafded9846f397bc0c74ab71376f9172f44fc8e5bece243454d2f26c2be073a0
if [ "$XBPS_GCC_VERSION_MAJOR" -ge 8 ]; then
CXXFLAGS+=" -Wno-catch-value -Wno-stringop-truncation"
fi
post_install() {
vlicense LICENSE
}