Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302115 - portage does not take into account package.mask during depclean
Summary: portage does not take into account package.mask during depclean
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155723
  Show dependency tree
 
Reported: 2010-01-24 23:25 UTC by Szpadel
Modified: 2010-05-22 22:40 UTC (History)
1 user (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 Szpadel 2010-01-24 23:25:14 UTC
during depclean portage omitt masked package

Reproducible: Always

Steps to Reproduce:
1. add package to /etc/portage/package.mask
2. install 2 or more slots of package
3. emerge --depclean

Actual Results:  
# grep phpmyadmin /etc/portage/package.mask
>dev-db/phpmyadmin-3
# emerge -a --depclean 
(..)
 dev-db/phpmyadmin
    selected: 2.11.9.6 
   protected: none     
     omitted: 3.2.2.1  
(..)


Expected Results:  
 dev-db/phpmyadmin
    selected: 3.2.2.1 
   protected: none     
     omitted: 2.11.9.6 

:)
Comment 1 Szpadel 2010-01-24 23:26:19 UTC
$ emerge --info                                                                                    
Portage 2.2_rc61 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-zen4 x86_64)                                          
=================================================================                                                                          
System uname: Linux-2.6.32-zen4-x86_64-AMD_Athlon-tm-_64_Processor_2800+-with-gentoo-2.0.1                                                 
Timestamp of tree: Sun, 24 Jan 2010 15:00:01 +0000                                                                                         
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                                  
ccache version 2.4 [enabled]                                                                                                               
app-shells/bash:     4.0_p37                                                                                                               
dev-java/java-config: 2.1.10                                                                                                               
dev-lang/python:     2.6.4, 3.1.1-r1                                                                                                       
dev-util/ccache:     2.4-r8                                                                                                                
dev-util/cmake:      2.8.0                                                                                                                 
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=native -Os -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going "
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://mirror.ovh.net/gentoo-distfiles/ "
LANG="pl_PL"
LDFLAGS="-Wl,-O1"
LINGUAS="pl"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress -z --compress-level=9 --exclude=*/ChangeLog"
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="/usr/portage/local/myport /var/lib/layman/zugaina /var/lib/layman/x11 /var/lib/layman/vmware /var/lib/layman/multimedia /var/lib/layman/openrc /var/lib/layman/mozilla"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apm arts bash-completion berkdb branding bzip2 cairo ccache cdr cli consolekit cracklib cups custom-cpuopts custom-optimization cxx dbus djvu dri drm-next dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer hal iconv id3tag jpeg kde lame ldap libnotify logrotate lzma mad mikmod mmx mmxext mng modules mp3 mp4 mpd mpeg mplayer mtp mudflap multilib nano-syntax ncurses nfs nls nptl nptlonly nsplugin ogg opengl openmp optimized-qmake pam pcre pdf perl png ppds pppd prediction python qt qt3 qt3support qt4 quicktime readline reflection scanner sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vim-syntax vorbis x264 xml xorg xulrunner xv xvid zip zlib" 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" 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="gpm keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon ati"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Zac Medico gentoo-dev 2010-01-29 22:53:54 UTC
It probably has a reverse dependency. Check reverse dependencies like this:

  emerge -pv --depclean '>dev-db/phpmyadmin-3'
Comment 3 Szpadel 2010-01-30 12:31:51 UTC
# emerge -pv --depclean '>dev-db/phpmyadmin-3'

Calculating dependencies... done!
>>> Checking for lib consumers...

>>> These are the packages that would be unmerged:

 dev-db/phpmyadmin
    selected: 3.2.2.1
   protected: none
     omitted: 2.11.9.6

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Packages installed:   1148
Packages in world:    172
Packages in system:   50
Required packages:    1147
Number to remove:     1
Comment 4 Szpadel 2010-01-30 12:38:18 UTC
# qdepends -Q dev-db/phpmyadmin-3
#