Bug#676713: audacity: DEB_BUILD_OPTIONS=noopt still compiles some files with -O2

Jonas Smedegaard dr at jones.dk
Sat Jun 9 09:27:52 UTC 2012


On 12-06-09 at 03:53am, Sami Liedes wrote:
> On Sat, Jun 09, 2012 at 03:29:03AM +0300, Sami Liedes wrote:
> > Package: audacity
> > Version: 2.0.0-1
> > Severity: normal
> > 
> > While trying to build a debuggable package with
> > 
> >   DEB_BUILD_OPTIONS="noopt nostrip",
> > 
> > I ran into this.
> > 
> > Even with DEB_BUILD_OPTIONS=noopt, most of the modules in the project
> > are built with -O2, while some are correctly built with -O0 (as the
> > last -O option takes precedence). Most notably, the core Audacity core
> > is built with -O2. These modules seem to be compiled with -O2:
> > 
> > * all modules inside src/
> > 
> > AND 
> > 
> > * the modules inside lib-src/portmixer/
> 
> Turns out the culprit is libportsmf-dev, which installs a pkg-config file
> 
>   /usr/lib/pkgconfig/portSMF.pc
> 
> which includes some compiler flags in its Cflags that no pkg-config
> file normally has business of including, hence causing packages using
> it to be always compiled with -g -O2 -Wall:
> 
> ------------------------------------------------------------
> $ grep Cflags /usr/lib/pkgconfig/portSMF.pc 
> Cflags: -I${includedir}/portSMF -g -O2  -Wall
> ------------------------------------------------------------


Good catch!

Sounds like a task for lintian to check for.  Please consider filing a 
wishlist bugreport against lintian for adding such check.

Maybe you could also raise the issue at debian-devel mailinglist, as 
this kind of flaw isn't specific to multimedia and others might have 
clever ideas on how to cross-check and weed out most possible of such 
flaws.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20120609/f97ead61/attachment.pgp>


More information about the pkg-multimedia-maintainers mailing list