Bug#688701: dpkg-dev: dpkg-checkbuilddeps fails when run from pdebuild-cross

2012-10-06 Thread Guillem Jover
Hi!

On Mon, 2012-09-24 at 23:46:10 +0200, Gilles Filippini wrote:
> Package: dpkg-dev
> Version: 1.16.8
> Severity: normal

> The change introduced to dpkg-checkbuilddeps in release 1.16.2, to check
> build-dependencies against the target architecture (-a) breaks
> cross-building with pdebuild-cross: dpkg-checkbuilddeps complains about
> missing build-deps while they are correctly pulled by xapt + dpkg-cross.

Well, xapt + dpkg-cross mangle and repack foregin packages to make
them installable on the native system, so the fact that this breaks
now with multiarch is kind of expected.

> It works fine in a squeeze chroot (dpkg-dev 1.15.8.12) but fails in
> wheezy and sid chroots (dpkg-dev 1.16.8).
> 
> Workaround: add "-d" to DEBBUILDOPTS into
> /etc/pdebuild-cross/pdebuild-cross.rc to inhibit dpkg-checkbuilddeps.

You should preferibly get packages switched to multiarch. But maybe
given that pdebuild-cross seems to be relying currently on xapt +
dpkg-cross, then the workaround might need to be applied there for
the time being. Otherwise there's really no bug in dpkg.

I'll most probably be reassigning this bug report pdebuild-cross.

thanks,
guillem


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



Bug#689836: dpkg: md5sums incorrectly recorded for conffile takeover

2012-10-06 Thread Guillem Jover
Hi!

On Sun, 2012-10-07 at 00:05:30 +0200, Andreas Beckmann wrote:
> digging a little bit into dpkg's code I found this in configure.c
> 
> deferred_configure(pkg)
> {
> ...
> for (conff = pkg->installed.conffiles; conff; conff = conff->next)
> deferred_configure_conffile(pkg, conff);
> ...
> }
> 
> That acts on all conffiles known to the package, including those that
> are marked as obsolete. But if they are marked as obsolete *here*, they
> may have been overtaken by another package that is currently unpackaged,
> too, but not yet configured. In that case the current package will
> "consume" the .dpkg-new ffrom a different package.

Right!

> shouldn't the following change fix this by skipping obsolete conffiles?
> 
> for (conff = pkg->installed.conffiles; conff; conff = conff->next)
> if (!conff->obsolete)
> deferred_configure_conffile(pkg, conff);

Something along those lines, yes.

> A quick test shows that this would work.

I've reviewed all other possible instances of this issue, and I've
found and fixed several others, doing some testing now, will consider
whether to include a fix for this for 1.16.9.

thanks,
guillem


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



Processed: Re: Bug#689790: msva-perl: modifies conffiles during upgrade from squeeze (policy 10.7.3): /etc/X11/Xsession.d/70monkeysphere_use-validation-agent

2012-10-06 Thread Debian Bug Tracking System
Processing control commands:

> block -1 by 689836
Bug #689790 [msva-perl] msva-perl: modifies conffiles during upgrade from 
squeeze (policy 10.7.3): /etc/X11/Xsession.d/70monkeysphere_use-validation-agent
689790 was not blocked by any bugs.
689790 was not blocking any bugs.
Added blocking bug(s) of 689790: 689836

-- 
689790: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689790
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


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



Bug#689836: dpkg: md5sums incorrectly recorded for conffile takeover

2012-10-06 Thread Andreas Beckmann
Hi,

digging a little bit into dpkg's code I found this in configure.c

deferred_configure(pkg)
{
...
for (conff = pkg->installed.conffiles; conff; conff = conff->next)
deferred_configure_conffile(pkg, conff);
...
}

That acts on all conffiles known to the package, including those that
are marked as obsolete. But if they are marked as obsolete *here*, they
may have been overtaken by another package that is currently unpackaged,
too, but not yet configured. In that case the current package will
"consume" the .dpkg-new ffrom a different package.

shouldn't the following change fix this by skipping obsolete conffiles?

for (conff = pkg->installed.conffiles; conff; conff = conff->next)
if (!conff->obsolete)
deferred_configure_conffile(pkg, conff);

A quick test shows that this would work.


Andreas


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



Bug#689836: dpkg: md5sums incorrectly recorded for conffile takeover

2012-10-06 Thread Andreas Beckmann
Package: dpkg
Version: 1.16.8
Severity: important

Hi,

squeeze ships the conffile
/etc/X11/Xsession.d/70monkeysphere_use-validation-agent
(md5sum: 2e95953896510b58f2d1a8342936b088) in the monkeysphere package.
In wheezy this file is taken over by the msva-perl package and a new
variant is shipped (md5sum: 841956d191ba1d791c960d10607a9474)

The problem is, the md5sums in the Conffiles: entries are mixed up after
distupgrading from squeeze to wheezy and debsums reports a modified
conffile.

In squeeze before the upgrade:

