Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 149610

Summary: Force re-emerge of an emerged package with --newuse even if no USE flag changed
Product: Portage Development Reporter: spiralvoice <spiralvoice>
Component: Core - Interface (emerge)Assignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description spiralvoice 2006-09-30 05:02:19 UTC
Having

EMERGE_DEFAULT_OPTS="--newuse"

in /etc/make.conf

produces this:
--------------------------------------------------------------
# emerge -1pv gcc
>>> --newuse implies --update... adding --update to options.

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total size of downloads: 0 kB
--------------------------------------------------------------

After removing this line from make.conf


--------------------------------------------------------------
# emerge -1pv gcc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-devel/gcc-4.1.1-r1  USE="fortran gtk nls (-altivec) -bootstrap -build -doc -gcj (-hardened) -ip28 -ip32r10k -mudflap (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 38,319 kB

Total size of downloads: 38,319 kB
--------------------------------------------------------------
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 05:07:22 UTC
emerge --info, please.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2006-09-30 05:10:46 UTC
This is normal, because there was no change of any USE flags used by gcc and gcc is up-to-date, so there is no need of reemerging gcc.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 05:23:45 UTC
Eh, what's said above - no update, no changed flags -> nothing to do.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 05:23:57 UTC
NOTABUG.
Comment 5 spiralvoice 2006-09-30 05:39:40 UTC
Disabled EMERGE_DEFAULT_OPTS

# emerge --info
Portage 2.1.2_pre2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo i686)
=================================================================
System uname: 2.6.18-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 11:50:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -fforce-addr -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -Os -fforce-addr -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo http://gentoo.inode.at http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://gentoo.osuosl.org http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi alsa arts asf automount berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cups dbus dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz gmp gnokii gpm graphviz gs gtk gtk2 hal howl idn ieee1394 imagemagick imap imlib input_devices_joystick input_devices_keyboard input_devices_mouse isdnlog jbig joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kernel_linux lame lcms libg++ libwww linguas_de lzo mad matroska mbox mhash mikmod mmx mng mozilla mozsvg mp3 mpeg mplayer musepack ncurses nls normalize nptl nptlonly nsplugin nvidia ogg openexr opengl oss pam pcre perl pic png ppds pppd qt qt3 quicktime readline real realmedia reflection samba session slp sndfile spell spl sse ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd video_cards_nv video_cards_nvidia video_cards_v4l vorbis win32codecs wmf wxwindows xine xinerama xml xorg xv xvid zlib zvbi"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 05:42:08 UTC
May I ask why are you reopening this bug? Re-read Comment #2 and Comment #3 a couple more times. Thanks.
Comment 7 spiralvoice 2006-09-30 05:42:50 UTC
Ok, I do understand why this bug was closed but my question was not answered
so I am trying to ask another way:

How can I enable --newuse all the time plus be able to remerge all
packages even a new version was not released and no use flags were changed?

I would like to have this command
--------------------------------------------------------------
# emerge -1pv --newuse kdelibs
>>> --newuse implies --update... adding --update to options.

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total size of downloads: 0 kB
--------------------------------------------------------------

do the same thing as

--------------------------------------------------------------
# emerge -1pv --newuse kdelibs
>>> --newuse implies --update... adding --update to options.

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total size of downloads: 0 kB
--------------------------------------------------------------

Sometimes USE flags get updated silently without a new ebuild
versions I would like to catch all updates without having to
type --newuse everytime.
Normally I update with  emerge -uD world
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 05:47:06 UTC
(In reply to comment #7)
> How can I enable --newuse all the time plus be able to remerge all
> packages even a new version was not released and no use flags were changed?

Why would you re-emerge packages if there's no need to? 

> Sometimes USE flags get updated silently without a new ebuild
> versions I would like to catch all updates without having to
> type --newuse everytime.

But you already do catch them.
Comment 9 spiralvoice 2006-09-30 05:56:24 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > How can I enable --newuse all the time plus be able to remerge all
> > packages even a new version was not released and no use flags were changed?
> 
> Why would you re-emerge packages if there's no need to? 

Sometimes I like to re-compile gcc after a glibc update, like the one today.


> > Sometimes USE flags get updated silently without a new ebuild
> > versions I would like to catch all updates without having to
> > type --newuse everytime.
> 
> But you already do catch them.

If use flags change --newuse makes sense, but in the case above the block
the compile for no apparent reason and it can not be circumvented afaics.
Comment 10 spiralvoice 2006-09-30 05:57:14 UTC
Oops, sorry, forgot to reopen the bug, changed topic
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 06:02:08 UTC
(In reply to comment #9)
> If use flags change --newuse makes sense, but in the case above the block
> the compile for no apparent reason and it can not be circumvented afaics.

It doesn't block anything, please read the man page. There's nothing to recompile, nothing will be recompiled. It's a feature, not a bug.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-09-30 06:08:00 UTC
--ignore-default-opts
Causes EMERGE_DEFAULT_OPTS (see make.conf(5)) to be ignored.

If that's still not what you want, then sorry I can't help you.