Bug#1005958: nvidia-settings FTCBFS: missing cross tools ld and objdump
Helmut Grohne
helmut at subdivi.de
Fri Feb 18 05:07:38 GMT 2022
Source: nvidia-settings
Version: 510.47.03-1
Tags: patch
User: debian-cross at lists.debian.org
Usertags: ftcbfs
nvidia-settings fails to cross build from source, because it uses the
build architecture variants of ld and binutils to convert png images to
ELF objects. It later fails linking them. The build system expects the
standard variables that dpkg's buildtools.mk sets, but dh_auto_build
only passes a safe subset explicitly. Enabling all of them makes the
build proceed here. Unfortunately, it later runs host code to generate
its manual pages. That's a harder problem to solve. The attached patch
only covers the former. Please consider applying it anyway and close
this bug when doing so.
Helmut
-------------- next part --------------
diff --minimal -Nru nvidia-settings-510.47.03/debian/changelog nvidia-settings-510.47.03/debian/changelog
--- nvidia-settings-510.47.03/debian/changelog 2022-02-08 11:13:57.000000000 +0100
+++ nvidia-settings-510.47.03/debian/changelog 2022-02-17 07:17:49.000000000 +0100
@@ -1,3 +1,10 @@
+nvidia-settings (510.47.03-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Improve cross building: Pass more build tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de> Thu, 17 Feb 2022 07:17:49 +0100
+
nvidia-settings (510.47.03-1) experimental; urgency=medium
* New upstream release 510.47.03.
diff --minimal -Nru nvidia-settings-510.47.03/debian/rules nvidia-settings-510.47.03/debian/rules
--- nvidia-settings-510.47.03/debian/rules 2022-02-08 11:13:57.000000000 +0100
+++ nvidia-settings-510.47.03/debian/rules 2022-02-17 07:17:49.000000000 +0100
@@ -8,6 +8,8 @@
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/pkg-info.mk
+DPKG_EXPORT_BUILDTOOLS=1
+include /usr/share/dpkg/buildtools.mk
PKG_CONFIG_XORG_XSERVER_LIBDIR = $(shell pkg-config --variable=libdir xorg-server)
CPPFLAGS += -DPKG_CONFIG_XORG_XSERVER_LIBDIR='\"$(PKG_CONFIG_XORG_XSERVER_LIBDIR)\"'
More information about the pkg-nvidia-devel
mailing list