On 29.05.2014 15:59, Holger Levsen wrote: > Package: libsss-sudo > Version: 1.11.3-1 > User: debian...@lists.debian.org > Usertags: piuparts piuparts.d.o > > Hi, > > during a test with piuparts I noticed your package leaves a modified > /etc/nsswitch.conf after purge. > > From the attached log (scroll to the bottom...): > > 0m31.7s ERROR: FAIL: After purging files have been modified: > /etc/nsswitch.conf not owned > > I've seen #748671 but this has nothing to do with multiarch, so I decided to > open a new bug report. > > And then I executed this sed command from postinst/postrm manually on my > machine and this didnt leave /etc/nsswitch.conf modified. > > So I manually debootstrapped, kept a copy of nsswitch.conf, installed and > purged libsss-sudo and voila: > > # diff /etc/nsswitch.conf /etc/nsswitch.conf.bak > 21d20 > < sudoers: files > > (And indeed my machine has no sudoers line in nsswitch.conf, so thats why.) > > postinst adds the sudoers line and postrm doesnt remove it.
Strange, purge works for me.. :: root@sid:/etc> cp nsswitch.conf nsswitch.conf-b :: root@sid:/etc> apt-get install libsss-sudo Luetaan pakettiluetteloita... Valmis Muodostetaan riippuvuussuhteiden puu Luetaan tilatiedot... Valmis Seuraavat UUDET paketit asennetaan: libsss-sudo 0 päivitetty, 1 uutta asennusta, 0 poistettavaa ja 3 päivittämätöntä. Noudettavaa arkistoa 0 t/20,1 kt. Toiminnon jälkeen käytetään 39,9 k t lisää levytilaa. Selecting previously unselected package libsss-sudo. (Reading database ... 182251 files and directories currently installed.) Preparing to unpack .../libsss-sudo_1.11.5.1-1_amd64.deb ... Unpacking libsss-sudo (1.11.5.1-1) ... Setting up libsss-sudo (1.11.5.1-1) ... First installation detected... Checking NSS setup... Processing triggers for libc-bin (2.18-7) ... :: root@sid:/etc> md5sum nsswitch.conf 203e340d8ea6205a796beb78c9e8ec73 nsswitch.conf :: root@sid:/etc> md5sum nsswitch.conf-b d204d419661fba0df52f9be8e2a29fdd nsswitch.conf-b :: root@sid:/etc> dpkg --purge libsss-sudo (Reading database ... 182256 files and directories currently installed.) Removing libsss-sudo (1.11.5.1-1) ... Checking NSS setup... Purging configuration files for libsss-sudo (1.11.5.1-1) ... Checking NSS setup... Processing triggers for libc-bin (2.18-7) ... :: root@sid:/etc> md5sum nsswitch.conf d204d419661fba0df52f9be8e2a29fdd nsswitch.conf -- t
signature.asc
Description: OpenPGP digital signature