# dpkg -s msva-perl
Package: msva-perl
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 100
Maintainer: Daniel Kahn Gillmor 
Architecture: all
Version: 0.3-1
Provides: monkeysphere-validation-agent
Depends: monkeysphere, libcrypt-x509-perl, libconvert-asn1-perl, 
libnet-server-perl, libhttp-server-simple-perl, libjson-perl, libparent-perl
Enhances: monkeysphere
Description: Cryptographic identity validation agent (Perl implementation)

# dpkg -s monkeysphere
Package: monkeysphere
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 432
Maintainer: Jameson Rollins 
Architecture: all
Version: 0.31-4
Depends: gnupg, libcrypt-openssl-rsa-perl, libdigest-sha-perl, lockfile-progs | 
procmail, adduser
Recommends: netcat | socat, ssh-askpass, cron, openssh-client
Suggests: monkeysphere-validation-agent
Enhances: openssh-client, openssh-server
Conffiles:
 /etc/monkeysphere/monkeysphere-authentication.conf 
45ffebbf32c7aefcf2694e4601afa02c
 /etc/monkeysphere/monkeysphere.conf f6c1cee1a52fa89ae17197e4a56e71c8
 /etc/monkeysphere/monkeysphere-host.conf 697b23325bc5ee5b4c57886480273877
 /etc/X11/Xsession.d/70monkeysphere_use-validation-agent 
2e95953896510b58f2d1a8342936b088
Description: leverage the OpenPGP web of trust for SSH and TLS authentication

and in wheezy after the distupgrade:

# dpkg -s msva-perl
Package: msva-perl
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 228
Maintainer: Daniel Kahn Gillmor 
Architecture: all
Version: 0.8-2
Provides: monkeysphere-validation-agent
Depends: libcrypt-x509-perl, libconvert-asn1-perl, libnet-server-perl, 
libhttp-server-simple-perl, libjson-perl, libparent-perl, 
libgnupg-interface-perl (>= 0.42.02), libregexp-common-perl, 
libfile-homedir-perl, libconfig-general-perl
Recommends: libgtk2-perl, libanyevent-perl, liblinux-inotify2-perl, 
liburi-perl, libnet-ssleay-perl, libio-socket-ssl-perl (>= 1.37), libwww-perl
Suggests: liblwp-protocol-socks-perl
Conflicts: monkeysphere (<< 0.32)
Enhances: xul-ext-monkeysphere
Conffiles:
 /etc/X11/Xsession.d/70monkeysphere_use-validation-agent 
2e95953896510b58f2d1a8342936b088
Description: Cryptographic identity validation agent (Perl implementation)

# dpkg -s monkeysphere
Package: monkeysphere
Status: install ok installed
Priority: extra
Section: net
Installed-Size: 428
Maintainer: Jameson Rollins 
Architecture: all
Version: 0.35-2
Depends: gnupg (>= 1.4.10), libcrypt-openssl-rsa-perl, libdigest-sha-perl, 
lockfile-progs | procmail, adduser
Recommends: netcat | socat, ssh-askpass, cron, openssh-client
Suggests: monkeysphere-validation-agent
Enhances: openssh-client, openssh-server
Conffiles:
 /etc/monkeysphere/monkeysphere-authentication.conf 
8641c34b8202283588bebc0e20c51b75
 /etc/monkeysphere/monkeysphere-host.conf 697b23325bc5ee5b4c57886480273877
 /etc/monkeysphere/monkeysphere.conf 348530d6c1d6f0ccc13353ea84269606
 /etc/X11/Xsession.d/70monkeysphere_use-validation-agent 
841956d191ba1d791c960d10607a9474 obsolete
Description: leverage the OpenPGP web of trust for SSH and TLS authentication

The obsolete entry (in monkeysphere) has the correct md5sum,
while the new Conffiles entry in msva-perl uses the old one.

This may be cuased by only using a versioned Conflicts and no Replaces,
but whatever dpkg records in the statusfile is wrong.

Looking at the upgrade transcript we see:

  Setting up monkeysphere (0.35-2) ...
  Installing new version of config file 
/etc/monkeysphere/monkeysphere-authentication.conf ...
  Installing new version of config file /etc/monkeysphere/monkeysphere.conf ...
  Installing new version of config file 
/etc/X11/Xsession.d/70monkeysphere_use-validation-agent ...
  gpg: checking the trustdb
  Setting up msva-perl (0.8-2) ...

so at that point dpkg seems to believe that the conffile is still
belonging to monkeysphere.

A full piuparts upgrade log is attached to
#689790 (msva-perl modifies conffile during upgrade)


Andreas


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



Bug#689820: Danish translation of dpkg dselect

2012-10-06 Thread Guillem Jover
Hi!

On Sat, 2012-10-06 at 18:21:42 +0100, Joe Dalton wrote:
> Package: dpkg
> Severity: wishlist
> Tags: l10n patch
> 
> Please include the attached Danish dpkg dselect translation.
> 
> joe@pc:~/over/debianp/dpkg_dselect$ msgfmt --statistics -c -v -o /dev/null 
> da.poda.po: 270 oversatte tekster.
> 
> Proofreading done by Ask

Thanks, queued locally. Will be included in 1.16.9.

regards,
guillem


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