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

Bug 602476

Summary: dev-lang/lua:5.{1,2,3}: provided pkg-config files report wrong flags
Product: Gentoo Linux Reporter: Stefan Huber <shuber>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: RESOLVED DUPLICATE    
Severity: normal CC: CasperVector, shuber, williamh
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/11316
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff between lua-5.2.3-r1.ebuild and my version of lua-5.2.3-r2.ebuild
diff between the current version and my version of lua.pc
diff between lua-5.2.3-r1.ebuild and my version of lua-5.2.3-r2.ebuild

Description Stefan Huber 2016-12-12 21:20:02 UTC
"pkg-config --cflags lua5.3" returns the empty string, but is supposed to return "-I/usr/include/lua5.3". The same holds for lua:5.1 and lua:5.2. The output of pkg-config --libs is broken, too.

The ebuild files of lua:5.2 and lua:5.3 packages install lua.pc as lua${SLOT}.pc, but the sed-substitutions on lua.pc are inadequate, causing the wrong outputs of pkg-config.

This bug related to #524460, #534150, and #536598.
Comment 1 Casper Ti. Vector 2017-08-23 00:59:49 UTC
Also related to bug #592052, and lua-5.2.3-r2.ebuild (commit f6512274) in the current Portage tree does not fix the problem properly.  To be attached is my rework of lua-5.2.3-r2.ebuild, based on lua-5.2.3-r1.ebuild.
Comment 2 Casper Ti. Vector 2017-08-23 01:00:08 UTC
Created attachment 490182 [details, diff]
diff between lua-5.2.3-r1.ebuild and my version of lua-5.2.3-r2.ebuild
Comment 3 Casper Ti. Vector 2017-08-23 01:01:06 UTC
Created attachment 490184 [details, diff]
diff between the current version and my version of lua.pc
Comment 4 Casper Ti. Vector 2017-08-23 01:08:30 UTC
Created attachment 490186 [details, diff]
diff between lua-5.2.3-r1.ebuild and my version of lua-5.2.3-r2.ebuild

Sorry, forgot to discard an unnecessary change.
Comment 5 Stefan Huber 2019-02-26 20:30:43 UTC
The proposed fix is trivial yet the bug is open for more than two years. Is there any plan to resolve this issue?
Comment 6 Stefan Huber 2019-03-09 11:50:34 UTC
Fixed, indeed. Thank you.
Comment 7 Stefan Huber 2019-03-09 11:51:23 UTC
(In reply to Stefan Huber from comment #6)
> Fixed, indeed. Thank you.

Damn, wrong bugzilla tab. I am very sorry.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-03-25 05:14:46 UTC

*** This bug has been marked as a duplicate of bug 592052 ***