Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420221 - app-emulation/libvirt-0.9.12 USE="-qemu" - pkg_postinst() runs fperms on non-existent directories
Summary: app-emulation/libvirt-0.9.12 USE="-qemu" - pkg_postinst() runs fperms on non-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 09:34 UTC by Jiří Moravec
Modified: 2012-06-13 20:01 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 Jiří Moravec 2012-06-08 09:34:45 UTC
Emerging app-emulation/libvirt-0.9.12 without USE="qemu" ended with:

 * ERROR: app-emulation/libvirt-0.9.12 failed (postinst phase):
 *   fperms failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/libvirt-0.9.12'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/libvirt-0.9.12'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/libvirt-0.9.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/libvirt-0.9.12/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/libvirt-0.9.12'
 * S: '/var/tmp/portage/app-emulation/libvirt-0.9.12/work/libvirt-0.9.12'


This is because these 2 lines in ebuilds pkg_postinst():
fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
fperms 0750 "${EROOT}/var/cache/libvirt/qemu"

These files/dirs are nonexistent on my system without qemu useflag. With USE="qemu" everything is alright.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-12 14:56:36 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 David Klaftenegger 2012-06-12 20:16:50 UTC
The following lines are not depending on USE="qemu" in pkg_postinst(), and causing these error messages.
>        # support for dropped privileges
>        fperms 0750 "${EROOT}/var/lib/libvirt/qemu"
>        fperms 0750 "${EROOT}/var/cache/libvirt/qemu"

It shouldn't have any ill effects beyond the error message, as the package is already installed and the directories are not used in qemu-free systems.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-06-13 20:01:29 UTC
Thanks for reporting this. I've reworked the logic to fix this.