Article View: linux.debian.bugs.dist
Article #6002Bug#1155174: xfel FTCBFS: hard codes the build architecture pkg-config
From: Helmut Grohne
Date: Tue, 24 Nov 2026 21:00
Date: Tue, 24 Nov 2026 21:00
53 lines
3222 bytes
3222 bytes
--ADBgSPRdMk+wdfZe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Source: xfel Version: 1.4.0-1 Tags: patch upstream User: debian-cross@lists.debian.org Usertags: ftcbfs xfel fails to cross build from source, because the upstream Makefile hard codes the build architecture pkg-config. I'm attaching a patch to make it substitutable. Once applying the patch, it completes the build but fails running help2man. I fear for help2man there is no easy solution as it is fundamentally incompatible with cross building. The package could include a pre-generated manual page, have a manually written manual page, support the nodoc build profile, install the documentation to a separate -doc package or implement one of a few other schemes. However, this bug report shall only be concerned with the wrong use of pkg-config as that has an obvious solution. Please forward the patch upstream. Helmut --ADBgSPRdMk+wdfZe Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="cross.patch" --- xfel-1.4.0.orig/Makefile +++ xfel-1.4.0/Makefile @@ -15,6 +15,7 @@ AR := $(CROSS)ar OC := $(CROSS)objcopy OD := $(CROSS)objdump +PKG_CONFIG := $(CROSS)pkg-config RM := rm -fr ASFLAGS := -g -ggdb -Wall -O3 @@ -27,9 +28,9 @@ MCFLAGS := LIBDIRS := -LIBS := `pkg-config --libs libusb-1.0` +LIBS := `$(PKG_CONFIG) --libs libusb-1.0` -INCDIRS := -I . `pkg-config --cflags libusb-1.0` +INCDIRS := -I . `$(PKG_CONFIG) --cflags libusb-1.0` SRCDIRS := . chips SFILES := $(foreach dir, $(SRCDIRS), $(wildcard $(dir)/*.S)) --ADBgSPRdMk+wdfZe--
Technical Details
Message-ID:
<O35Ml-dWvb-13@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!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#1155174: xfel FTCBFS: hard codes the build architecture pkg-config Date: Tue, 24 Nov 2026 22:00:01 +0100 Message-ID: <O35Ml-dWvb-13@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Nov 24 20:51:27 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1155174@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: rabenda.cn@gmail.com X-Debian-Pr-Message: report 1155174 X-Debian-Pr-Package: src:xfel X-Debian-Pr-Keywords: patch upstream X-Debian-Pr-Source: xfel MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ADBgSPRdMk+wdfZe" 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/2004784 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 53 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 22 Nov 2026 16:40:42 +0100 X-Original-Message-ID: <20261122154042.GA3763891@subdivi.de>