Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 462674

Summary: sys-apps/openrc: installing breaks /etc/conf.d/net as symlink
Product: Gentoo Linux Reporter: Fabio Erculiani (RETIRED) <lxnay>
Component: [OLD] Core systemAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 439098    

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.