diff --git a/srcpkgs/powerpc-utils/patches/fix-endian_h.patch b/srcpkgs/powerpc-utils/patches/fix-endian_h.patch new file mode 100644 index 00000000000..75dd274eb90 --- /dev/null +++ b/srcpkgs/powerpc-utils/patches/fix-endian_h.patch @@ -0,0 +1,10 @@ +--- src/rtas_dbg.c 2018-12-15 01:18:13.000000000 +0100 ++++ src/rtas_dbg.c 2019-03-19 15:51:46.699643983 +0100 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/powerpc-utils/patches/fix-limits_h.patch b/srcpkgs/powerpc-utils/patches/fix-limits_h.patch new file mode 100644 index 00000000000..98cdc39b0c5 --- /dev/null +++ b/srcpkgs/powerpc-utils/patches/fix-limits_h.patch @@ -0,0 +1,10 @@ +--- src/drmgr/drmig_chrp_pmig.c 2018-12-15 01:18:13.000000000 +0100 ++++ src/drmgr/drmig_chrp_pmig.c 2019-03-19 15:25:47.321563535 +0100 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/srcpkgs/powerpc-utils/template b/srcpkgs/powerpc-utils/template index 779a33a2cc8..d6708b3bd0e 100644 --- a/srcpkgs/powerpc-utils/template +++ b/srcpkgs/powerpc-utils/template @@ -1,9 +1,10 @@ # Template file for 'powerpc-utils' pkgname=powerpc-utils version=1.3.6 -revision=1 +revision=2 archs="ppc ppc-musl ppc64*" build_style=gnu-configure +configure_args="--disable-silent-rules" hostmakedepends="automake libtool" makedepends="librtas-devel zlib-devel" depends="bc" @@ -14,6 +15,15 @@ homepage="https://github.com/ibm-power-utilities/powerpc-utils" distfiles="https://github.com/ibm-power-utilities/powerpc-utils/archive/v${version}.tar.gz" checksum=0ff10b01761ea1b598b05aaf9a5c20da8ab8784b3dc6d0c7f19d15426672523b +if [ "$CROSS_BUILD" ]; then + configure_args+=" --with-librtas ac_cv_lib_rtasevent_parse_rtas_event=yes" +fi +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" libexecinfo-devel" + configure_args+=" LIBS=-lexecinfo" + ;; +esac + pre_configure() { ./autogen.sh }