Bug 773971

Summary: /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf are hardlinks
Product: [openSUSE] openSUSE 12.2 Reporter: Juergen Weigert <jw>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Major    
Priority: P2 - High    
Version: Factory   
Target Milestone: Factory   
Hardware: All   
OS: openSUSE 11.2   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Juergen Weigert 2012-08-01 08:32:59 UTC
Currently 
$ diff /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf
is not a good way to find changes, as these files are hardlinks.
Do we have an unwanted fdupes in the cups spec-file?
Comment 1 Johannes Meixner 2012-08-01 09:12:06 UTC
Since openSUSE:11.2 cups.spec contains "%fdupes $RPM_BUILD_ROOT"
and the changelog shows who caused it:
--------------------------------------------------------------------------
Wed Aug 26 21:43:03 CEST 2009 - meissner@suse.de
...
- Run fdupes.
--------------------------------------------------------------------------
Thanks God that he did not do this for our business products (SLE11)
where our customers deserve an usable cupsd.conf.default file!

I will correct it for the future in a way which is reasonable safe
against such kind of arbitrary careless changes of our packages.
Comment 2 Johannes Meixner 2012-08-01 13:37:04 UTC
Fixed in cups in the OBS "Printing" project via
---------------------------------------------------------------------------
$ osc cat Printing cups cups.changes
...
- Save /etc/cups/cupsd.conf and /etc/cups/cupsd.conf.default
  from becoming hardlinked via the fdupes run in cups.spec
  (see the 'Wed Aug 26 21:43:03 CEST 2009' entry below)
  by making their content different and at the same time
  fix the misleading comment (openSUSE Bugzilla bnc#773971).
---------------------------------------------------------------------------

This way fdupes can still do what it must do (I think it would be
hopeless to try to switch it off permanently for the future)
without causing harm - at least in this particular case.

FYI:
To see what fdupes currently links one may run something like
$ osc remotebuildlog Printing cups openSUSE_Factory i586 \
  | grep -A 1000 ' + fdupes' \
  | grep ' + ln '