From a08f2a9472d32f07cf9de83a4368b61c64a81f9b Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 29 Mar 2020 06:57:27 +0200 Subject: [PATCH] cross-powerpc64le-linux-musl: unrestrict to all 64-bit --- srcpkgs/cross-powerpc64le-linux-musl/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/cross-powerpc64le-linux-musl/template b/srcpkgs/cross-powerpc64le-linux-musl/template index 520fc15397f..2e2843c4734 100644 --- a/srcpkgs/cross-powerpc64le-linux-musl/template +++ b/srcpkgs/cross-powerpc64le-linux-musl/template @@ -37,7 +37,14 @@ makedepends="zlib-devel gmp-devel mpfr-devel libmpc-devel isl15-devel" nostrip_files="libcaf_single.a libgcc.a libgcov.a libgcc_eh.a libgnarl_pic.a libgnarl.a libgnat_pic.a libgnat.a" depends="${pkgname}-libc-${version}_${revision}" -archs="x86_64* ppc64le" + +if [ "$XBPS_TARGET_WORDSIZE" != "64" ]; then + broken="64-bit crosstoolchain only available on 64-bit host" +fi + +if [ "$XBPS_TARGET_MACHINE" = "ppc64le-musl" ]; then + broken="Can't build crosstoolchain to itself" +fi _apply_patch() { local args="$1" pname="$(basename $2)"