Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534318 - dev-lang/swig-2.0.9 - configure:5558: error: Cannot find pcre-config script from PCR
Summary: dev-lang/swig-2.0.9 - configure:5558: error: Cannot find pcre-config script f...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-02 13:44 UTC by Garry Filakhtov
Modified: 2015-01-02 19:25 UTC (History)
1 user (show)

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


Attachments
config.log for dev-lang/swig-2.0.9 (config.log,25.88 KB, text/x-log)
2015-01-02 13:44 UTC, Garry Filakhtov
Details
emerge --info (emerge-info.txt,4.36 KB, text/plain)
2015-01-02 13:45 UTC, Garry Filakhtov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Garry Filakhtov 2015-01-02 13:44:29 UTC
Created attachment 392958 [details]
config.log for dev-lang/swig-2.0.9

Happy New Year everyone!

I'm doing new Gentoo installation and found an issue with dev-lang/swig.
Using the "hardened/linux/amd64/no-multilib/selinux" profile.

"static-libs" flag is forced on "dev-libs/libpcre" by "package.use.force" in SELinux profile. Therefore swig can't find pcre-config script and throws an error during the "configure" stage:

configure: error: 
        Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions)
        library package. This dependency is needed for configure to complete,
        Either:
        - Install the PCRE developer package on your system (preferred approach).
        - Download the PCRE source tarball, build and install on your system
          as you would for any package built from source distribution.
        - Use the Tools/pcre-build.sh script to build PCRE just for SWIG to statically
          link against. Run 'Tools/pcre-build.sh --help' for instructions.
          (quite easy and does not require privileges to install PCRE on your system)
        - Use configure --without-pcre to disable regular expressions support in SWIG
          (not recommended).

Package versions and USE flags:
dev-libs/libpcre-8.35:3 bzip2 cxx jit readline recursion-limit (static-libs) (unicode) zlib -libedit -pcre16 -pcre32
dev-lang/swig-2.0.9 pcre -ccache -doc

I've disabled "pcre" USE flag on swig as a temporary workaround.
Comment 1 Garry Filakhtov 2015-01-02 13:45:40 UTC
Created attachment 392960 [details]
emerge --info
Comment 2 Garry Filakhtov 2015-01-02 19:24:16 UTC
Problem seems solved. Have to rebuild system again from scratch.