Package: dpkg-dev Version: 1.16..2 Hello:
I noticed that some of the options I set in DEB_BUILD_OPTIONS and DEB_*_APPEND get overriden by DEB_*_MAINT_*. Also I noticed http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653846 seems to suggest to set DEB_CFLAGS_MAINT_APPEND=-Os DEB_CFLAGS_MAINT_APPEND=-O3 for when one wants to override the default optimization level and from what I remember there are some packages that do this. The problem is that when the user wants to do: DEB_BUILD_OPTIONS="noopt" dpkg-buildpackage -b DEB_CFLAGS_APPEND=-O0 dpkg-buildpackage -b or even try to cheat and do DEB_CFLAGS_MAINT_APPEND=-O0 dpkg-buildpackage -b the DEB_*_MAINT_* in the rules file takes priority (DEB_*_MAINT_APPEND basically overrides anything) since it get added after the -O0 and it needs to be changed manually in the rules file. I would guess the DEB_BUILD_OPTIONS="noopt" problem should be reported against the package that suffer from this case but should not the user options in DEB_flag_* (or $XDG_CONFIG_HOME/dpkg/buildflags.conf) override the DEB_flag_MAINT_* equivalent? If I change BuildFlags.pm from: sub load_config { my ($self) = @_; $self->load_system_config(); $self->load_user_config(); $self->load_environment_config(); $self->load_maintainer_config(); } to: sub load_config { my ($self) = @_; $self->load_system_config(); $self->load_user_config(); $self->load_maintainer_config(); $self->load_environment_config(); } At least the "DEB_CFLAGS_APPEND=-O0 dpkg-buildpackage -b" case works. -Miguel -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

