Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516874 - app-emulation/qemu[virtfs,QEMU_SOFTMMU_TARGETS='']: pkg_postinst(): chmod: cannot access ‘/usr/bin/virtfs-proxy-helper’: No such file or directory
Summary: app-emulation/qemu[virtfs,QEMU_SOFTMMU_TARGETS='']: pkg_postinst(): chmod: ca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo QEMU Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-11 08:13 UTC by Joakim Tjernlund
Modified: 2014-07-29 13:28 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 Joakim Tjernlund 2014-07-11 08:13:13 UTC
if there are no soft MMU targets one gets this error from emerge:

 * ERROR: app-emulation/qemu-9999::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_postinst
 *   environment, line 5069:  Called fcaps 'cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setgid,cap_mknod,cap_setuid' '/usr/bin/virtfs-proxy-helper'
 *   environment, line 2653:  Called die
 * The specific snippet of code:
 *               chmod ${caps_mode} "${file}" || die;

The /usr/bin/virtfs-proxy-helper prog is not installed in this case so fcaps 
errors out when it cannot file the file.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-11 09:56:11 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Joakim Tjernlund 2014-07-11 11:14:17 UTC
jocke@gentoo-jocke ~ $ emerge --info
Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.3, glibc-2.17-r1, 3.12.21 x86_64)
=================================================================
System uname: Linux-3.12.21-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    12308032 total,   4855756 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Thu, 10 Jul 2014 15:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5, 3.4.1
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17-r1::transmode
Repositories: gentoo transmode
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Oracle-BCLA-JavaSE AdobeFlash-11.x google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/portage/package.keywords/zzzautounmask /etc/portage/package.unmask/zzzautounmask /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet --jobs=8 --backtrack 1"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://devsrv.transmode.se/portage http://devsrv.transmode.se/portage/local http://ftp.df.lth.se/pub/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/transmode"
SYNC="rsync://devsrv.transmode.se/portage"
USE="X a52 aac acl acpi ads alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus device-mapper dhcpcd dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk iconv icu infinality introspection ipv6 java jpeg kerberos kvm lcms ldap libnotify libsecret mad meanwhile mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nis nls nptl ogg opengl openmp pam pango pcre pdf pdfimport perl png policykit ppds pulseaudio python qemu qt3support readline resolvconf samba sdl secure-delete session socialweb spell spice sqlite sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification subversion svg system-cairo system-icu system-jpeg system-sqlite tcpd tiff truetype udev udisks unicode upcall upower urandom usb virt-network virtualbox vorbis webdav winbind wxwidgets x264 xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="en sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_USER_TARGETS="i386 x86_64 ppc ppc64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

jocke@gentoo-jocke ~ $
Comment 3 Joakim Tjernlund 2014-07-11 12:19:22 UTC
There is no build log as it gets deleted, here is what remains:

.....
--- replaced obj /etc/qemu/target-x86_64.conf
--- replaced obj /etc/qemu/bridge.conf
--- replaced dir /etc/qemu
--- replaced obj /etc/init.d/qemu-binfmt
--- replaced dir /etc/init.d
--- replaced dir /etc
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
chmod: cannot access ‘/usr/bin/virtfs-proxy-helper’: No such file or directory
 * ERROR: app-emulation/qemu-9999::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_postinst
 *   environment, line 5087:  Called fcaps 'cap_chown,cap_dac_override,cap_fowner,cap_fsetid,cap_setgid,cap_mknod,cap_setuid' '/usr/bin/virtfs-proxy-helper'
 *   environment, line 2671:  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-9999::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/qemu-9999::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/qemu-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/qemu-9999/temp/environment'.
 * Working directory: '/usr/lib64/portage/pym'
 * S: '/var/tmp/portage/app-emulation/qemu-9999/work/qemu-9999'
!!! FAILED postinst: 1
Comment 4 Joakim Tjernlund 2014-07-13 10:19:11 UTC
I should mention that the error appears when building without any softmmu.
The simplest fix would be to just add a file exists before calling fcaps
Comment 5 SpanKY gentoo-dev 2014-07-29 10:09:09 UTC
should be all set now in the tree; thanks for the report!

Commit message: Do not attempt to set fcaps on virtfs-proxy-helper when it does not exist
http://sources.gentoo.org/app-emulation/qemu/qemu-2.0.0-r1.ebuild?r1=1.6&r2=1.7
http://sources.gentoo.org/app-emulation/qemu/qemu-9999.ebuild?r1=1.76&r2=1.77
Comment 6 Joakim Tjernlund 2014-07-29 13:28:44 UTC
Nice, if you are looking at more QEMU stuff I suggest:
 https://bugs.gentoo.org/show_bug.cgi?id=516454