Packaging: conffiles duplicates

News and discussion about development of the Debian OS itself

Packaging: conffiles duplicates

Postby Schoelje » 2013-01-23 18:34

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.
User avatar
Schoelje
 
Posts: 5
Joined: 2012-07-20 22:42
Location: Netherlands

Re: Packaging: conffiles duplicates

Postby giavac » 2014-02-26 12:31

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.
giavac
 
Posts: 1
Joined: 2014-02-26 12:27

Re: Packaging: conffiles duplicates

Postby vaclav.blazek » 2017-05-16 12:14

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
package.conffiles
           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.
vaclav.blazek
 
Posts: 1
Joined: 2017-05-16 12:06


Return to Debian Development

Who is online

Users browsing this forum: No registered users and 1 guest

fashionable