Skip to content

Commit

Permalink
facter: fix mips* build
Browse files Browse the repository at this point in the history
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
  • Loading branch information
pullmoll committed Oct 4, 2018
1 parent d70d910 commit 7329526
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions srcpkgs/facter/template
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7329526

Please sign in to comment.