FS#18886 - [cups] 1.4.2-5 package should not include printers.conf

Attached to Project: Arch Linux
Opened by Jeff Mickey (codemac) - Tuesday, 30 March 2010, 20:51 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 31 March 2010, 06:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When updating to cups-1.4.2-5, it errors out and whines that /etc/cups/printers.conf exists. Of course it does, I have printers. The package includes a blank file /etc/cups/printers.conf, for what appears to be no reason. Cups adds printers to the printers.conf file as you add them, I don't think we want to package this file at all. The same probably goes for classes.conf and subscriptions.conf, but I'm not 100% sure about what these files are for, as my current cups install doesn't even have them.

Additional info:
* package version(s)
cups-1.4.2-5
* config and/or log files etc.

Steps to reproduce:
pacman -S cups
Use cups and add printers to your config
pacman -Su cups # sometime later
error: failed to commit transaction (conflicting files)
cups: /etc/cups/printers.conf exists in filesystem
Errors occurred, no packages were upgraded.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 31 March 2010, 06:46 GMT
Reason for closing:  Won't fix
Additional comments about closing:  config files have been added for good reasons and don't break anything.
Comment by Jeff Mickey (codemac) - Tuesday, 30 March 2010, 22:05 GMT
  • Field changed: Percent Complete (100% → 0%)
While I respect that there was a news item published, according to CUPS documentation printers.conf, classes.conf and subscriptions.conf are all generated by cupsd and should not be part of our package.

See: man {printers,classes,subscriptions}.conf

In fact, truncating these files while cupsd is running (in the case of subscriptions) could cause your printing jobs to fail.
Comment by Allan McRae (Allan) - Tuesday, 30 March 2010, 22:16 GMT
I believe these files were put into the package so that they will be removed when you remove cups. Note that after the initial install/upgrade with this fix, pacman should never extract them again (the md5sum will not change).
Comment by Andreas Radke (AndyRTR) - Wednesday, 31 March 2010, 06:45 GMT
"In fact, truncating these files while cupsd is running (in the case of subscriptions) could cause your printing jobs to fail."

??? pacman will install the new files as .pacnew files and wont harm the running jobs.

It's always good to have configuration files under pacman control for backup purpose. Without the empty files it's also harder to look for what's possible to modify.

And the files are needed for SELinux. See comment here:
http://cvs.fedoraproject.org/viewvc/rpms/cups/devel/cups.spec?revision=1.591&view=markup

Loading...