-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/16/2013 08:42 AM, Paul Wise wrote:
> Package: nginx-common
> Version: 1.4.1-2
> Severity: normal
> Usertags: conffile
> User: debian...@lists.debian.org
> Usertags: obsolete-conffile adequate
>
> The recent upgrade did not deal with obsolete conffiles properly.
> Please use the dpkg-maintscript-helper support provided by dh_installdeb
> to remove these obsolete conffiles on upgrade.
>
> http://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
> http://manpages.debian.net/man/1/dh_installdeb
>
> This bug report brought to you by adequate:
>
> http://bonedaddy.net/pabs3/log/2013/02/23/inadequate-software/
>
> $ pkg=nginx-common
> $ adequate $pkg
> nginx-common: obsolete-conffile /etc/nginx/naxsi-ui.conf
> $ dpkg-query -W -f='${Conffiles}\n' $pkg | grep obsolete
>  /etc/nginx/naxsi-ui.conf 6be82259836cb8fad0afde03ebf101d4 obsolete
>
> -- System Information:
> Debian Release: jessie/sid
>   APT prefers experimental
>   APT policy: (1900, 'experimental'), (1800, 'unstable'), (1700,
> 'testing')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.10-rc4-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages nginx-common depends on:
> ii  lsb-base  4.1+Debian12
>
> Versions of packages nginx-common suggests:
> pn  fcgiwrap   <none>
> pn  nginx-doc  <none>
>
Hello Paul.

Thanks for this report.

Actually, it's more complicated than that.

Before nginx 1.4.1 packages, naxsi-ui used the MySQL backend, so the
/etc/nginx/naxsi-ui.conf file was generated using dbconfig.

But not, it has switched to SQLite. This file becoming more or less
static (from the maintainer point of view), we wanted to include it
directly is the package nginx-common, but this wasn't right (see bug
#707291).

So I wrote preinst and postinst scripts for nginx-naxsi-ui package which
is checking the version of the package previously installed and
performing the right tasks to perform the backend change.

Now, the /etc/nginx/naxsi-ui.conf doesn't belong to any package, because
the postinst script copies the file /etc/nginx/naxsi-ui.conf.1.4.1 to
/etc/nginx/naxsi-ui.conf if needed.

The only thing I think I can do is removing the /etc/nginx/naxsi-ui.conf
file when removing nginx-common (using a postrm script).

I need to see what checks are performed by adequate to see if there are
more issues we need to fix.

Thanks.



- -- 
Cyril "Davromaniak" Lavier
KeyID 59E9A881
http://www.davromaniak.eu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRvYfFAAoJEOcAaEhZ6aiB9TYP/2AUE6jiUX9c2GV8NURHXLJR
GuK6G+a3UdZGKt0+s7u0Vkm1cR5xslAEtzS6QjaU1KVYdf7S8XLewgNyjzxVbH5U
F74MdARzMldVahwsGV2HumeG5Ob0644R3EBE9GdCRoMY5saIvkbX5wTeyx9N9FwI
Bo9pXNbNCglNSE08rDY7nYkNZz+cNGxAd5Tb6WJQk39X632X4rEFOZ1/db6PeT7/
0/Q+37aVsJGrT1bdHGbZSon+i/ZN8DEgPhS7AZQFgj6ZFHssRau/U+0cwuiN5ID0
bpKLdzST+D8xBaK8uEbM7f44ng26YMvha+eJAOyGWMRAaXqez1Ps/Kff4bhMGm50
eGLfFAEps98PCGwJVj+22cXvz1SwevTnzmpgKlCzT6Aq8tF342Kc062ZqggVJX/r
PPD37OiYCu4lNGnfF+x9AjTGuF7I7X1sKry1PMovSgIa7hgjnRUwln0wJRzQ7CgX
E/CAoE9FBffDcC/EziHLMz3ZhvahTeqjEbHavqJ1FTXWemYG8nQYf+5GCjFxdYoL
+AnHTQB+g4DN2sd7zTbXsDf1cuOt2ZGvYUWREcIlx9CdkbIHcwwFe7rlu8qW1NRK
ABad2IAHdGazMY/Kk4q4z9D/IgUSYYoS5bpHuPvQNbxJ7XGQErCZM3vg2/4gJoZB
74HH6obU8VynL5ZIWoR8
=sjbJ
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to