[Bug 2070015] Re: DEB_* environment variables not set when using /usr/share/dpkg/buildflags.mk

Launchpad Bug Tracker 2070015 at bugs.launchpad.net
Sun Jun 30 21:56:20 UTC 2024


This bug was fixed in the package dpkg - 1.22.6ubuntu14

---------------
dpkg (1.22.6ubuntu14) oracular; urgency=medium

  * Export environment variables DEB_BUILD_OS_RELEASE_ID, DEB_HOST_ARCH,
    DEB_SOURCE, and DEB_VERSION when including buildflags.mk (LP: #2070015)
  * buildflags: document RUSTFLAGS
  * buildflags: Always set RUSTFLAGS
  * buildflags: set origin of env vars for ELF package metadata

 -- Benjamin Drung <bdrung at ubuntu.com>  Fri, 21 Jun 2024 18:46:10 +0200

** Changed in: dpkg (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
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/2070015

Title:
  DEB_* environment variables not set when using
  /usr/share/dpkg/buildflags.mk

Status in cdbs package in Ubuntu:
  Fix Released
Status in dpkg package in Ubuntu:
  Fix Released

Bug description:
  Hello, few things broke with last dpkg uploads:
  https://pastebin.ubuntu.com/p/2GN5fdtpsz/
  configure:2498: gcc -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/rp-pppoe-4.0-1ubuntu1=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/rp-pppoe-4.0-1ubuntu1=/usr/src/rp-pppoe-4.0-1ubuntu1 -Wdate-time -D_FORTIFY_SOURCE=3 -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -specs=/usr/share/dpkg/elf-package-metadata.specs conftest.c  >&5
  gcc: fatal error: environment variable 'DEB_VERSION' not defined

  (probably this is due to not having the standard dh calls)

  Also,
  Use of uninitialized value in string eq at /usr/bin/dpkg-genbuildinfo line 337.
  Are printed for newly introduced variables:
  DEB_BUILD_OS_RELEASE_ID DEB_SOURCE DEB_VERSION

  Example of failing package:
  https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2070015

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cdbs/+bug/2070015/+subscriptions




More information about the foundations-bugs mailing list