FS#20723 - [kdebase-workspace] changed /usr/share/config/kdm/backgroundrc gets overwritten

Attached to Project: Arch Linux
Opened by quantax (quantax) - Thursday, 02 September 2010, 18:47 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 03 September 2010, 08:49 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Most of KDM's configuration is kept in /usr/share/config/kdm/kdmrc. This file is already in the backup array of kdebase-workspace's PKGBUILD. However this is only most of the configuration. The configuration for KDM's Background mode (no fancy theme, just a plain Qt dialog on top of a wallpaper) is kept in /usr/share/config/kdm/backgroundrc. This file gets overwritten when the package is updated. Thus this configuration file should be added to the package's backup files.

Additional info:
kdebase-workspace 4.5.1

Steps to reproduce:
- install kdebase-workspace
- change /usr/share/config/kdm/backgroundrc
- reinstall kdebase-workspace

Fix:
Add /usr/share/config/kdm/backgroundrc to the backup array of kdebase-workspace's PKGBUILD.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 03 September 2010, 08:49 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#14252 
Comment by Gerardo Exequiel Pozzi (djgera) - Friday, 03 September 2010, 00:36 GMT
This is a particular case, all KDE files on /usr/share/config will be on the same situation (one exception is kdmrc). For workaround this should add all modified files in your pacman.conf (NoUpgrade option)

Apparently there is no way to have two sysconf directories at this moment, for example one for "distro" and other for "admin".
Comment by quantax (quantax) - Friday, 03 September 2010, 08:48 GMT
Sorry, but I don't quite understand your response. I wasn't under the impression that pacman automatically creates backups for the files in sysconfdir (/etc). In fact in pacman's PKGBUILD itself /etc/pacman.conf is listed in the backup array. Thus it looks like the packager has to state explicitly which files should not be overwritten.

If kdm had "distro" configuration files they should not be in the backup array, but the "admin" ones should be, if they were provided by the package at all. But since there is no such distinction, all of kdm's configuration files should be in the backup array in order to prevent them from being overwritten. This includes also /usr/share/config/kdm/backgroundrc.

As for the workarounds: I know how to prevent this from happening on my installation. Nevertheless I thought that pacman should not overwrite files that are meant to be changed by the user -- especially configuration files. That is why I filed this bug report.

Loading...