Page 1 of 1

Packaging: conffiles duplicates

PostPosted: 2013-01-23 18:34
by Schoelje
This is a question about packaging.
So, if this is not the right place to ask, please move to a better suited forum.

If I build a package:
Code: Select all
dpkg-buildpackage -rfakeroot -b -us -uc

It throws this warning:
Code: Select all
dpkg-deb: warning: conffile name 'path to config file' is duplicated

When I inspect the debian/packagename/DEBIAN/conffiles, it lists each config file three times while the original in debian/conffiles does not.

Luckily, the warning is ignored and the deb file is built, but I don't understand why this happens.
I have searched the net, but found only programmers sites and no explanation, let stand a solution.

Re: Packaging: conffiles duplicates

PostPosted: 2014-02-26 12:31
by giavac
For what it's worth, I'm experiencing the same, and would be happy to know what triggers the warning.
For me as well, the package is built correctly; the config files are listed twice in debian/<package>/DEBIAN/conffiles.

Re: Packaging: conffiles duplicates

PostPosted: 2017-05-16 12:14
by vaclav.blazek
It seems your packaging uses debhelper which automatically treats all packaged files under /etc as configuration files.
If you put it manually to debian/conffiles file then you have two identical records in debian/package/DEBIAN/conffiles and dpkg-deb complains.

From dh_installdeb:
Code: Select all
           This control file will be installed into the DEBIAN directory.

           In v3 compatibility mode and higher, all files in the etc/ directory in a package will automatically be flagged as conffiles by this program, so there is no need to list them manually here.

Re: Packaging: conffiles duplicates

PostPosted: 2017-07-17 07:11
by Schoelje
My apologies for my really, really late response. That was not intentional.

Thanks for the answer. I found out the same as you described about debhelper but much later than your answer. I should have paid more attention to my own topic :oops: