Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Packages don't seem protected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Apr 09, 2013 1:45 pm    Post subject: Packages don't seem protected Reply with quote

Following my recent disastrous mass depclean, I decided to proceed in a more measured manner. The first thing is to protect my current kernels, so I tried:
Code:

opal robin # emerge --noreplace gentoo-sources:3.6.8
Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
opal robin # emerge --noreplace gentoo-sources:3.7.7
Calculating dependencies... done!
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.
opal robin # grep gentoo-sources /var/lib/portage/world
sys-kernel/gentoo-sources:3.6.8
sys-kernel/gentoo-sources:3.7.7
opal robin # emerge -c -p gentoo-sources

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

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

 sys-kernel/gentoo-sources
    selected: 3.6.8 3.7.7
   protected: none
     omitted: 3.8.6

All selected packages: sys-kernel/gentoo-sources-3.7.7 sys-kernel/gentoo-sources-3.6.8

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

Packages installed:   1953
Packages in world:    472
Packages in system:   42
Required packages:    1951
Number to remove:     2
opal robin #

The kernels will get removed! Is there something wrong with my set up:

    Portage 2.2.0_alpha171 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.17, 3.7.7-gentoo x86_64)
    =================================================================
    System uname: Linux-3.7.7-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_6400_@_2.13GHz-with-gentoo-2.2
    KiB Mem: 4044496 total, 553132 free
    KiB Swap: 8388604 total, 8171888 free
    Timestamp of tree: Tue, 09 Apr 2013 12:45:01 +0000
    ld GNU ld (GNU Binutils) 2.23.1
    distcc 3.1 x86_64-pc-linux-gnu [disabled]
    ccache version 3.1.9 [enabled]
    app-shells/bash: 4.2_p45
    dev-java/java-config: 2.1.12-r1
    dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.8-r1, 2.7.3-r3, 3.1.5-r1, 3.2.3-r2
    dev-util/ccache: 3.1.9
    dev-util/cmake: 2.8.10.2-r1
    dev-util/pkgconfig: 0.28
    sys-apps/baselayout: 2.2
    sys-apps/openrc: 0.11.8
    sys-apps/sandbox: 2.6-r1
    sys-devel/autoconf: 2.13, 2.69
    sys-devel/automake: 1.4_p6::<unknown repository>, 1.5::<unknown repository>, 1.6.3::<unknown repository>, 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.1
    sys-devel/binutils: 2.23.1
    sys-devel/gcc: 4.3.5, 4.4.5, 4.5.4, 4.6.3, 4.7.2-r1
    sys-devel/gcc-config: 1.7.3
    sys-devel/libtool: 2.4.2
    sys-devel/make: 3.82-r4
    sys-kernel/linux-headers: 3.8 (virtual/os-headers)
    sys-libs/glibc: 2.17
    Repositories: gentoo wschlich-testing sunrise hiyuh local
    Installed sets: @rebuild
    ACCEPT_KEYWORDS="amd64"
    ACCEPT_LICENSE="*"
    CBUILD="x86_64-pc-linux-gnu"
    CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
    CHOST="x86_64-pc-linux-gnu"
    CONFIG_PROTECT="/etc /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb /var/spool/fax/etc"
    CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
    CXXFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -pipe"
    DISTDIR="/usr/portage/distfiles"
    EMERGE_DEFAULT_OPTS="--keep-going --autounmask-write=y --buildpkg=y"
    FCFLAGS="-O2 -pipe"
    FEATURES="assume-digests binpkg-logs buildpkg ccache 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"
    FFLAGS="-O2 -pipe"
    GENTOO_MIRRORS=" http://gentoo.in.th/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://mirrors.64hosting.com/pub/mirrors/gentoo/ http://ftp.twaren.net/Linux/Gentoo/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
    LANG="en_GB"
    LC_ALL="en_GB.utf8"
    LDFLAGS="-Wl,-O1"
    MAKEOPTS="-j4 -l6"
    PKGDIR="/home/portage/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="/usr/portage"
    PORTDIR_OVERLAY="/usr/local/portage/layman/wschlich-testing /usr/local/portage/layman/sunrise /usr/local/portage/layman/hiyuh /usr/local/portage"
    SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
    USE="X a52 aac acl acp acpi alsa amd64 amd64codecs apache2 arts asf bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cdr cleartype cli consolekit cracklib crypt css cups curl cxx dbus declarative directfb divx4linux dri dts dvd dvdr dvdread encode ethereal exif fam fbcon fbsplash ffmpeg firefox flac fortran gdbm gif gimpprint gnutls gocr gpgme gphoto2 gpm graphviz gtk iconv ieee1394 imagemagick imlib irmc jpeg kde kdeenablefinal kipi lcms ldap libnotify libv4l2 lm_sensors mad matroska mbox mmx mmx2 mmxext mng modules mp3 mp4 mpeg mpeg2 mpeg4 mplayer mudflap multilib musicbrainz mysql ncurses nfs nls nntp nptl nptlonly nvidia obex ocrad ogg oldpim opengl openmp openssl pam pango pcre pda pdf phonon pic plasma png policykit ppds private-headers qt3support qt4 readline reiserfs rss sasl sdl semantic-desktop session smime smp speex spell sse sse2 sse3 ssl startup-notification subversion svg syslog tcpd theora tiff transcode truetype udev udisks ukit unicode upower usb v4l vcd vim visualization vorbis wmf wxwidgets x264 xcb xcomposite xine xinerama xinetd xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ca0106 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 authn_core auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" 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 ubx" INPUT_DEVICES="keyboard mouse ps2mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB th" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


