From 720f2c1c52da5b672944381616cc76b23c9ed9fa Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 20 Dec 2020 19:33:51 +0100 Subject: [PATCH] guile: unbork ppc --- srcpkgs/guile/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/guile/template b/srcpkgs/guile/template index 9e73558546..60a5be9858 100644 --- a/srcpkgs/guile/template +++ b/srcpkgs/guile/template @@ -15,16 +15,18 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=44b4c5fbbe257ccdebea18420212c9b3e90c3c86a54920d8554039fc6769a007 subpackages="libguile guile-devel" +if [ "$XBPS_ENDIAN" != "$XBPS_TARGET_ENDIAN" ]; then + broken="opposite-endian host generates broken files" +fi + if [ "$CROSS_BUILD" ]; then # Need host guile to cross compile hostmakedepends+=" guile" fi -pre_configure() { - # magically fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941218 - case "$XBPS_TARGET_MACHINE" in - ppc*) export CFLAGS+=" -Os";; - esac +post_extract() { + # broken files causing crash + rm -rf prebuilt/32-bit-big-endian } libguile_package() {