Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280079 - crossdev does not record what it emerges to the world file
Summary: crossdev does not record what it emerges to the world file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
: 313293 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-02 18:02 UTC by John Klehm
Modified: 2010-04-09 14:24 UTC (History)
3 users (show)

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 John Klehm 2009-08-02 18:02:16 UTC
I used crossdev to install an i686-mingw32 cross compiler.  Worked great.  Then I ran a emerge --depclean and it came up for removal.  crossdev should put the entries it the world file so that they wont come up for removal.

Reproducible: Always

Steps to Reproduce:
1.emerge crossdev
2.crossdev -t i686-mingw32
3. emerge --depclean

Actual Results:  
Calculating dependencies... done!

 cross-i686-mingw32/w32api
    selected: 3.13 
   protected: none 
     omitted: none 

 dev-python/numeric
    selected: 24.2-r6 
   protected: none 
     omitted: none 

 cross-i686-mingw32/gcc
    selected: 4.4.1 
   protected: none 
     omitted: none 

 cross-i686-mingw32/mingw-runtime
    selected: 3.15.2 
   protected: none 
     omitted: none 

 cross-i686-mingw32/binutils
    selected: 2.19.1-r1 
   protected: none 
     omitted: none 

>>> 'Selected' packages are slated for removal.


Expected Results:  
The listed packages should not come up for removal

simplicity ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Athlon-tm-with-glibc2.0
Timestamp of tree: Sun, 02 Aug 2009 15:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/john/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac aalib acl acpi alsa amr apache apache2 applet autoipd automount avahi bash-completion berkdb bonjour branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dga dirac directfb djvu dri dvb dvd dvdr dvi encode exif expat fbcon ffmpeg flac fontconfig foomaticdb fortran freetype gadu gdbm ggi gif gimp gnome gnome-keyring gnutls gpm gsm gstreamer gtk hal hardcoded-tables httpd iconv ipv6 isdnlog java jbig jpeg jpeg2k kerberos krb4 laptop lcms libburn libcaca libnotify lzma mad mdnsresponder-compat mmx mmxext mng mozdevelop mp3 mpeg mudflap mysql mysqli nautilus ncurses network networkmanager nls nptl nptlonly nsplugin ntfs ogg openexr opengl openmp pam pcre pdf perl php png policykit postgres postgresql ppds pppd python raw readline reflection remote samba schroedinger sdl session silc sndfile spell spl sse ssl startup-notification svg svga sysfs syslog t1lib tcpd theora threads tiff totem truetype udf unicode v4l v4l2 vhook vim-syntax vim-with-x vorbis wmf x264 x86 xattr xforms xft xinerama xml xorg xprint xslt xulrunner xv xvid zephyr zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2009-08-16 00:20:48 UTC
it isnt added to the world file on purpose because that's what people wanted
Comment 2 John Klehm 2009-08-16 02:06:27 UTC
(In reply to comment #1)
> it isnt added to the world file on purpose because that's what people wanted
> 

Seems weird that after installing an app that the default behavior would be to not stay installed.

I'm curious what the use case is that people wouldn't want it installed.

I guess consider this bug a feature request then that there should be an option to install the cross compiler into portage and have it act accordingly when I do an update world.
Comment 3 SpanKY gentoo-dev 2009-08-16 18:06:28 UTC
i guess i could flip the behavior and if people wanted the old behavior, they could just use -P -1 to pass -1 to portage
Comment 4 John Klehm 2009-08-17 00:08:54 UTC
(In reply to comment #3)
> i guess i could flip the behavior and if people wanted the old behavior, they
> could just use -P -1 to pass -1 to portage
>

Sounds workable to me.
Comment 5 Justus Ranvier 2009-08-23 14:09:49 UTC
I have added these packages to my world file manually before but ran into a situation where doing emerge -uD --reinstall changed-use will rebuild some of the cross packages. Since I was not sure if that was safe or not I put the packages in world when using --depclean and remove them afterward.

Comment 6 SpanKY gentoo-dev 2009-12-09 21:14:26 UTC
the --oneshot option has been dropped in git and will be in next release
Comment 8 SpanKY gentoo-dev 2010-04-09 06:25:47 UTC
*** Bug 313293 has been marked as a duplicate of this bug. ***
Comment 9 solar (RETIRED) gentoo-dev 2010-04-09 06:43:35 UTC
(In reply to comment #3)
> i guess i could flip the behavior and if people wanted the old behavior, they
> could just use -P -1 to pass -1 to portage

Mixed feelings about this. I wish you would of pointed this bug out to me before making the change. (Ie.. get me on the CC:)
Comment 10 Michael Weber (RETIRED) gentoo-dev 2010-04-09 14:24:37 UTC
12:57 <xmw> about the cross-dev / overlay issue. what about stripping everything from /etc/layman/layman.cfg:make_conf 
            (=/usr/local/portage/layman/make.conf) from PORTDIR_OVERLAYS and pick one of them? or change layman to add its 
            overlays at the end of PORTDIR_OVERLAY?