Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602476 - dev-lang/lua:5.{1,2,3}: provided pkg-config files report wrong flags
Summary: dev-lang/lua:5.{1,2,3}: provided pkg-config files report wrong flags
Status: RESOLVED DUPLICATE of bug 592052
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2016-12-12 21:20 UTC by Stefan Huber
Modified: 2019-03-25 05:14 UTC (History)
3 users (show)

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


Attachments
diff between lua-5.2.3-r1.ebuild and my version of lua-5.2.3-r2.ebuild (lua-5.2.3-r2.ebuild.diff,1.30 KB, patch)
2017-08-23 01:00 UTC, Casper Ti. Vector
Details | Diff
diff between the current version and my version of lua.pc (lua.pc.diff,747 bytes, patch)
2017-08-23 01:01 UTC, Casper Ti. Vector
Details | Diff
diff between lua-5.2.3-r1.ebuild and my version of lua-5.2.3-r2.ebuild (lua-5.2.3-r2.ebuild.diff,1.18 KB, patch)
2017-08-23 01:08 UTC, Casper Ti. Vector
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***