#681635 devscripts.conf handling

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Christoph Anton Mitterer
Date:
2013-12-04 03:48:10 UTC
Severity:
wishlist
#681635#5
Date:
2012-07-14 22:03:49 UTC
From:
To:
Hi.

devscripts.conf handling seems to be a bit weird to me...

AFAICS, the file is not installed on new installations, right?
And on installations where it already exists, it's manually extended by
added config file snippets.

This leads to the problem though, that my devscripts.conf file, even though
unmodified by myself, differs from host to host, which shouldn't be
the case IMHO.


Can't this be managed as configfile, or via ucf or so? Or is the intended way
now to remove it, if nothing was changed from the defaults.

Thanks.


Chris.

#681635#10
Date:
2013-12-04 03:44:27 UTC
From:
To:
Indeed.

It actually is.  The code snippet you're referring to is

  if dpkg --compare-versions "$2" lt 2.6.90 && [ ! -f /etc/devscripts.conf ]
  then
    cp /usr/share/devscripts/conf.default /etc/devscripts.conf

On a new installation $2 is empty, so the dpkg call succeeds, the check
for a missing devscripts.conf succeeds, and the copy takes place.

Yes, and I notice that the code which does that is missing various
snippets for config variables that were added since 2.11.70.

It's been like that for the entirety of history in git.  The two reasons
that come to mind would be

- Lack of good tooling for handling conffile changes when
  devscripts.conf was introduced
- devscripts.conf contains the version of devscripts that generated it

The latter aspect means that the user would be prompted about changes on
every upgrade.  However, I think at least passable tooling existed in
2002 when devscripts.conf was introduced, so I'm not really sure why
this approach was chosen.

I'd be fine with changing how this is handled, but that needs some
investigation on how to handle that transition.

Cheers,