FHS violation?

Bug #301594 reported by Chris Jones
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
CUPS
Invalid
Undecided
Unassigned
cups (Ubuntu)
Opinion
Low
Unassigned

Bug Description

Binary package hint: cups

From the CUPS documentation:

'The CUPS scheduler (cupsd) uses the /etc/cups/subscriptions.conf file to store the list of active subscriptions'

/etc/ is an incorrect place to store (what is presumably) transient information like this, surely?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

This is an upstream problem of CUPS, not specific to Ubuntu. CUPS will behave the same way on any other Linux distribution and also on Mac OS X. Please report this problem on the upstream bug tracker http://www.cups.org/str.php.

Changed in cups:
status: New → Invalid
Revision history for this message
Chris Jones (cmsj) wrote :

I have filed this upstream at http://www.cups.org/str.php?L3018 but Launchpad does not appear to want to link directly to that bug, presumably because cups use a weird bug tracker that LP does not recognise.

Either way, I do not thing the bug should be marked Invalid in Ubuntu, since the bug does exist there. It is useful for tracking purposes if nothing else.

Changed in cups:
status: Invalid → New
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

Agreed. Thanks for sending upstream

Changed in cups:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
LaMont Jones (lamont) wrote :

Better yet, how about we develop a patch to move the STATE information out of the CONFIG file, and into /var/lib/cups or so where it properly belongs, and then file a new bug upstream with the patch, since upstream decided that they won't fix this bug, since they see no difference between configuration and state info.

(Yes, it means writing and reading two files instead of one, and actually knowing what is config and what is state... 'Status: disconnected' isn't part of the configuration, it's STATE.)

Meanwhile, maybe I'll just cron a "sed -i /Time/d /etc/cups/printers.conf" so that it will stop being a modified file in /etc every time cups is restarted...

lamont

Revision history for this message
LaMont Jones (lamont) wrote :

And filed a new bug upstream, complete with firefox vs itsalltext fallout:

http://www.cups.org/str.php?L3067

lamont

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Mike Sweet (upstream author of CUPS) did not accept your suggestion for two times now. As we do not want to have maintenance nightmares with an overpatched CUPS (or any other overpatched packages) we try to keep the packages as close as possible to upstream and therefore we will not implement your suggestion by a Ubuntu-specific patch.

Therefore I am closing this bug with "Won't fix" now.

Changed in cups:
status: Triaged → Won't Fix
status: New → Invalid
Revision history for this message
avdd (avdd) wrote :

This is ridiculous.

Upstream is clearly confused about the difference between "state" and "configuration", but has at least suggested that packages be configured using --with-serverroot (much like many other daemon packages in debiuntu).

Please package with this option and stop cups pooping in my /etc

Revision history for this message
Christian Reis (kiko) wrote :

Till, would you be willing to explore that option?

Changed in cups (Ubuntu):
status: Won't Fix → Opinion
Revision history for this message
Didier Raboud (odyx) wrote :

Maintainer voiced his opinion, that's IMHO clear: this will not get fixed by a
_very_ (and hard to maintain) invasive distribution-specific patch in Debian nor
Ubuntu. Unless someone comes with a patch and some guarantees to maintain the
patch on the long term, it will just not happen by painting that issue as
ridiculous.

That said, there's still some hope for a future solution, see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692791#101 from Michael Sweet,
upstream author:

> *If* we move to a non-editable format in the future (likely for CUPS 2.0) we
> will definitely restructure things to put those files in /var/lib.
>
> I don't advise that you try to patch current CUPS to use /var/lib/cupsd for
> cupsd stuff and /etc/cups for everything else since the current code assumes
> that all CUPS configuration files are in one location. The patch will be
> very very messy and hard to maintain.

Cheers, OdyX, with his Debian Printing Team (including some cups fiddling) hat on

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.