Article View: linux.debian.bugs.dist
Article #2500Bug#1152370: fotocx FTCBFS: hard codes the build architecture pkg-config
From: Helmut Grohne
Date: Wed, 28 Oct 2026 16:00
Date: Wed, 28 Oct 2026 16:00
42 lines
2977 bytes
2977 bytes
--cWSH1E6pJbVy1o0R
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Source: fotocx
Version: 26.8-1
Tags: patch upstream
User: debian-cross@lists.debian.org
Usertags: ftcbfs
fotocx fails to cross build from source, because its upstream Makefile
hard codes the build architecture pkg-config. It doesn't always do, so
it looks like cross building was fixed a while back and then new
invocations were added. I'm attaching a patch that makes the new ones
substitutable as well. Once applying it, fotocx cross builds again.
Please also forward the patch upstream.
Helmut
--cWSH1E6pJbVy1o0R
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="cross.patch"
--- fotocx-26.8.orig/Makefile
+++ fotocx-26.8/Makefile
@@ -36,10 +36,10 @@
CFLAGS += -DDEBUG
endif
-JXL_CFLAGS := $(shell pkg-config --cflags libjxl)
-JXL_LDFLAGS := $(shell pkg-config --libs libjxl libjxl_threads libhwy \
+JXL_CFLAGS := $(shell $(PKG_CONFIG) --cflags libjxl)
+JXL_LDFLAGS := $(shell $(PKG_CONFIG) --libs libjxl libjxl_threads libhwy \
libbrotlicommon libbrotlidec)
-NETMAP_LDFLAGS := $(shell pkg-config --libs webkit2gtk-4.1)
+NETMAP_LDFLAGS := $(shell $(PKG_CONFIG) --libs webkit2gtk-4.1)
LIBS = `$(PKG_CONFIG) --libs gtk+-3.0` -lrt -lpthread -ltiff -lpng -ljpeg
--cWSH1E6pJbVy1o0R--
Technical Details
Message-ID:
<NTeed-8rU2-19@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!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!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#1152370: fotocx FTCBFS: hard codes the build architecture pkg-config Date: Wed, 28 Oct 2026 17:00:01 +0100 Message-ID: <NTeed-8rU2-19@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 28 15:51:16 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152370@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-phototools-devel@lists.alioth.debian.org X-Debian-Pr-Message: report 1152370 X-Debian-Pr-Package: src:fotocx X-Debian-Pr-Keywords: patch upstream X-Debian-Pr-Source: fotocx MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="cWSH1E6pJbVy1o0R" 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/1999388 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 42 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 28 Oct 2026 16:32:39 +0100 X-Original-Message-ID: <20261028153239.GA2159704@subdivi.de>