[pkgcore] #244: unmerge-orphans feature ignored

11 views
Skip to first unread message

pkgcore

unread,
Jun 8, 2011, 6:37:18 PM6/8/11
to pkgco...@googlegroups.com
#244: unmerge-orphans feature ignored
----------------------+-------------------
Reporter: bldewolf | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.6+
Component: pkgcore | Version: 0.6.4
Keywords: |
----------------------+-------------------
It appears that the unmerge-orphans feature is ignored by pmerge when
uninstalling packages. This causes pmerge to exhibit potentially
disastrous behavior when compared to emerge.

For example, when upgrading to openrc, some of the files owned by openrc
were previously part of baselayout. If baselayout is upgraded, important
modified files in /etc are removed, such as /etc/conf.d/hostname and
/etc/conf.d/net, which could potentially prevent the host from getting on
the network on its next boot (when openrc does get installed, it places
the default versions of these files, thus somewhat circumventing the
intended behavior of CONFIG_PROTECT).

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/244>
pkgcore <http://www.pkgcore.org/trac/pkgcore>
pkgcore package manager

pkgcore

unread,
Jun 9, 2011, 9:20:29 PM6/9/11
to pkgco...@googlegroups.com
#244: unmerge-orphans feature ignored
-----------------------+-------------------
Reporter: bldewolf | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.6+
Component: pkgcore | Version: 0.6.4
Resolution: | Keywords:
-----------------------+-------------------

Comment (by bldewolf):

The title is misleading, actually. I think this may just be that
CONFIG_PROTECT is ignored during an unmerge, which is poor behavior. The
behavior of emerge and the description of unmerge-orphans implies that
CONFIG_PROTECT'ed files should never be removed on unmerge, but pmerge
does so anyway.

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/244#comment:1>

pkgcore

unread,
Jun 12, 2011, 10:19:03 AM6/12/11
to pkgco...@googlegroups.com
#244: unmerge-orphans feature ignored
-----------------------+-------------------
Reporter: bldewolf | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.6+
Component: pkgcore | Version: 0.6.4
Resolution: | Keywords:
-----------------------+-------------------

Comment (by ferringb):

unmerge-orphans is on by default (it was a pkgcore feature first after all
;); CONFIG_PROTECT likely isn't the cause either, although please paste
the output of pinspect portageq envvar CONFIG_PROTECT{,_MASK}.

guessing the upgrade pathway just sucks, but lets see...

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/244#comment:2>

pkgcore

unread,
Jun 13, 2011, 12:02:56 PM6/13/11
to pkgco...@googlegroups.com
#244: unmerge-orphans feature ignored
-----------------------+-------------------
Reporter: bldewolf | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 0.6+
Component: pkgcore | Version: 0.6.4
Resolution: | Keywords:
-----------------------+-------------------

Comment (by bldewolf):

{{{
# pinspect portageq envvar CONFIG_PROTECT{,_MASK}
('/etc',)
('/etc/env.d', '/etc/gconf')
}}}

The effect of an unmerge and an upgrade appear to be the same (files that
should be config protected are not).

And sorry for bungling the title of this ticket. :)

--
Ticket URL: <http://www.pkgcore.org/trac/pkgcore/ticket/244#comment:3>

Reply all
Reply to author
Forward
0 new messages