[Bug 2071468] [NEW] ELF package metadata failure: environment variable ‘DEB_HOST_ARCH’ not defined
Benjamin Drung
2071468 at bugs.launchpad.net
Fri Jun 28 12:58:31 UTC 2024
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
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/2071468
Title:
ELF package metadata failure: environment variable ‘DEB_HOST_ARCH’ not
defined
Status in dpkg package in Ubuntu:
New
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2071468/+subscriptions
More information about the foundations-bugs
mailing list