TIA
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Apr 09, 2013 2:21 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-p-6427805.html#6427805
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Apr 09, 2013 2:37 pm    Post subject: Reply with quote

krinn wrote:
https://forums.gentoo.org/viewtopic-p-6427805.html#6427805

I am not sure how that post helps!
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Apr 09, 2013 2:41 pm    Post subject: Reply with quote

I check it again to make sure i don't mistake the bug number.

I understand my english is poor and could be hard to follow, but it seems at least one user understood that post.
If you can't, i don't think i could be of any help.
Wait for another user answer.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Apr 09, 2013 3:39 pm    Post subject: Re: Packages don't seem protected Reply with quote

binro wrote:
opal robin # emerge -c -p gentoo-sources

The use of [emerge --depclean whatever] is not documented.
I did not even know this could be accepted.
As to say then if the indeed strange behavior this combination has (And that I can confirm on my system) is a bug or... a feature, who knows...
_________________
Back to top
View user's profile Send private message
binro
l33t
l33t


Joined: 06 May 2005
Posts: 724
Location: Bangkok, Thailand

PostPosted: Tue Apr 09, 2013 4:03 pm    Post subject: Reply with quote

@aCOSwt There are lots of examples of doing it this way when I searched. But perhaps you are right.
_________________
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Apr 09, 2013 4:12 pm    Post subject: Reply with quote

I see why you don't get it binro, looks like i have also problem at reading english...
Sorry binro. My answer was indeed wrong.

I agree it looks like a bug, running -c like this is state as
Quote:
Depclean serves as a dependency aware version of --unmerge. When given one or more atoms, it will unmerge matched packages that have no reverse dependencies. Use --depclean together with --verbose to show reverse dependencies.


But your output denied the :
Quote:
Packages that are part of the world set will always be kept.


It's kinda hard to know how it handle this:
- if strictly as --unmerge : so it's then logic to not check files in world, removing the protection world could offer over depclean.
- or still a depclean functionnality : so it should enforce the check files in world rules.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Apr 09, 2013 6:08 pm    Post subject: Reply with quote

krinn wrote:
Quote:
Depclean serves as a dependency aware version of --unmerge. When given one or more atoms, it will unmerge matched packages that have no reverse dependencies. Use --depclean together with --verbose to show reverse dependencies.

Yes but as used by binro, in emerge --depclean whatever, whatever is not taken as an atom. It's understood as an ebuild.
I really cannot find emerge --depclean whatever_ebuild documented anywhere.
_________________
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Apr 09, 2013 6:44 pm    Post subject: Reply with quote

You're picky aCOSwt :)
Without knowing what is the definition of an atom, i admit as valid a "gentoo-sources" as atom and "gentoo-sources-x-y-r3" as ebuild
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 09, 2013 8:35 pm    Post subject: Reply with quote

Code:
emerge -a --depclean --exclude gentoo-sources
Works for me ...
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Randy Andy
Veteran
Veteran


Joined: 19 Jun 2007
Posts: 1148
Location: /dev/koelsch

PostPosted: Tue Apr 09, 2013 9:47 pm    Post subject: Reply with quote

Jaglover wrote:
Code:
emerge -a --depclean --exclude gentoo-sources
Works for me ...


Yes Jaglover,

that is one possibility, but if the the gentoo-sources has been taken to the world file explicit with its version, as binro did before with the --noreplace parameter, then there is no need to use the --exclude option.

I bet, if binro uses only
Code:
emerge -a --depclean
, the result would be the same.

His, or portages fault was, to suffix it with gentoo-sources.



My little different tip for this would be.

Use one world entry of gentoo-sources without version, for preventing always the highest installed version of gentoo-sources from a de installation.
If you have additional special versions you want to protect from de installation, adding it too, using e.g. the --noreplace gentoo-sources-vers.no

And that works also fine for me :wink:
_________________
If you want to see a Distro done right, compile it yourself!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21602

PostPosted: Wed Apr 10, 2013 2:02 am    Post subject: Reply with quote

There are two different modes in which depclean can operate. The comment that it never removes packages listed in world applies to the rules it uses when computing a system-wide clean. When you give specific atoms, the behavior seems to be that those atoms are checked for reverse dependencies and removed if no such dependencies exist. In the explicit atom mode, the check for world membership does not apply. This is convenient when you have a package listed in world that you believe to be unnecessary, but you want to keep it anyway if removing it would break a reverse dependency.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum