Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462674 - sys-apps/openrc: installing breaks /etc/conf.d/net as symlink
Summary: sys-apps/openrc: installing breaks /etc/conf.d/net as symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 439098
  Show dependency tree
 
Reported: 2013-03-22 11:11 UTC by Fabio Erculiani (RETIRED)
Modified: 2013-08-23 16:19 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 Fabio Erculiani (RETIRED) gentoo-dev 2013-03-22 11:11:54 UTC
On my server systems, /etc/conf.d/net is a symlink to a git repository in where I locally keep the server configuration files.
Installing sys-apps/openrc breaks my symlink due to this piece of code in pkg_preinst:

        [[ -e "${EROOT}"etc/conf.d/net ]] && \
                cp "${EROOT}"etc/conf.d/net "${ED}"/etc/conf.d/

I should be changed to "cp -d" or "cp --no-dereference" or "cp --preserve=links".

Reproducible: Always
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-08-17 20:58:56 UTC
Actually, this code should be removed entirely.
Comment 2 William Hubbs gentoo-dev 2013-08-23 16:19:08 UTC
This was removed in OpenRC-0.12.