Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 458036 - --depclean wants to remove app-admin/syslog-ng in the presence of sys-apps/busybox[syslog]
Summary: --depclean wants to remove app-admin/syslog-ng in the presence of sys-apps/bu...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-17 20:54 UTC by Alan McKinnon
Modified: 2013-02-18 13:43 UTC (History)
0 users

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 Alan McKinnon 2013-02-17 20:54:34 UTC
Arch = ~amd64. I have virtual/logger in @world which previously pulled in app-admin/syslog-ng (which is not in @world). Busybox is in @system by default with default flags (notably USE=syslog).

emerge --depclean now wants to remove syslog-ng, presumably as busybox[syslog] satisfies the virtual. This is an incorrect evaluation as this is not an embedded system, busybox is not the usual userland and busybox only runs when attempting a rescue. This is a regular workstation so it is incorrect to have busybox[syslog] satisfy virtual/logger for this general case. I suggest busybox only satisfy this virtual is cases where busybox is the userland and some mechanism be implemented to indicate this to portage. 

The cause appears to be #444718.

I will add syslog-ng to worls to make --depclean shut up, but the logic in code is still incorrect as I should not have to do this. 

Reproducible: Always

Steps to Reproduce:
1. emerge virtual/logger to @world
2. emerge sys-admin/syslog-ng but do not add to @world
3. emerge busybox[syslog] to @system
Actual Results:  
emerge --depclean wants to remove syslog-ng

Expected Results:  
emerge --depclean should not remove syslog-ng in cases where busybox will not be runnign in normal conditions 

# emerge -at --depclean

Calculating dependencies... done!
>>> Calculating removal order...

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

 app-admin/syslog-ng
    selected: 3.3.5-r1 
   protected: none 
     omitted: none 



# eix syslog-ng
[I] app-admin/syslog-ng
     Available versions:  3.2.5^t (~)3.3.5-r1^t {caps hardened ipv6 json mongodb +pcre selinux spoof-source sql ssl static tcpd}
     Installed versions:  3.3.5-r1^t(21:14:51 23/07/2012)(ipv6 pcre sql ssl tcpd -caps -hardened -json -mongodb -selinux -spoof-source -static)
     Homepage:            http://www.balabit.com/products/syslog_ng/
     Description:         syslog replacement with advanced filtering features


# eix busybox
[I] sys-apps/busybox
     Available versions:  1.19.3-r1^t{tbz2} (~)1.20.0^t{tbz2} 1.20.1^t{tbz2} 1.20.2^t{tbz2} (~)1.21.0^t{tbz2} **9999^t {ipv6 livecd make-symlinks math mdev -pam savedconfig selinux sep-usr (+)static syslog systemd ELIBC="glibc"}
     Installed versions:  1.21.0^t{tbz2}(16:00:12 17/02/2013)(ipv6 pam static syslog -livecd -make-symlinks -math -mdev -savedconfig -selinux -sep-usr -systemd)
     Homepage:            http://www.busybox.net/
     Description:         Utilities for rescue and embedded systems


# eix logger
[I] virtual/logger
     Available versions:  0
     Installed versions:  0(13:51:38 03/02/2013)
     Description:         Virtual for system loggers



# emerge --info
Portage 2.2.0_alpha163 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.16.0, 3.6.11-gentoo x86_64)
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-2720QM_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:    16462748 total,   2101240 free
KiB Swap:    1000444 total,    999460 free
Timestamp of tree: Sun, 17 Feb 2013 13:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: multimedia gentoo alan
Installed sets: @alan-claws, @alan-fonts, @alan-gkrellm, @alan-icon-themes, @alan-kde, @alan-tools
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm skype-eula PUEL googleearth google-talkplugin AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /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=native -O2 -pipe"
DISTDIR="/var/distfiles/"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="/mnt/distfiles ftp://ftp.is.co.za/mirror/gentoo.org/ http://distfiles.gentoo.org"
LANG="en_ZA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/lib/layman/multimedia /var/portage /home/alanm/gentoo/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 ao apache2 archive audiofile avahi bash-completion berkdb bittorrent bluetooth bluray branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups curl curlwrappers cvs cxx dbus dbx declarative dga dirac djvu dri dts dv dvb dvd dvdr emotion encode evo exif expat ffmpeg flac fontconfig fortran freetds ftp fuse gallium gd gdbm gif gimp glib gpm gps graphviz gs gstreamer gtk handbook iconv icu id3tag ieee1394 imagemagick imap imlib innodb introspection ios ipc ipod iproute2 ipv6 irda jabber java java6 javascript jbig jce jpeg jpeg2k kde kdepim keyring kig-scripting kipi lame lcms ldap lesstif libass libc_glibc libcaca libnotify libsamplerate libv4l2 libwww lm_sensors lua lzma mad maildir mailwrapper man matroska mbox milter mime mms mmx mng modules mp3 mp3tunes mp4 mpeg mplayer mtp mudflap multilib musepack musicbrainz mysql mysqli ncurses netboot network nfs nls nptl nsplugin ntp odbc offensive ogg openexr opengl openmp openssl openvpn pam pango passwordsave pch pcre pdf perl phonon plasma plotutils pmu png policykit posix postscript ppds pppd projectm qt3support qt4 quicktime raw readline reflection resolvconf rtmp samba sasl scanner schroedinger sdl session slp smi sms solver speex spell spl sql sqlite sqlite3 sse sse2 sse3 sse41 sse42 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg symlink syslog sysvipc taglib tbb tcpd testbed theora threads thumbnail tidy tiff truetype udev udisks udisks2 unicode upnp upower usb utempter v4l vaapi vcd video vim-syntax vlc vnc vorbis vpx wavpack webkit wifi wma wmf x264 xattr xcb xcomposite xinerama xml xorg xpm xrender xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi krita sheets stage words" CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" COLLECTD_PLUGINS="battery cpu cpufreq df disk hddtemp interface irq load memory ntpd processes rrdtool swap syslog uptime users wireless" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US en_ZA" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-18 13:43:20 UTC
If you want to keep any package on a system, regardless of whether it is temporarily conveniently insured to be installed by a virtual that happens to depend on it and its alternatives, then the place to secure this is the world file.