Your message dated Sun, 12 Apr 2009 15:49:50 +0200
with message-id <20090412134950.gr5...@rivendell>
and subject line Re: Bug#523766: dpkg-buildpackage: Doestn't respect
`DEB_BUILD_OPTIONS=noopt' when adding `-j2' to the build flags
has caused the Debian Bug report #523766,
regarding dpkg-buildpackage: Doestn't respect `DEB_BUILD_OPTIONS=noopt' when
adding `-j2' to the build flags
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
523766: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523766
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg-dev
Version: 1.15.0
Severity: normal
Hi,
grub2 has the following in it's debian/rules:
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
export CFLAGS
When I compile with `DEB_BUILD_OPTIONS=nostrip,noopt,debug dpkg-buildpackage',
it works correctly, i.e. compiler flags are `-g -O0'
But when I compile it with `DEB_BUILD_OPTIONS=nostrip,noopt,debug
dpkg-buildpackage -j2',
then compiler flags are `-g -O2'.
-- System Information:
Debian Release: squeeze/sid
APT prefers experimental
APT policy: (500, 'experimental'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dpkg-dev depends on:
ii binutils 2.19.51.20090315-1 The GNU assembler, linker and bina
ii bzip2 1.0.5-1 high-quality block-sorting file co
ii dpkg 1.15.0 Debian package management system
ii libtimedate-perl 1.1600-9 Time and date functions for Perl
ii lzma 4.43-14 Compression method of 7z format in
ii make 3.81-5 The GNU version of the "make" util
ii patch 2.5.9-5 Apply a diff file to an original
ii perl [perl5] 5.10.0-19 Larry Wall's Practical Extraction
ii perl-modules 5.10.0-19 Core Perl modules
Versions of packages dpkg-dev recommends:
ii build-essential 11.4 Informational list of build-essent
ii gcc [c-compiler] 4:4.3.3-2 The GNU C compiler
ii gcc-4.1 [c-compiler] 4.1.2-25 The GNU C compiler
ii gcc-4.3 [c-compiler] 4.3.3-5 The GNU C compiler
Versions of packages dpkg-dev suggests:
ii debian-keyring 2009.04.04 GnuPG (and obsolete PGP) keys of D
ii gnupg 1.4.9-4 GNU privacy guard - a free PGP rep
-- no debconf information
--- End Message ---
--- Begin Message ---
On Sun, 12 Apr 2009, Felix Zielcke wrote:
> When I compile with `DEB_BUILD_OPTIONS=nostrip,noopt,debug dpkg-buildpackage',
> it works correctly, i.e. compiler flags are `-g -O0'
> But when I compile it with `DEB_BUILD_OPTIONS=nostrip,noopt,debug
> dpkg-buildpackage -j2',
> then compiler flags are `-g -O2'.
What's the output of dpkg-buildpackage ?
I get this at the beginning :
dpkg-buildpackage: warning: invalid flag in DEB_BUILD_OPTIONS:
nostrip,noopt,debug
What happens is that when you use -j2 it rewrites DEB_BUILD_OPTIONS and
strips out the "invalid" value. Otherwise it doesn't touch the value that
you set.
The latest policy requires that DEB_BUILD_OPTIONS is space separated. If
you use DEB_BUILD_OPTIONS="nostrip noopt debug" dpkg-buildpackage -j2 you
get the desired behaviour.
Cheers,
--
Raphaël Hertzog
Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/
--- End Message ---