Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528092 - =sys-apps/portage-2.2.8-r2: does not detect changes in USE from '/etc/portage/package.use'
Summary: =sys-apps/portage-2.2.8-r2: does not detect changes in USE from '/etc/portage...
Status: RESOLVED DUPLICATE of bug 350230
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-03 09:46 UTC by Eduardo Coutinho Scalabrin
Modified: 2014-12-01 00:51 UTC (History)
0 users

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


Attachments
File created by the command 'emerge --update --deep --newuse --with-bdeps=y --debug @world > debug.log 2>&1' (debug.tar.bz2,499.17 KB, text/plain)
2014-11-30 14:00 UTC, Eduardo Coutinho Scalabrin
Details
File created by the command 'emerge --update --deep --newuse --with-bdeps=y --debug @world > debug.log 2>&1' (debug.tar.bz2,499.17 KB, application/x-bzip)
2014-11-30 14:14 UTC, Eduardo Coutinho Scalabrin
Details
File created by the command 'emerge --update --deep --newuse --with-bdeps=y --debug @world > debug2.log 2>&1' (debug2.tar.bz2,499.18 KB, application/x-bzip)
2014-11-30 23:27 UTC, Eduardo Coutinho Scalabrin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Coutinho Scalabrin 2014-11-03 09:46:20 UTC
I have ">=dev-lang/fpc-2.6.4 source" in file "/etc/portage/package.use/source-fpc.use" and when I delete this file the command "emerge -pv --changed-use --deep @world" returns "Total: 0 packages, Size of downloads: 0 kB". But if I do "emerge -pv1 fpc" I have "[ebuild   R    ] dev-lang/fpc-2.6.4  USE="-doc -ide -source*" 0 kB" and this USE is required for others packages.

Reproducible: Always

Steps to Reproduce:
1.I have ">=dev-lang/fpc-2.6.4 source" in file "/etc/portage/package.use/source-fpc.use"
2.rm /etc/portage/package.use/source-fpc.use
3.emerge -pv --changed-use --deep @world
Actual Results:  
The command "emerge -pv --changed-use --deep @world" returns "Total: 0 packages, Size of downloads: 0 kB".

