Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198916 - /etc/env.d/45kdepaths-3.5 gets overwritten when upgrading kde-base/kdelibs
Summary: /etc/env.d/45kdepaths-3.5 gets overwritten when upgrading kde-base/kdelibs
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-12 11:38 UTC by Antti Mäkelä
Modified: 2007-11-12 11:49 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 Antti Mäkelä 2007-11-12 11:38:21 UTC
I just upgraded kdelibs from 3.5.8 to kdelibs-3.5.8-r1. For some reason - and this has been happening for a while - the package just overwrites /etc/env.d/45kdepaths-3.5. It wouldn't matter normally, but I'm using prelink - so I have removed the # from out-commented KDE_IS_PRELINKED=1 setting.

CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"

So I suppose that env.d is supposed to be overwritten without allowing you to manually patch it using dispatch-conf or etc-update...but is this really desired behavior? Not sure if this belongs to KDE team or not..
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-12 11:40:42 UTC
Remove it from CONFIG_PROTECT_MASK if you dislike this.
Comment 2 Antti Mäkelä 2007-11-12 11:44:52 UTC
Fine. Just thought if that was really intended as a sane default.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-11-12 11:49:36 UTC
Yes, /etc/env.d in CONFIG_PROTECT_MASK is intended, and reverse defaults would cause a lot more issues that you have. 

Note that it really doesn't matter where's the variable set, so if you create your own file in /etc/env.d and stick KDE_IS_PRELINKED=1 there, you can just forget about this.