Subject: [PATCH] FIX: Skip `aalib' input on target ppc64le

From: Marcel van der Boom <[email-masked]>
Date: Mon, 16 Jan 2023 12:19:28 +0100

* gstreamer.scm (gst-plugins-good):
	skip aalib input on ppc64le

Linker errors out for unknown reasons. The ascii art is imho not important
enough to skip the whole package from being included for ppc64le.
---
 gnu/packages/gstreamer.scm | 75 ++++++++++++++++++++------------------
 1 file changed, 39 insertions(+), 36 deletions(-)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 916ab2e990..156ef4eda4 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -687,42 +687,45 @@ (define libsoup
            python-wrapper
            xorg-server-for-tests))
     (inputs
-     (list aalib
-           bzip2
-           cairo
-           flac
-           (librsvg-for-system)
-           glib
-           glib-networking
-           glu
-           gtk+
-           jack-2
-           lame
-           libavc1394
-           libcaca
-           libdv
-           libgudev
-           libiec61883
-           libjpeg-turbo
-           libpng
-           libshout
-           libsoup
-           libvpx
-           libx11
-           libxdamage
-           libxfixes
-           libxext
-           libxshmfence
-           mesa
-           mpg123
-           orc
-           pulseaudio
-           speex
-           taglib
-           twolame
-           v4l-utils
-           wavpack
-           zlib))
+     (append
+      ;; linking aalib on ppc64le errors out;
+      ;; ascii isn't that important to skip the whole package for it.
+      (if (not target-ppc64le?) (list aalib) '())
+      (list bzip2
+            cairo
+            flac
+            (librsvg-for-system)
+            glib
+            glib-networking
+            glu
+            gtk+
+            jack-2
+            lame
+            libavc1394
+            libcaca
+            libdv
+            libgudev
+            libiec61883
+            libjpeg-turbo
+            libpng
+            libshout
+            libsoup
+            libvpx
+            libx11
+            libxdamage
+            libxfixes
+            libxext
+            libxshmfence
+            mesa
+            mpg123
+            orc
+            pulseaudio
+            speex
+            taglib
+            twolame
+            v4l-utils
+            wavpack
+            zlib)))
     (propagated-inputs
      (list gstreamer gst-plugins-base))
     (synopsis "GStreamer plugins and helper libraries")
-- 
2.38.1