[Bug 252462] Re: make: source build ignores debug in DEB_BUILD_OPTIONS

Stephen Kitt 252462 at bugs.launchpad.net
Fri Jan 3 07:59:22 UTC 2025


** Changed in: make-dfsg (Ubuntu)
       Status: New => Fix Released

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

Title:
  make: source build ignores debug in DEB_BUILD_OPTIONS

Status in make-dfsg package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: make

  After
      $ sudo apt-get build-dep make
      $ apt-get source make
      $ cd make-dfsg-3.81
      $ DEB_BUILD_OPTIONS="debug nostrip noopt" logsave ../make-debug.log dpkg-buildpackage -uc -us -rfakeroot

  I noticed that the source files were being built with "-O2" instead of "-O0".
  A comparison with the "remake" package (which behaves as expected) revealed that the environment setting made by dpkg-buildpackage was being stepped on by debian/common/copt.mk

  I created a patch as per
  https://wiki.ubuntu.com/PackagingGuide/Howtos/PatchingWithoutPatchSystem?highlight=(CategoryPackagingGuide)

  and have tested it locally - debugging builds work as expected -
  please find the patch attached.

  Unfortunately make must first be converted to use dpatch before this patch can be incorporated into the distribution.
  "remake" uses dpatch and supplying a "dpatch" patch is all that's required with that package.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/make-dfsg/+bug/252462/+subscriptions




More information about the foundations-bugs mailing list