Public bug reported: The ELF package note metadata introduced in dpkg 1.22.6ubuntu11 (refined in 1.22.6ubuntu14) can cause this failure:
``` gcc fatal error: environment variable ‘DEB_HOST_ARCH’ not defined ``` This happens when the `-specs=/usr/share/dpkg/elf-package- metadata.specs` parameter is set but the needed environment variables are not set. Cases: 1. Only the LDFLAGS is queried from dpkg-buildflags. Affected source packages builds: python3.12, openjdk-21, cdbs (causing dvbstreamer and rp-pppoe fail to build) 2. autopkgtests ** Affects: dpkg (Ubuntu) Importance: Undecided Status: New ** Description changed: The ELF package note metadata introduced in dpkg 1.22.6ubuntu11 (refined in 1.22.6ubuntu14) can cause this failure: ``` gcc fatal error: environment variable ‘DEB_HOST_ARCH’ not defined ``` - This happens when the -spec parameter is set but the needed environment - variables are not set. Cases: + This happens when the `-specs=/usr/share/dpkg/elf-package- + metadata.specs` parameter is set but the needed environment variables + are not set. Cases: 1. Only the LDFLAGS is queried from dpkg-buildflags. Affected source packages builds: python3.12, openjdk-21, cdbs (causing dvbstreamer and rp-pppoe fail to build) 2. autopkgtests ** Summary changed: - ELF package metadata failures + ELF package metadata failure: environment variable ‘DEB_HOST_ARCH’ not defined -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2071468 Title: ELF package metadata failure: environment variable ‘DEB_HOST_ARCH’ not defined To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2071468/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs