Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471132 - app-portage/eix-0.28.5 /etc/eixrc Installation of a directory is blocked by a file
Summary: app-portage/eix-0.28.5 /etc/eixrc Installation of a directory is blocked by a...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 07:22 UTC by Justin Lecher (RETIRED)
Modified: 2013-09-03 17:22 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 Justin Lecher (RETIRED) gentoo-dev 2013-05-24 07:22:05 UTC
* Messages for package app-portage/eix-0.28.5:

 * 
 * Installation of a directory is blocked by a file:
 *   '/etc/eixrc'
 * This file will be renamed to a different name:
 *   '/etc/eixrc.backup.0000'
 * 


Is this a problem
Comment 1 Martin Väth 2013-05-24 15:42:49 UTC
This is intended behaviour: In early versions /etc/eixrc was a file, now it is a directory. So your old file must be renamed to obtain a directory which is what portage does autmatically during merging eix to /

If you had previously modified /etc/eixrc and want to keep the modifications, just rename /etc/eixrc.backup.0000 to e.g. /etc/eixrc/01-my-old-eixrc. If you had never modified /etc/eixrc you can delete /etc/eixrc.backup.0000 instead

Please leave this bug open until >=eix-0.25.5 is stable for a while so that users upgrading and getting confused by the portage message can see this bug.
Comment 2 Kilian 2013-08-31 17:36:52 UTC
I just hit that bug with paludis and unfortunately, paludis fails to install which is intended according to the paludis guys and the spec:

"Ebuilds must not attempt to merge a directory on top of any existing file that is not either a directory or a symlink to a directory."

Reference: http://paludis.exherbo.org/trac/ticket/1285

So, this is in fact a problem :-)
Comment 3 Martin Väth 2013-08-31 22:34:33 UTC
It is not reasonable in an ebuild to mess around with user configuration files and inventing temporary filenames. For things like this package managers exist:
It would be just crazy to include such code in every future eix ebuild (and probaly into several other ebuilds) just because one upgrade might need it.

If the paludis guys refuse to adapt a reasonable solution, I suggest to live with the fact that you have to manually delete/rename the prevous /etc/eixrc for one upgrade of eix.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2013-09-03 17:22:54 UTC
(In reply to Martin Väth from comment #3)
> It is not reasonable in an ebuild to mess around with user configuration
> files and inventing temporary filenames. For things like this package
> managers exist:
> It would be just crazy to include such code in every future eix ebuild (and
> probaly into several other ebuilds) just because one upgrade might need it.
> 
> If the paludis guys refuse to adapt a reasonable solution, I suggest to live
> with the fact that you have to manually delete/rename the prevous /etc/eixrc
> for one upgrade of eix.

We *could* hack around this issue in pkg_preinst, but I agree with Martin -- the solution here is really to require a manual move of the file, due to it being in a CONFIG_PROTECT area.  If it was elsewhere, then it would be a different story..