Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611896 - sys-apps/portage-9999: keeps trying to rebuild app-emulation/qemu[-*or32] but builds it with [*or32]
Summary: sys-apps/portage-9999: keeps trying to rebuild app-emulation/qemu[-*or32] but...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 612780
  Show dependency tree
 
Reported: 2017-03-06 14:50 UTC by Michał Górny
Modified: 2017-05-20 19:26 UTC (History)
0 users

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


Attachments
app-emulation:qemu-2.8.0-r6:20170304-082401.log.lz (app-emulation:qemu-2.8.0-r6:20170304-082401.log.lz,74.80 KB, application/x-lzip)
2017-03-06 14:50 UTC, Michał Górny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-06 14:50:09 UTC
Created attachment 466132 [details]
app-emulation:qemu-2.8.0-r6:20170304-082401.log.lz

So here's a crazy bug. My package.use has:

 app-emulation/qemu QEMU_SOFTMMU_TARGETS: *
 app-emulation/qemu QEMU_USER_TARGETS: *

I don't see any other file in neither my local configuration nor the profiles referencing those flags.

Now, everyday when I do 'emerge -1vDtuN @world', I get:

[ebuild   R    ] app-emulation/qemu-2.8.0-r6::gentoo  USE="[...]" LINGUAS="[...]" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="[...] -or32*" QEMU_USER_TARGETS="[...] -or32*" 0 KiB


i.e. Portage wants to incorrectly rebuild it with -or32 target. However, when I let it proceed, it builds it... with or32 enabled:

 * USE:        [...] qemu_softmmu_targets_or32 [...] qemu_user_targets_or32 [...]

Of course, the next 'emerge ... @world' tries to rebuild it again, and again, and again.


--
Portage 2.3.4 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.24-r1, 4.10.0-pf2-pomiocik+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.0-pf2-pomiocik+-x86_64-Intel-R-_Core-TM-_i3-3217U_CPU_@_1.80GHz-with-gentoo-2.3
Timestamp of repository gentoo: Mon, 06 Mar 2017 13:43:17 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.0::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-umask: 027
    sync-uri: https://github.com/swegener/gentoo-portage
    priority: -1000

mgorny
    location: /home/mgorny/mgorny-repo
    sync-umask: 027
    masters: gentoo
    priority: 10000

Installed sets: @mg_cb_agent, @mg_gamebot, @mg_qanalytics
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CC="x86_64-pc-linux-gnu-gcc-5.4.0"
CFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="x86_64-pc-linux-gnu-g++-5.4.0"
CXXFLAGS="-O2 -pipe -march=core-avx-i --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072"
DISTDIR="/var/cache/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --ask"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg cgroup collision-protect config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox lmirror merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://pomiot.local/ http://mirror.netcologne.de/gentoo/ http://gentoo.mirror.web4u.cz/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.pw.edu.pl/ http://ftp.vectranet.pl/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/var/cache/portage/packages"
PORTAGE_COMPRESS="lzip"
PORTAGE_COMPRESS_FLAGS="-9"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi adns alsa amd64 amr avx bash-completion berkdb bluetooth branding bzip2 cairo caps cdda cdr cli cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emboss encode exif fam fftw firefox flac fortran gd gdbm gif glamor gmp gnome-keyring gnutls gphoto2 gtk hdri iconv icu id3tag idn imagemagick ipv6 jbig jit jpeg jpeg2k lapack lcms libedit liblockfile libnotify libsecret lzma lzo mad mmx mng modules mp3 mp4 mpeg mpfr mtp multilib ncurses nls nptl ogg openexr opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline schroedinger sctp sdl seccomp session smp sndfile speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upnp upower usb v4l vaapi vdpau vim-syntax vorbis vpx webp wmf wxwidgets x264 xattr xcb xcomposite xml xpm xv xvid zeroconf zlib" ABI_X86="32 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="pl" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl" LLVM_TARGETS="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 pypy pypy3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau intel" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/qemu-2.8.0-r6::gentoo was built with the following:
USE="aio alsa bluetooth bzip2 caps curl fdt filecaps gnutls gtk jpeg lzo ncurses nls opengl pin-upstream-blobs png pulseaudio python sasl sdl seccomp snappy spice ssh threads usb usbredir vhost-net vnc xattr -accessibility -debug -glusterfs -gtk2 -infiniband -iscsi -nfs -numa -rbd -sdl2 (-selinux) -smartcard -static -static-user -systemtap -tci -test -vde -virgl -virtfs -vte -xen -xfs" ABI_X86="64" LINGUAS="-bg -de_DE -fr_FR -hu -it -tr -zh_CN" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="aarch64 (alpha) (arm) cris i386 lm32 (m68k) microblaze microblazeel (mips) mips64 mips64el mipsel moxie or32 (ppc) (ppc64) ppcemb s390x sh4 sh4eb (sparc) sparc64 tricore unicore32 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="aarch64 (alpha) (arm) armeb cris i386 (m68k) microblaze microblazeel (mips) mips64 mips64el mipsel mipsn32 mipsn32el or32 (ppc) (ppc64) ppc64abi32 ppc64le s390x sh4 sh4eb (sparc) sparc32plus sparc64 tilegx x86_64"

>>> Attempting to run pkg_info() for 'app-emulation/qemu-2.8.0-r6'
Using:
  app-emulation/spice-protocol-0.12.12
  sys-firmware/ipxe-1.0.0_p20160620
  sys-firmware/seabios-1.10.1
    USE=binary
  sys-firmware/vgabios-0.7a-r1
Comment 1 Matthias Maier gentoo-dev 2017-03-09 19:15:19 UTC
A bit more information:

The app-emulation/qemu-9999 ebuild lost the "or32" target, it was renamed to "or1k". qemu-2.8.0* still has the "or32" target and corresponding use flags.
Comment 2 Zac Medico gentoo-dev 2017-03-09 21:24:54 UTC
It looks like problem is that config.setcpv does not set the has_changed flag whe the IUSE has changed.
Comment 5 Zac Medico gentoo-dev 2017-05-20 19:26:47 UTC
Fixed in portage-2.3.5.