Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170983 - dev-util/pmk-0.10.0 fails to build a correct /etc/pmk/pmk.conf in pkg_postinst()
Summary: dev-util/pmk-0.10.0 fails to build a correct /etc/pmk/pmk.conf in pkg_postinst()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: David Holm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-15 02:32 UTC by James Rowe
Modified: 2007-03-15 19:37 UTC (History)
0 users

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


Attachments
pmk-fix_pmksetup_calls.patch (pmk-fix_pmksetup_calls.patch,798 bytes, patch)
2007-03-15 02:33 UTC, James Rowe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Rowe 2007-03-15 02:32:29 UTC
The v0.10.0 ebuild fails to update the pmk.conf due to lack of quoting.
Failure to correctly set the prefix breaks external usage, and even the
pmk tools themselves.

  A simple example would be pmkpc:

    ~/test $ pmkpc --cflags pango
    Error : cannot open '/usr/local/lib/pkgconfig' directory : No such file or directory.
    Error : 'pango-config' not found.

  There is an ugly, but almost usable workaround for this specific case:

    ~/test $ PKG_CONFIG_PATH=/usr/lib/pkgconfig/ pmkpc --cflags pango
    Error : cannot open '/usr/local/lib/pkgconfig' directory : No such file or directory.
    -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include

and the general case can be mostly avoided with a local pmk.conf and the
-o option to pmk.

  The patch fixes the pmksetup call, and removes the output redirection
which masks the failure.  One imagines that is the reason this bug
wasn't caught when the package was bumped.
Comment 1 James Rowe 2007-03-15 02:33:12 UTC
Created attachment 113321 [details, diff]
pmk-fix_pmksetup_calls.patch
Comment 2 David Holm (RETIRED) gentoo-dev 2007-03-15 19:37:16 UTC
Thank you James.
I bumped the version to 0.10.1 and added your fix with some minor modifications.