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

2024-09-02 Thread Benjamin Drung
The problem is probably that some ruby package capture and store the
CFLAGS on disk. Rebuilding those will be the solution.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-08-14 Thread Lucas Kanashiro
I am trying to rebuild some ruby packages as part of the ruby 3.3
transition, and I see some packages failing to build  because of this:

gcc: fatal error: environment variable ‘DEB_VERSION’ not defined

I see they are using dpkg version 1.22.11ubuntu1 (which in theory should
contain the fix):

Get:46 http://archive.ubuntu.com/ubuntu oracular/main amd64 dpkg amd64
1.22.11ubuntu1 [1301 kB]

To reproduce this error in one of those packages you can run:

$ pull-lp-source ruby-bcrypt
$ cd ruby-bcrypt-3.1.18
$ sbuild -d oracular --build-dep-resolver=aspcud --no-clean-source 
--no-run-lintian --add-depends="ruby-all-dev (>= 1:3.3~ubuntu2)" 
--extra-repository="deb http://archive.ubuntu.com/ubuntu/ oracular-proposed 
main universe"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-07-22 Thread Benjamin Drung
No, this bug is about failures when using /usr/share/dpkg/buildflags.mk,
but openjdk-8 does include /usr/share/dpkg/buildflags.mk.

openjdk-8 is affected by bug #2071468 instead (which I am working on).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-07-20 Thread Thorsten Glaser
The bug is still pertinent on oracular:
https://launchpadlibrarian.net/740177933/buildlog_ubuntu-oracular-
amd64.openjdk-8_8u422-b05-1_BUILDING.txt.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-30 Thread Launchpad Bug Tracker
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   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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-27 Thread Launchpad Bug Tracker
This bug was fixed in the package cdbs - 0.4.166ubuntu1

---
cdbs (0.4.166ubuntu1) oracular; urgency=medium

  * Export environment variables needed for ELF package metadata (LP:
#2070015)

 -- Benjamin Drung   Tue, 25 Jun 2024 12:25:40 +0200

** Changed in: cdbs (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-27 Thread Benjamin Drung
dvbstreamer fixed in cdbs 0.4.166ubuntu1

** Tags removed: block-proposed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-25 Thread Benjamin Drung
** Also affects: cdbs (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-25 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~bdrung/ubuntu/+source/cdbs/+git/cdbs/+merge/468144

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-25 Thread Gianfranco Costamagna
Setting back to block-proposed since cdbs packages are still FTBFS

dvbstreamer fails with very same issue:

configure:3734: checking whether the C compiler works
configure:3756: gcc -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer 
-ffile-prefix-map=/dvbstreamer-2.1.0=. -flto=auto -ffat-lto-objects 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection 
-fdebug-prefix-map=/dvbstreamer-2.1.0=/usr/src/dvbstreamer-2.1.0-5.7 
-Wdate-time -D_FORTIFY_SOURCE=3 -Wl,-Bsymbolic-functions -flto=auto 
-ffat-lto-objects -Wl,-z,relro 
-specs=/usr/share/dpkg/elf-package-metadata.specs conftest.c  >&5
gcc: fatal error: environment variable 'DEB_VERSION' not defined
compilation terminated.
configure:3760: $? = 1
configure:3800: result: no
configure: failed program was:


Reason is to be found inside rules file:
https://sources.debian.org/src/dvbstreamer/2.1.0-5.7/debian/rules/
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/cdbs/1/class/autotools.mk


** Tags added: block-proposed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-21 Thread Benjamin Drung
** Changed in: dpkg (Ubuntu)
   Status: In Progress => Fix Committed

** Tags removed: block-proposed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-21 Thread Benjamin Drung
Here are the proposed changes:
https://code.launchpad.net/~bdrung/ubuntu/+source/dpkg/+git/dpkg/+merge/467994

I successfully tested it with rp-pppoe. Following failures will be fixed
with it as well:

```
Use of uninitialized value in string eq at /usr/bin/dpkg-genbuildinfo line 336.
```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-21 Thread Launchpad Bug Tracker
** Merge proposal linked:
   
https://code.launchpad.net/~bdrung/ubuntu/+source/dpkg/+git/dpkg/+merge/467994

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

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

2024-06-21 Thread Benjamin Drung
** Summary changed:

- dpkg-buildpackage broke rp-pppoe building
+ DEB_* environment variables not set when using /usr/share/dpkg/buildflags.mk

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2070015

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

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


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs