Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423421 - app-emulation/libvirt-0.9.12 uses SYSCONFDIR=/usr/local/etc/
Summary: app-emulation/libvirt-0.9.12 uses SYSCONFDIR=/usr/local/etc/
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL: http://libvirt.org/hooks.html#location
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-24 23:22 UTC by David Klaftenegger
Modified: 2012-06-26 17:46 UTC (History)
1 user (show)

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 David Klaftenegger 2012-06-24 23:22:30 UTC
The libvirt hook scripts are located in the directory $SYSCONFDIR/libvirt/hooks/.
This defaults to /usr/local/etc/, but should be changed to /etc/

As a workaround you can set /usr/local/etc to be a symlink to /etc.

Reproducible: Always

Steps to Reproduce:
1. put a hook script in /etc/libvirt/hooks/
2. put different hook script in /usr/local/etc/libvirt/hooks/
Actual Results:  
hook script (1) is ignored
hook script (2) is used

Expected Results:  
reversed: (1) should be used and (2) ignored
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2012-06-26 16:42:43 UTC
SYSCONFDIR is also used in SYSCONFDIR/libvirt/libvirtd.conf, which I can confirm is taking effect. I can also confirm in the ebuild, via econf that we're setting that to "/etc", can you confirm you haven't hand compiled anything?
Comment 2 David Klaftenegger 2012-06-26 17:46:15 UTC
(In reply to comment #1)

I can confirm that the bug is no longer present, after I recompiled the package yesterday. May have been a remaining issue from me accidentially using the not-production-ready version of the ebuild previously.

Sorry for the noise.