Article View: linux.debian.bugs.dist
Article #2305Bug#1152204: libretro-beatle-psx FTCBFS: hard codes the build architecture pkg-config
From: Helmut Grohne
Date: Mon, 26 Oct 2026 20:20
Date: Mon, 26 Oct 2026 20:20
60 lines
3461 bytes
3461 bytes
--PD+zf4wsNdu9IUtZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Source: libretro-beetle-psx
Version: 0.9.38.6+git20260227-1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs
libretro-beetle-psx regressed cross building. It now hard codes the
build architecture pkg-config and therefore fails locating required
libraries. I'm attaching a patch to make it substitutable in a way that
dh_auto_build substitutes. Please consider applying it and forwarding it
upstream.
Helmut
--PD+zf4wsNdu9IUtZ
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="cross.patch"
--- libretro-beetle-psx-0.9.38.6+git20260515+ds.orig/Makefile
+++ libretro-beetle-psx-0.9.38.6+git20260515+ds/Makefile
@@ -85,6 +85,8 @@
endif
endif
+PKG_CONFIG ?= pkg-config
+
# Unix
ifneq (,$(findstring unix,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
--- libretro-beetle-psx-0.9.38.6+git20260515+ds.orig/Makefile.common
+++ libretro-beetle-psx-0.9.38.6+git20260515+ds/Makefile.common
@@ -73,8 +73,8 @@
endif
ifeq ($(SYSTEM_ZLIB), 1)
- CFLAGS += $(shell pkg-config --cflags zlib)
- LIBS += $(shell pkg-config --libs zlib)
+ CFLAGS += $(shell $(PKG_CONFIG) --cflags zlib)
+ LIBS += $(shell $(PKG_CONFIG) --libs zlib)
else
INCFLAGS += $(ZLIB_INCFLAGS)
SOURCES_C += $(ZLIB_SOURCES_C)
@@ -123,8 +123,8 @@
FLAGS += -DHAVE_CHD
ifeq ($(SYSTEM_LIBCHDR), 1)
- INCFLAGS += $(shell pkg-config --cflags libchdr)
- LIBS += $(shell pkg-config --libs libchdr)
+ INCFLAGS += $(shell $(PKG_CONFIG) --cflags libchdr)
+ LIBS += $(shell $(PKG_CONFIG) --libs libchdr)
else
FLAGS += -DCHDR_SYSTEM_ZLIB
INCFLAGS += $(LIBCHDR_INCFLAGS)
--PD+zf4wsNdu9IUtZ--
Technical Details
Message-ID:
<NSzkK-84wi-37@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152204: libretro-beatle-psx FTCBFS: hard codes the build architecture pkg-config Date: Mon, 26 Oct 2026 21:20:02 +0100 Message-ID: <NSzkK-84wi-37@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 26 20:17:13 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152204@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-games-devel@lists.alioth.debian.org X-Debian-Pr-Message: report 1152204 X-Debian-Pr-Package: src:libretro-beetle-psx X-Debian-Pr-Keywords: patch upstream X-Debian-Pr-Source: libretro-beetle-psx MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="PD+zf4wsNdu9IUtZ" Content-Disposition: inline X-Reportbug-Version: 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999077 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 60 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 23 Oct 2026 08:47:19 +0200 X-Original-Message-ID: <20261023064719.GA490498@subdivi.de>