Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675110 - QEMU_SOFTMMU_TARGETS="-*" app-emulation/qemu fails setting filecaps in pkg_postinst
Summary: QEMU_SOFTMMU_TARGETS="-*" app-emulation/qemu fails setting filecaps in pkg_po...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-10 14:25 UTC by Manuel Rüger (RETIRED)
Modified: 2019-03-23 12:48 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 Manuel Rüger (RETIRED) gentoo-dev 2019-01-10 14:25:27 UTC
Since without SOFTMMU targets, /usr/libexec/qemu-bridge-helper does not exist, the ebuild fails setting fcaps.

See change: https://github.com/qemu/qemu/commit/206d1b9c38daed50fcc08d2e743e649fbb82d60b

* Messages for package app-emulation/qemu-3.1.0:

 * FAILED postinst: 1
 * ERROR: app-emulation/qemu-3.1.0::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called pkg_postinst
 *   environment, line 3763:  Called fcaps 'cap_net_admin' '/usr/libexec/qemu-bridge-helper'
 *   environment, line 2343:  Called die
 * The specific snippet of code:
 *               chmod ${caps_mode} "${file}" || die;
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/qemu-3.1.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-3.1.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-3.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-3.1.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/qemu-3.1.0/homedir'
 * S: '/var/tmp/portage/app-emulation/qemu-3.1.0/work/qemu-3.1.0'
Comment 1 Larry the Git Cow gentoo-dev 2019-01-28 01:08:41 UTC
The bug has been closed via the following commit(s):

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

commit c9060c3c166cdabb33564aba054fa1206c5b0b4d
Author:     Doug Goldstein <cardoe@gentoo.org>
AuthorDate: 2019-01-28 01:07:50 +0000
Commit:     Doug Goldstein <cardoe@gentoo.org>
CommitDate: 2019-01-28 01:08:30 +0000

    app-emulation/qemu: fix build with SOFTMMU_TARGETS empty
    
    When SOFTMMU_TARGETS are empty the qemu-bridge-helper isn't installed
    anymore causing a failure to build due to the fcaps call.
    
    Closes: https://bugs.gentoo.org/675110
    Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 app-emulation/qemu/qemu-3.1.0.ebuild | 3 ++-
 app-emulation/qemu/qemu-9999.ebuild  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)