Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 406997 - dev-lang/lua-5.2.0 does not respect LDFLAGS
Summary: dev-lang/lua-5.2.0 does not respect LDFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Matti Bickel (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: ldflags
  Show dependency tree
 
Reported: 2012-03-05 15:02 UTC by Jeroen Roovers (RETIRED)
Modified: 2012-03-05 22:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-lang:lua-5.2.0:20120305-124952.log (20120305-124952.log,20.26 KB, text/plain)
2012-03-05 15:02 UTC, Jeroen Roovers (RETIRED)
Details
Set SYSLDFLAGS, clean up (lua-5.2.0.ebuild.patch,992 bytes, patch)
2012-03-05 16:29 UTC, Jeroen Roovers (RETIRED)
Details | Diff
take 2 (lua-5.2.0.ebuild.patch,989 bytes, patch)
2012-03-05 16:33 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 15:02:24 UTC
Created attachment 304311 [details]
dev-lang:lua-5.2.0:20120305-124952.log

* QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/bin/lua
 * /usr/bin/luac
 * /usr/lib/liblua.so.5.2.0
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 16:29:44 UTC
Created attachment 304315 [details, diff]
Set SYSLDFLAGS, clean up

Looks like the configure script doesn't substitute CFLAGS, LDFLAGS or anything much in the Makefiles, so src_compile still carries that burden.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 16:32:01 UTC
Comment on attachment 304315 [details, diff]
Set SYSLDFLAGS, clean up

Oh, it shouldn't remove the tc-export CC.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 16:33:46 UTC
Created attachment 304317 [details, diff]
take 2
Comment 4 Matti Bickel (RETIRED) gentoo-dev 2012-03-05 18:14:29 UTC
Thanks for catching this. Is there a specific reason you removed -DLUA_USE_LINUX from CFLAGS?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-05 19:38:12 UTC
(In reply to comment #4)
> Thanks for catching this. Is there a specific reason you removed
> -DLUA_USE_LINUX from CFLAGS?

No. Well yes: I originally assumed econf would now take care of the special stuff, so I started rewriting the ebuild (hence "take 2"). So it's probably a good idea to check whether 1) it is now set properly without our hacking or 2) whether it is used at all. :)
Comment 6 Matti Bickel (RETIRED) gentoo-dev 2012-03-05 22:13:53 UTC
I see how adding (even minimal) autotools support can give the impression I ported the whole build system. This is not the case. The goal was to add a minimal configure file that would give me a local libtool binary. The rest of the build is still controlled by upstream's Makefile or rather my patched version of it. Keeping autotools out of the picture as much as possible was me being both lazy and conservative about deviating from upstream.

So yes, setting LUA_USE_LINUX is still necessary as nothing in libtool or CFLAGS knows about it. I was mainly asking because I suspected it didn't work on x86-fbsd, for which lua is keyworded.

If there are problems with that, I can probably move that bit to dynamic detection in configure.in. But for now, I just fixed the LDFLAGS part.