[Bug 2070015] Re: dpkg-buildpackage broke rp-pppoe building

2024-06-21 Thread Rico Tzschichholz
Same problem with libreoffice which makes use of
/usr/share/dpkg/buildflags.mk too

https://launchpad.net/ubuntu/+source/libreoffice/4:24.2.4-0ubuntu1

-- 
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:
  dpkg-buildpackage broke rp-pppoe building

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: dpkg-buildpackage broke rp-pppoe building

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

-- 
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:
  dpkg-buildpackage broke rp-pppoe building

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: dpkg-buildpackage broke rp-pppoe building

2024-06-21 Thread Benjamin Drung
I found the reason:

rp-pppoe does not use dh but includes /usr/share/dpkg/buildflags.mk
which calls `dpkg-buildflags --get LDFLAGS`. This command only exports
LDFLAGS but does not expose the needed environment variables.

So we need to expose them in /usr/share/dpkg/buildflags.mk as well.

-- 
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:
  dpkg-buildpackage broke rp-pppoe building

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: dpkg-buildpackage broke rp-pppoe building

2024-06-21 Thread Gianfranco Costamagna
Not sure how much this makes sense, but the warnings might disappear
with this patch?

diff -Nru dpkg-1.22.6ubuntu13/scripts/t/mk/buildflags.mk 
dpkg-1.22.6ubuntu14/scripts/t/mk/buildflags.mk
--- dpkg-1.22.6ubuntu13/scripts/t/mk/buildflags.mk  2024-06-14 
16:08:27.0 +0200
+++ dpkg-1.22.6ubuntu14/scripts/t/mk/buildflags.mk  2024-06-21 
08:19:46.0 +0200
@@ -24,3 +24,5 @@
test "$(OBJCFLAGS_FOR_BUILD)" = "$(TEST_OBJCFLAGS_FOR_BUILD)"
test "$(OBJCXXFLAGS)" = "$(TEST_OBJCXXFLAGS)"
test "$(OBJCXXFLAGS_FOR_BUILD)" = "$(TEST_OBJCXXFLAGS_FOR_BUILD)"
+   test "$(RUSTFLAGS)" = "$(TEST_RUSTFLAGS)"
+   test "$(RUSTFLAGS_FOR_BUILD)" = "$(TEST_RUSTFLAGS_FOR_BUILD)"
--- dpkg-1.22.6ubuntu13/scripts/Dpkg/BuildFlags.pm  2024-06-18 
19:48:56.0 +0200
+++ dpkg-1.22.6ubuntu14/scripts/Dpkg/BuildFlags.pm  2024-06-21 
08:17:23.0 +0200
@@ -94,6 +94,8 @@
 FCFLAGS_FOR_BUILD
 LDFLAGS
 LDFLAGS_FOR_BUILD
+RUSTFLAGS
+RUSTFLAGS_FOR_BUILD
 );
 
 $self->{features} = {};

-- 
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:
  dpkg-buildpackage broke rp-pppoe building

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: dpkg-buildpackage broke rp-pppoe building

2024-06-21 Thread Gianfranco Costamagna
https://launchpad.net/ubuntu/+source/rp-pppoe/4.0-1ubuntu1

** Description changed:

  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

-- 
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:
  dpkg-buildpackage broke rp-pppoe building

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