FS#69851 - the installation of Tumbler fails if the file /etc/xdg/tumbler/tumbler.rc is already present

Attached to Project: Arch Linux
Opened by Lacsap (lacsap) - Tuesday, 02 March 2021, 09:09 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 04 March 2021, 20:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

hi,
the installation of Tumbler fails if the file /etc/xdg/tumbler/tumbler.rc is already present.
unlike some other packages, the ".pacnew" mechanism is not triggered during installation.
regards.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

# pacman -S tumbler
resolving dependencies...
looking for conflicting packages...
Packages (1) tumbler-4.16.0-1
Total Installed Size: 0.84 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
error: failed to commit transaction (conflicting files)
tumbler: /etc/xdg/tumbler/tumbler.rc exists in filesystem
Errors occurred, no packages were upgraded.

Steps to reproduce:

# pacman -Rsn tumbler
# touch /etc/xdg/tumbler/tumbler.rc
# pacman -S tumbler
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Thursday, 04 March 2021, 20:50 GMT
Reason for closing:  Fixed
Additional comments about closing:  tumbler 4.16.0-2
Comment by Lacsap (lacsap) - Thursday, 04 March 2021, 20:47 GMT
  • Field changed: Percent Complete (100% → 0%)
Hello,
I may be wrong, but the pacman manual doesn't quite say the same thing :
"""
HANDLING CONFIG FILES
Pacman uses the same logic as rpm...
...
original=NULL, current=Y, new=Z
The package was not previously installed, and the file already exists on the file system. Install the new file with a .pacnew
extension and warn the user. The user must then manually merge any necessary changes into the original file.
"""
this is not a very important problem but it would be nice if the tumbler package uses pacnew ;-)
Comment by Evangelos Foutras (foutrelis) - Thursday, 04 March 2021, 20:50 GMT
It seems that tumbler.rc should indeed be marked as a backup file, not just to accommodate the provided use case but as a general policy for configuration files.

Loading...