Expected Results:  
The command "emerge -pv --changed-use --deep @world" should reinstall the package "dev-lang/fpc-2.6.4".

Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6320_@_1.86GHz-with-gentoo-2.2
KiB Mem:     3987460 total,   1799404 free
KiB Swap:    4096568 total,   4096568 free
Timestamp of tree: Mon, 03 Nov 2014 08:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
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.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo wirelay sunrise sabayon ROKO__ gentoo-el ago local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
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://distfiles.gentoo.org/ http://gentoo.osuosl.org/ ftp://ftp.osuosl.org/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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/wirelay /var/lib/layman/sunrise /var/lib/layman/sabayon /var/lib/layman/ROKO__ /var/lib/layman/gentoo-el /var/lib/layman/ago /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aacplus aalib acl acpi ads alac alsa amd64 ao audacious audiofile autotrace bash-completion bazaar berkdb bidi bittorrent bluetooth branding btrfs bzip2 cairo cdda cddb cdio cdparanoia cdr chm cjk cli consolekit corefonts cpudetection cracklib crypt css cue cups cxx dbus declarative device-mapper dga dirac dmx dri dts dv dvb dvd dvdr embedded emboss encode exif extensions extras faac fam fat fdformat ffmpeg firefox flac fontconfig fortran frei0r ftp g3dvl gadu gd gdbm gif gimp git glamor gme gmp gphoto2 gpm graphviz groupwise gsm gstreamer gtk hfs hpijs iconv icu ieee1394 imagemagick imlib inotify ipod ipv6 irda jack java jfs joystick jpeg jpeg2k kde kdenlive kdrive kipi lame lcms ldap libcaca libkms libnotify libsamplerate live lm_sensors lz4 lzma lzo mac mad matroska meanwhile melt mencoder mercurial midi mikmod minizip mjpeg mms mmx mng mod modplug modules mp3 mp4 mpeg mplayer msn multilib musepack musicbrainz mysql ncurses network nls nptl nsplugin ntfs nvidia ogg ogm openal openexr opengl openmp openssl opus oscar pam pango pcre pdf perl phonon plasma png policykit ppds ppp python qt3support qt4 quicktime rar readline reiser4 reiserfs rss scanner schroedinger script sdl semantic-desktop session shorten shout sid smp sms sndfile soprano sox speex spell sqlite srt sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg swat taglib tcl tcpd theora threads tiff timidity tk tremor truetype tta twolame udev udisks unicode upower usb v4l vcd vdpau vorbis wavpack webkit winbind wmf wxwidgets x264 xa xcb xcomposite xfs xine xinerama xml xmp xpm xscreensaver xv xvid xvmc yahoo 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="*" 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" GRUB_PLATFORMS="multiboot pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="pt_BR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Zac Medico gentoo-dev 2014-11-29 18:39:49 UTC
(In reply to Eduardo Coutinho Scalabrin from comment #0)
> The command "emerge -pv --changed-use --deep @world" returns "Total: 0
> packages, Size of downloads: 0 kB".

Is dev-lang/fpc in /var/lib/portage/world? If not, how do you expect it to be pulled into the dependency graph? Maybe --with-bdeps=y helps?

You can check reverse dependencies like this:

    emerge -pv --depclean dev-lang/fpc
Comment 2 Eduardo Coutinho Scalabrin 2014-11-29 21:58:51 UTC
(In reply to Zac Medico from comment #1)
> (In reply to Eduardo Coutinho Scalabrin from comment #0)
> > The command "emerge -pv --changed-use --deep @world" returns "Total: 0
> > packages, Size of downloads: 0 kB".
> 
> Is dev-lang/fpc in /var/lib/portage/world? If not, how do you expect it to
> be pulled into the dependency graph? Maybe --with-bdeps=y helps?
> 
> You can check reverse dependencies like this:
> 
>     emerge -pv --depclean dev-lang/fpc

I have not dev-lang/fpc in /var/lib/portage/world but I have media-video/winff in this archive, and media-video/winff requires dev-lang/lazarus more dev-lang/fpc[source].
When I do 'emerge --update --deep --newuse --changed-use --with-bdeps=y @world' I have 'Total: 0 packages, Size of downloads: 0 kB', but when I do 'emerge -pv --depclean dev-lang/fpc' I have 'dev-lang/lazarus-1.0.12 requires >=dev-lang/fpc-2.6.0[source]'.
Comment 3 Zac Medico gentoo-dev 2014-11-29 22:06:42 UTC
(In reply to Eduardo Coutinho Scalabrin from comment #2)
> I have not dev-lang/fpc in /var/lib/portage/world but I have
> media-video/winff in this archive, and media-video/winff requires
> dev-lang/lazarus more dev-lang/fpc[source].
> When I do 'emerge --update --deep --newuse --changed-use --with-bdeps=y
> @world' I have 'Total: 0 packages, Size of downloads: 0 kB', but when I do
> 'emerge -pv --depclean dev-lang/fpc' I have 'dev-lang/lazarus-1.0.12
> requires >=dev-lang/fpc-2.6.0[source]'.

lazarus is a build-time only dependency of winff, so we would expect the command using --with-bdeps=y to pull it in. Please attach a debug log created as follows:

   emerge --update --deep --newuse --with-bdeps=y --debug > debug.log 2>&1

Note that --changed-use is redundant when you use --newuse.
Comment 4 Zac Medico gentoo-dev 2014-11-29 22:07:29 UTC
(In reply to Zac Medico from comment #3)
>    emerge --update --deep --newuse --with-bdeps=y --debug > debug.log 2>&1

Include @world in that command, of course.
Comment 5 Eduardo Coutinho Scalabrin 2014-11-30 14:00:17 UTC
Created attachment 390648 [details]
File created by the command 'emerge --update --deep --newuse --with-bdeps=y --debug @world > debug.log 2>&1'
Comment 6 Eduardo Coutinho Scalabrin 2014-11-30 14:14:51 UTC
Created attachment 390652 [details]
File created by the command 'emerge --update --deep --newuse --with-bdeps=y --debug @world > debug.log 2>&1'

Sorry for the mistake in choosing the file type.
Comment 7 Zac Medico gentoo-dev 2014-11-30 16:53:53 UTC
(In reply to Eduardo Coutinho Scalabrin from comment #6)
> Created attachment 390652 [details]
> File created by the command 'emerge --update --deep --newuse --with-bdeps=y
> --debug @world > debug.log 2>&1'

The issue is cause by a USE dependency conflict, like in bug 350230. The installed lazarus package has a build-time dependency on >=dev-lang/fpc-2.6.0[source] which will be broken if you rebuild dev-lang/fpc with your current USE settings.

(In reply to Eduardo Coutinho Scalabrin from comment #0)
> But if I do "emerge -pv1 fpc" I have "[ebuild   R 
> ] dev-lang/fpc-2.6.4  USE="-doc -ide -source*" 0 kB" and this USE is
> required for others packages.

This command succeeds because the >=dev-lang/fpc-2.6.0[source] dependency is considered "optional" or "soft" unless lazarus needs to be rebuilt.

Of course, this kind of inconsistent behavior is not desirable, and it would be better if emerge gave some kind of warning about the inconsistency (we will track this with bug 350230).

Anyway, I suggest that you enable USE=source for dev-lang/fpc, since you will have to do that anyway if you ever need to rebuild lazarus.

*** This bug has been marked as a duplicate of bug 350230 ***
Comment 8 Eduardo Coutinho Scalabrin 2014-11-30 23:11:40 UTC
(In reply to Zac Medico from comment #7)
> (In reply to Eduardo Coutinho Scalabrin from comment #6)
> > Created attachment 390652 [details]
> > File created by the command 'emerge --update --deep --newuse --with-bdeps=y
> > --debug @world > debug.log 2>&1'
> 
> The issue is cause by a USE dependency conflict, like in bug 350230. The
> installed lazarus package has a build-time dependency on
> >=dev-lang/fpc-2.6.0[source] which will be broken if you rebuild
> dev-lang/fpc with your current USE settings.
> 
> (In reply to Eduardo Coutinho Scalabrin from comment #0)
> > But if I do "emerge -pv1 fpc" I have "[ebuild   R 
> > ] dev-lang/fpc-2.6.4  USE="-doc -ide -source*" 0 kB" and this USE is
> > required for others packages.
> 
> This command succeeds because the >=dev-lang/fpc-2.6.0[source] dependency is
> considered "optional" or "soft" unless lazarus needs to be rebuilt.
> 
> Of course, this kind of inconsistent behavior is not desirable, and it would
> be better if emerge gave some kind of warning about the inconsistency (we
> will track this with bug 350230).
> 
> Anyway, I suggest that you enable USE=source for dev-lang/fpc, since you
> will have to do that anyway if you ever need to rebuild lazarus.
> 
> *** This bug has been marked as a duplicate of bug 350230 ***

I also have the file 'static-libs-elfutils.use' in folder '/etc/portage/package.use' containing '=dev-libs/elfutils-0.158 static-libs', what is required by 'sys-devel/prelink' of package 'app-emulation/wine', wherein 'app-emulation/q4wine' is in '/var/lib/portage/world'. When I do 'rm /etc/portage/package.use/static-libs-elfutils.use' and 'emerge -pv --update --deep --newuse --with-bdeps=y @world' I have 'Total: 0 packages, Size of downloads: 0 kB', but if I do 'emerge -pv --depclean elfutils' I have '(...) sys-devel/prelink-20130503 requires >=dev-libs/elfutils-0.100[static-libs(+)] (...)'. Same is the case?
Comment 9 Eduardo Coutinho Scalabrin 2014-11-30 23:27:31 UTC
Created attachment 390672 [details]
File created by the command 'emerge --update --deep --newuse --with-bdeps=y --debug @world > debug2.log 2>&1'

The file 'debug2.log' was created after of I do 'rm /etc/portage/package.use/static-libs-elfutils.use'.
Comment 10 Zac Medico gentoo-dev 2014-12-01 00:10:45 UTC
(In reply to Eduardo Coutinho Scalabrin from comment #8)
> I also have the file 'static-libs-elfutils.use' in folder
> '/etc/portage/package.use' containing '=dev-libs/elfutils-0.158
> static-libs', what is required by 'sys-devel/prelink' of package
> 'app-emulation/wine', wherein 'app-emulation/q4wine' is in
> '/var/lib/portage/world'. When I do 'rm
> /etc/portage/package.use/static-libs-elfutils.use' and 'emerge -pv --update
> --deep --newuse --with-bdeps=y @world' I have 'Total: 0 packages, Size of
> downloads: 0 kB', but if I do 'emerge -pv --depclean elfutils' I have '(...)
> sys-devel/prelink-20130503 requires
> >=dev-libs/elfutils-0.100[static-libs(+)] (...)'. Same is the case?

Yes, it is exactly the same issue.
Comment 11 Eduardo Coutinho Scalabrin 2014-12-01 00:51:52 UTC
(In reply to Zac Medico from comment #10)
> (In reply to Eduardo Coutinho Scalabrin from comment #8)
> > I also have the file 'static-libs-elfutils.use' in folder
> > '/etc/portage/package.use' containing '=dev-libs/elfutils-0.158
> > static-libs', what is required by 'sys-devel/prelink' of package
> > 'app-emulation/wine', wherein 'app-emulation/q4wine' is in
> > '/var/lib/portage/world'. When I do 'rm
> > /etc/portage/package.use/static-libs-elfutils.use' and 'emerge -pv --update
> > --deep --newuse --with-bdeps=y @world' I have 'Total: 0 packages, Size of
> > downloads: 0 kB', but if I do 'emerge -pv --depclean elfutils' I have '(...)
> > sys-devel/prelink-20130503 requires
> > >=dev-libs/elfutils-0.100[static-libs(+)] (...)'. Same is the case?
> 
> Yes, it is exactly the same issue.

Thank you for everything!