Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 332523

Summary: media-libs/mlt does not respect LDFLAGS
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: QA CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331933    
Attachments: Build log

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2010-08-12 19:21:27 UTC
See attached build log.

(Please do not complain about the need for looking at the build log until you can provide an easy way to open bugs with the correct data picked out of a tinderbox log. Thanks.)
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-08-12 19:21:48 UTC
Created attachment 242663 [details]
Build log
Comment 2 Kevin Pyle 2010-08-14 04:12:20 UTC
The only file which failed to respect LDFLAGS is the Ruby binding.  It appears that hwoarang@g.o (tried to) fix this and several other problems.  However, as called out by a warning near the top of the build log, a typo prevented the Ruby fix from being effective:

     8	 * Applying mlt-0.5.4-asneeded.patch ...
     9	  [ ok ]
    10	sed: -e expression #1, char 11: : doesn't want any addresses
    11	>>> Source prepared.

Checking the ebuild, we see:
    67 	 sed -i "/^LDFLAGS/:s += : &${LDFLAGS} :" src/swig/ruby/build

There are two problems here.  The serious problem is that the s and the colon were transposed, causing the sed to fail.  The minor problem is that neither of the sed calls have an ||die, so the ebuild did not bail out on the failure.  sed does exit with an error when it fails to parse the expression cited here, so an ||die would have caught it.

Caveat: I have not run the ebuild with the expression fixed, so correcting the sed expression may not be sufficient to produce a perfectly functional ebuild.
Comment 3 Alexis Ballier gentoo-dev 2012-02-25 21:32:32 UTC
seems its been fixed during the 0.7.6 bump