Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 870202 - =dev-lang/duktape-2.7.0-r2 's pkg-config file include /usr/local/ as prefix
Summary: =dev-lang/duktape-2.7.0-r2 's pkg-config file include /usr/local/ as prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-15 08:44 UTC by ouranes
Modified: 2022-09-15 13:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ouranes 2022-09-15 08:44:39 UTC
This package (and possibly previous ones) does include /usr/local/ as prefix in the duktape.pm file - presumably an artifact from upstream development.

As a result, using pkg-config to add duktape in a project has the side effect of pulling /usr/local/lib and /usr/local/include, which may have unexpected effects if those directories contain different versions of other libraries used in the project, and is not needed anyway since duktape's files are installed in /usr/lib and /usr/include.

    $ pkg-config --libs --cflags duktape
    -I/usr/local/include -L/usr/local/lib -lduktape
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-15 09:33:31 UTC
I swear we fixed this before. Thanks.
Comment 2 Larry the Git Cow gentoo-dev 2022-09-15 13:09:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=336a45629bc12ad6d5ff4854c51d2a63c1483e3f

commit 336a45629bc12ad6d5ff4854c51d2a63c1483e3f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-09-15 13:08:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-15 13:09:12 +0000

    dev-lang/duktape: fix .pc file
    
    Closes: https://bugs.gentoo.org/870202
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/duktape/{duktape-2.7.0-r2.ebuild => duktape-2.7.0-r3.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)