Bug#709064: dpkg: some packages missing metainformation after upgrading dpkg (squeeze-wheezy)

2013-05-22 Thread Raphael Hertzog
Hello,

On Mon, 20 May 2013, Hans-Juergen Becker wrote:
 The missing files are existing, but doesn't have the :arch in
 there filenames:

Somehow it means that you have /var/lib/dpkg/info/format with a content
of 1 when you shouldn't have it yet (you certainly shouldn't have it
before you upgraded dpkg).

Did you try a first upgrade and then forcefully unpack an older version of
dpkg at some point?

In theory, when you upgrade to a multiarch dpkg, things keep working as
usual (with the old layout) but as soon as you start dpkg on a operation
that implies writing to the database, the database gets upgraded to the
newer format for files and at that point it creates
/var/lib/dpkg/info/format with a value of 1.

Note that dpkg -C doesn't open the database in write mode so will not
trigger the upgrade to a multiarch compatible database.

 Now while wrinting this bug report i've noticed that dpkgs' configuration
 files also weren't correctly upgraded:

A removed conffile is never restored, that's normal behaviour.

In any case, the problem is certainly not affecting everybody and if you
don't have any idea of what you could have done wrong, it will be
difficult to solve.

Your log doesn't show the value of /var/lib/dpkg/info/format at the
different points, so it's difficul to know where you started from and
whether you see a real bug or the result of some bad operation of yours.

 Attached is a log of the described problem, containing a -D dpkg
 installation - perhaps you can figure something out of it.

Nope, it doesn't help much. The new dpkg is installed by the old one.
What's interesting is how the new one behaves after the initial
installation. And the upgrade code doesn't generate any log message, so
the strace output might be more interesting.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


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



Bug#617299: dpkg-deb: should give a hint when it fails due to filling /tmp

2013-05-22 Thread Jerome BENOIT
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

I have just experienced this issue:
it appeared that dpkg-deb does honours TMPDIR,
but that the used devscript which calls it does not
pass the TMPDIR environment variable.
The involved devscript is debuild : TMPDIR has to be preserved.

So, either the issue was fixed or the issue is rather a calling issue.

On my Wheezy box:
$ dpkg-deb --version
Debian `dpkg-deb' package archive backend version 1.16.10 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.


hth,
Jerome

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJRnNpoAAoJEIC/w4IMSybjuJgIAIOz94SSl/yoSoSp97F7sGMd
LaYA/iXSSHPayO6Ve3Kfh2aHO3dBdJk3tkof+SBqBpLQ94CiCcWI4VoHutMv7Zx4
Bjv7MfejPZ22vJ3anrqmP96TPcdtfhtnJwJbuEHpO3JlbSZg4pH9v5HZHN7cvHrc
Esk1eB1+QGN8Iqzk10oHpmcbS1RodS8Nm/11INBtaarEpGHLyIsjvpuwMY5hfi/k
Y6J1QG9gERwg0tBznMQkRLM/BsUFRT4S4Fpyaee2huo68h89WU3EVHpetGtIeOsi
GUzkCPhhU/WC+a0o4qhoY911z/6ZUK8kS3zz6fn2avvgMRe4hoTjfPbZBDcShOQ=
=/qAH
-END PGP SIGNATURE-


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