Bug 773971 - /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf are hardlinks
Summary: /etc/cups/cupsd.conf.default /etc/cups/cupsd.conf are hardlinks
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 12.2
Classification: openSUSE
Component: Printing (show other bugs)
Version: Factory
Hardware: All openSUSE 11.2
: P2 - High : Major (vote)
Target Milestone: Factory
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-01 08:32 UTC by Juergen Weigert
Modified: 2012-08-01 13:37 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 '