[SCM] dpkg's main repository branch, master, updated. 1.16.0-7-g0cacb0c

2011-04-03 Thread Raphaël Hertzog
The following commit has been merged in the master branch:
commit fa98524b587fd1d8c376c00cbd5175d1c197
Author: Raphaël Hertzog hert...@debian.org
Date:   Sun Apr 3 09:45:20 2011 +0200

libdpkg: add non-regression test for version number starting with non-digit

And update the non-regression test for invalid characters to put
the invalid character as the second character and not the first (which
would be caught by the more strict non-digit check).

diff --git a/lib/dpkg/test/t-version.c b/lib/dpkg/test/t-version.c
index 2e52781..9975084 100644
--- a/lib/dpkg/test/t-version.c
+++ b/lib/dpkg/test/t-version.c
@@ -141,10 +141,13 @@ test_version_parse(void)
test_fail(parseversion(a, a:0-0) == NULL);
test_fail(parseversion(a, A:0-0) == NULL);
 
+   /* Test upstream version not starting with a digit */
+   test_fail(parseversion(a, 0:abc3-0) == NULL);
+
/* Test invalid characters in upstream version. */
-   verstr = m_strdup(0:0-0);
+   verstr = m_strdup(0:0a-0);
for (p = !#@$%/|\\()[]{};,_=*^'; *p; p++) {
-   verstr[2] = *p;
+   verstr[3] = *p;
test_fail(parseversion(a, verstr) == NULL);
}
free(verstr);

-- 
dpkg's main repository


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



[SCM] dpkg's main repository branch, master, updated. 1.16.0-7-g0cacb0c

2011-04-03 Thread Raphaël Hertzog
The following commit has been merged in the master branch:
commit 0cacb0c3a1d1f837c957f3917a040ace6d60f9e7
Author: Raphaël Hertzog hert...@debian.org
Date:   Sun Apr 3 09:52:33 2011 +0200

Dpkg::Version: update version_check to forbid versions starting with non 
digits

Adapted the code to rely on the parsing done by the constructor to split
the version number properly instead of redoing similar regexes in
version_check().

Updated the test suite accordingly.

diff --git a/scripts/Dpkg/Version.pm b/scripts/Dpkg/Version.pm
index f0f7cd2..9f0f3a1 100644
--- a/scripts/Dpkg/Version.pm
+++ b/scripts/Dpkg/Version.pm
@@ -88,7 +88,7 @@ sub new {
 }
 
 my $self = {};
-if ($ver =~ /^(\d*):(.+)$/) {
+if ($ver =~ /^([^:]*):(.+)$/) {
$self-{'epoch'} = $1;
$ver = $2;
 } else {
@@ -159,7 +159,7 @@ sub comparison {
 $b = Dpkg::Version-new($b);
 }
 ($a, $b) = ($b, $a) if $inverted;
-my $r = $a-epoch() = $b-epoch();
+my $r = version_compare_part($a-epoch(), $b-epoch());
 return $r if $r;
 $r = version_compare_part($a-version(), $b-version());
 return $r if $r;
@@ -362,22 +362,29 @@ contains a description of the problem with the $version 
scalar.
 
 sub version_check($) {
 my $version = shift;
-$version = $version if ref($version);
-
-if (not defined($version) or not length($version)) {
+my $str;
+if (defined $version) {
+$str = $version;
+$version = Dpkg::Version-new($str) unless ref($version);
+}
+if (not defined($str) or not length($str)) {
 my $msg = _g(version number cannot be empty);
 return (0, $msg) if wantarray;
 return 0;
 }
-if ($version =~ m/([^-+:.0-9a-zA-Z~])/o) {
+if ($version-version() =~ m/^[^\d]/) {
+my $msg = _g(version number does not start with digit);
+return (0, $msg) if wantarray;
+return 0;
+}
+if ($str =~ m/([^-+:.0-9a-zA-Z~])/o) {
 my $msg = sprintf(_g(version number contains illegal character 
`%s'), $1);
 return (0, $msg) if wantarray;
 return 0;
 }
-if ($version =~ /:/ and $version !~ /^\d*:/) {
-$version =~ /^([^:]*):/;
+if ($version-epoch() !~ /^\d*$/) {
 my $msg = sprintf(_g(epoch part of the version number  .
- is not a number: '%s'), $1);
+ is not a number: '%s'), $version-epoch());
 return (0, $msg) if wantarray;
 return 0;
 }
diff --git a/scripts/t/100_Dpkg_Version.t b/scripts/t/100_Dpkg_Version.t
index 0f4926d..97bc7d2 100644
--- a/scripts/t/100_Dpkg_Version.t
+++ b/scripts/t/100_Dpkg_Version.t
@@ -28,7 +28,7 @@ my @ops = (, , lt,
   =, ge,
   , , gt);
 
-plan tests = scalar(@tests) * (3 * scalar(@ops) + 4) + 11;
+plan tests = scalar(@tests) * (3 * scalar(@ops) + 4) + 13;
 
 sub dpkg_vercmp {
  my ($a, $cmp, $b) = @_;
@@ -87,6 +87,10 @@ ok($ver eq '10a:5.2', invalid still same string 1/2);
 $ver = Dpkg::Version-new('5.2@3-2');
 ok($ver eq '5.2@3-2', invalid still same string 2/2);
 ok(!$ver-is_valid(), illegal character is invalid);
+$ver = Dpkg::Version-new('foo5.2');
+ok(!$ver-is_valid(), version does not start with digit 1/2);
+$ver = Dpkg::Version-new('0:foo5.2');
+ok(!$ver-is_valid(), version does not start with digit 2/2);
 
 # Other tests
 $ver = Dpkg::Version-new('1.2.3-4');

-- 
dpkg's main repository


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



[SCM] dpkg's main repository branch, master, updated. 1.16.0-8-gb7e4c4c

2011-04-03 Thread Helge Kreutzmann
The following commit has been merged in the master branch:
commit b7e4c4c2d7d4e9eb744c4efdab343f5478e00479
Author: Helge Kreutzmann deb...@helgefjell.de
Date:   Sun Apr 3 12:22:24 2011 +0200

Update German scripts translation

Update to 515t

diff --git a/debian/changelog b/debian/changelog
index 4880fae..06fd396 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ dpkg (1.16.1) UNRELEASED; urgency=low
   * Install deb-src-control(5) man pages in dpkg-dev. Closes: #620520
   * Add ‘.gitmodules’ to the default dpkg-source ignore lists. Closes: #620490
 
+  [ Updated scripts translations ]
+  * German (Helge Kreutzmann).
+ 
  -- Raphaël Hertzog hert...@debian.org  Sat, 02 Apr 2011 09:21:26 +0200
 
 dpkg (1.16.0) unstable; urgency=low
diff --git a/scripts/po/de.po b/scripts/po/de.po
index be7..1f9112d 100644
--- a/scripts/po/de.po
+++ b/scripts/po/de.po
@@ -6,8 +6,8 @@ msgid 
 msgstr 
 Project-Id-Version: dpkg-scripts\n
 Report-Msgid-Bugs-To: debian-d...@lists.debian.org\n
-POT-Creation-Date: 2011-04-02 00:59+0200\n
-PO-Revision-Date: 2011-03-07 11:28+0100\n
+POT-Creation-Date: 2011-04-03 10:15+\n
+PO-Revision-Date: 2011-04-03 12:20+0200\n
 Last-Translator: Helge Kreutzmann deb...@helgefjell.de\n
 Language-Team: de debian-l10n-ger...@lists.debian.org\n
 Language: de\n
@@ -759,13 +759,13 @@ msgstr rein binärer Upload - es ist kein Quellcode 
hinzugefügt
 msgid write original source message
 msgstr ursprüngliche Quell-Nachricht schreiben
 
-#: scripts/dpkg-genchanges.pl:494 scripts/Dpkg/Source/Package.pm:426
+#: scripts/dpkg-genchanges.pl:494 scripts/Dpkg/Source/Package.pm:428
 #, perl-format
 msgid missing information for critical output field %s
 msgstr fehlende Informationen für kritisches Ausgabefeld %s
 
 #: scripts/dpkg-genchanges.pl:499 scripts/dpkg-gencontrol.pl:272
-#: scripts/dpkg-gencontrol.pl:275 scripts/Dpkg/Source/Package.pm:431
+#: scripts/dpkg-gencontrol.pl:275 scripts/Dpkg/Source/Package.pm:433
 #, perl-format
 msgid missing information for output field %s
 msgstr fehlende Informationen für Ausgabefeld %s
@@ -1090,7 +1090,7 @@ msgstr 
 #: scripts/Dpkg/Compression/FileHandle.pm:385
 #: scripts/Dpkg/Interface/Storable.pm:115 scripts/Dpkg/IPC.pm:255
 #: scripts/Dpkg/IPC.pm:263 scripts/Dpkg/Source/Functions.pm:78
-#: scripts/Dpkg/Source/Package.pm:347 scripts/Dpkg/Source/Package.pm:444
+#: scripts/Dpkg/Source/Package.pm:349 scripts/Dpkg/Source/Package.pm:446
 #: scripts/Dpkg/Source/Package/V2.pm:210 scripts/Dpkg/Source/Package/V2.pm:477
 #: scripts/Dpkg/Source/Package/V2.pm:522
 #: scripts/Dpkg/Source/Package/V3/quilt.pm:141
@@ -1147,7 +1147,7 @@ msgstr »%s« kann nicht gefunden werden
 #: scripts/dpkg-name.pl:96 scripts/Dpkg/Arch.pm:138 scripts/Dpkg/Arch.pm:157
 #: scripts/Dpkg/Arch.pm:176 scripts/Dpkg/Changelog/Parse.pm:142
 #: scripts/Dpkg/IPC.pm:247 scripts/Dpkg/Shlibs.pm:78
-#: scripts/Dpkg/Source/Package.pm:138
+#: scripts/Dpkg/Source/Package.pm:140
 #, perl-format
 msgid cannot open %s
 msgstr %s kann nicht geöffnet werden
@@ -2578,7 +2578,7 @@ msgstr schließen auf Tar-Eingabe
 msgid cannot create directory %s
 msgstr Verzeichnis %s kann nicht angelegt werden
 
-#: scripts/Dpkg/Source/Archive.pm:145 scripts/Dpkg/Source/Package.pm:231
+#: scripts/Dpkg/Source/Archive.pm:145 scripts/Dpkg/Source/Package.pm:233
 #: scripts/Dpkg/Source/Package/V2.pm:192
 #, perl-format
 msgid cannot opendir %s
@@ -2799,7 +2799,7 @@ msgstr Patch-Sicherungskopiedatei %s entfernen
 msgid nonexistent
 msgstr nicht existent
 
-#: scripts/Dpkg/Source/Patch.pm:596 scripts/Dpkg/Source/Package.pm:358
+#: scripts/Dpkg/Source/Patch.pm:596 scripts/Dpkg/Source/Package.pm:360
 #, perl-format
 msgid cannot stat %s
 msgstr %s kann nicht mit stat abgefragt werden
@@ -2833,60 +2833,60 @@ msgstr benannte Pipe
 msgid named socket
 msgstr benannter Socket
 
-#: scripts/Dpkg/Source/Package.pm:133
+#: scripts/Dpkg/Source/Package.pm:135
 #, perl-format
 msgid %s is not the name of a file
 msgstr %s ist nicht der Name einer Datei
 
-#: scripts/Dpkg/Source/Package.pm:153
+#: scripts/Dpkg/Source/Package.pm:155
 #, perl-format
 msgid missing critical source control field %s
 msgstr kritisches Quellsteuerfeld %s fehlt
 
-#: scripts/Dpkg/Source/Package.pm:181
+#: scripts/Dpkg/Source/Package.pm:183
 #, perl-format
 msgid 
 source package format `%s' is not supported (Perl module %s is required)
 msgstr 
 Quellpaketformat »%s« wird nicht unterstützt (Perlmodul %s wird benötigt)
 
-#: scripts/Dpkg/Source/Package.pm:185
+#: scripts/Dpkg/Source/Package.pm:187
 #, perl-format
 msgid invalid Format field `%s'
 msgstr ungültiges Formatfeld »%s«
 
-#: scripts/Dpkg/Source/Package.pm:212
+#: scripts/Dpkg/Source/Package.pm:214
 msgid source and version are required to compute the source basename
 msgstr 
 Quelle und Version werden benötigt, um den »basename« der Quelle zu ermitteln
 
-#: scripts/Dpkg/Source/Package.pm:278 scripts/Dpkg/Source/Package.pm:280
+#: scripts/Dpkg/Source/Package.pm:280 

[SCM] dpkg's main repository branch, sid, updated. 1.16.0-1-gfddba30

2011-04-03 Thread Raphaël Hertzog
The following commit has been merged in the sid branch:
commit fddba30d74856e2d5c3f287343569fc259729bc0
Author: Raphaël Hertzog hert...@debian.org
Date:   Sun Apr 3 14:58:06 2011 +0200

dpkg: fix regression when using -R option

The regression was introduced in commit
280ac914cc52ee5de079c0833bb1df5005c1e7ab. The variable used for the loop
got incremented twice for each iteration, the net result is that the list
of filenames contains random data on half of the entries.

Reported-by: Craig Sanders c...@taz.net.au

diff --git a/debian/changelog b/debian/changelog
index 0db7705..ec09b8c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dpkg (1.16.0.1) UNRELEASED; urgency=low
+
+  [ Raphaël Hertzog ]
+  * Fix regression affecting dpkg -R. Closes: #620636
+
+ -- Raphaël Hertzog hert...@debian.org  Sun, 03 Apr 2011 15:06:32 +0200
+
 dpkg (1.16.0) unstable; urgency=low
 
   [ Guillem Jover ]
diff --git a/src/archives.c b/src/archives.c
index f1dd779..0a7e0b8 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -1269,7 +1269,7 @@ archivefiles(const char *const *argv)
 arglist= m_malloc(sizeof(char*)*(nfiles+1));
 p = findoutput.buf;
 for (i = 0; i  nfiles; i++) {
-  arglist[i++]= p;
+  arglist[i] = p;
   while (*p++ != '\0') ;
 }
 arglist[i] = NULL;

-- 
dpkg's main repository


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



[SCM] dpkg's main repository branch, sid, updated. 1.16.0-2-g888a5bb

2011-04-03 Thread Raphaël Hertzog
The following commit has been merged in the sid branch:
commit 888a5bbbd916d4a2f3a519c1c45519e8614d1782
Author: Raphaël Hertzog hert...@debian.org
Date:   Sun Apr 3 15:27:21 2011 +0200

dpkg: don't ohshite if lutimes() fails with ENOSYS

Glibc implements lutimes() on top of utimensat() which is only provided
by Linux = 2.6.22. With older kernels it returns ENOSYS.

This regression was introduced by commit
b3eb59cf43c286bb6c906c00ef1cdc0ec21f474d which implemented support for
setting timestamps of symlinks.

Reported-by: Michael Prokop m...@debian.org

diff --git a/debian/changelog b/debian/changelog
index ec09b8c..0de22f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ dpkg (1.16.0.1) UNRELEASED; urgency=low
 
   [ Raphaël Hertzog ]
   * Fix regression affecting dpkg -R. Closes: #620636
+  * Don't fail during unpack if the system doesn't support changing timestamps
+of symlinks. Closes: #620679
 
  -- Raphaël Hertzog hert...@debian.org  Sun, 03 Apr 2011 15:06:32 +0200
 
diff --git a/src/archives.c b/src/archives.c
index 0a7e0b8..9354c1e 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -242,7 +242,7 @@ tarobject_set_mtime(struct tar_entry *te, const char *path)
 
   if (te-type == tar_filetype_symlink) {
 #ifdef HAVE_LUTIMES
-if (lutimes(path, tv))
+if (lutimes(path, tv)  errno != ENOSYS)
   ohshite(_(error setting timestamps of `%.255s'), path);
 #endif
   } else {

-- 
dpkg's main repository


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



Re: file trigger and dpkg aborting due to dependency errors

2011-04-03 Thread Goswin von Brederlow
Raphael Hertzog hert...@debian.org writes:

 On Wed, 30 Mar 2011, Goswin von Brederlow wrote:
  Note also that the trigger activation is a no-op if the 
  qlustar-image-common is
  not configured which means that you have to regenerate your image in the
  configure of qlustar-image-common as well as in the triggered case.
 
 Is a package allowed to trigger itself? Or is that already considered a
 cycle?

 I don't see how a package can trigger itself. If you run dpkg-trigger from
 the postinst, the package is not configured yet and the trigger is a
 no-op. It's the same for a file trigger which is executed during unpack.

 Cheers,

Looking closer at /usr/share/doc/dpkg-dev/triggers.txt.gz:

Packages in `config-failed' or worse are never considered to have
lists of pending triggers.  A package whose postinst is being run
can however acquire pending triggers during that run (ie, a package
can trigger itself).

The docs seem to support triggering oneself is valid and it works not
just for pakages in `config-failed' state.

MfG
Goswin


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87zko7ilyt.fsf@frosties.localnet



Re: Bug#504880: Disambiguate installed for packages

2011-04-03 Thread Russ Allbery
Raphael Hertzog hert...@debian.org writes:
 On Fri, 04 Mar 2011, Jonathan Nieder wrote:

 )  I suspect others like it, too, but who knows?  Patch attached.
 Seconds or objections welcome.

 Seconded. It's long and I might have missed some inaccuracies but I think
 it's an improvement in clarity.

Thanks!

With this and with Steve's earlier approval, I'm going to call this good
enough and merge this monster.  We can definitely fix any problems that I
introduced later on after more people have had a chance to study it and
apply it to their packages.

Thank you, everyone, for all your reviews of this giant patch.  I think it
will be a great first step towards making maintainer script state less
confusing.

-- 
Russ Allbery (r...@debian.org)   http://www.eyrie.org/~eagle/


-- 
To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87zko6mzeg@windlord.stanford.edu



Bug#620636: problems with dpkg 1.16.0

2011-04-03 Thread Craig Sanders
Package: dpkg
Version: 1.16.0

I just upgraded dpkg to 1.16.0 today and noticed the following three problems:

1. it segfaulted! (fortunately, /var/lib/dpkg/status wasn't corrupted)

2. it claimed it was installing a package called 'xŒ—)' which does
   not exist. probably related to #1 above (buffer overrun or similar,
   perhaps?)

   (in case those 8-bit chars get mangled by an MTA, that's '788C 9729'
   in hex)

3. version numbers which have been valid for years are now being
   complained about as if they are invalid.

i reverted to 1.15.8.10 and all three problems went away.


system is a quad-core AMD Phenom II 940 with 8GB RAM, running a
custom 2.6.38.1 amd64 kernel. i saw the same complaints about version
numbers on another system with an AMD quad-core Phenom 9950 (but
hadn't installed anything to trigger the segfault on that box before
downgrading to 1.15.8.10)



the following example shows all three problems while i was installing
the latest version of unofficial wine-unstable packages from
http://dev.carbon-project.org/debian/wine-unstable/ with dpkg 1.16.0:

ganesh:/home/cas/Download/wine-unstable/1.3.17-0.1# dpkg -iGROEB *.deb
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 19677 package 
'linux-headers-2.6.37.3':
 error in Version string 'ganesh.2.6.37.3': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 19700 package 
'linux-headers-2.6.37.2':
 error in Version string 'ganesh.2.6.37.2': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 55488 package 
'linux-headers-2.6.35.9':
 error in Version string 'ganesh.2.6.35.9': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 84726 package 
'linux-image-2.6.38':
 error in Version string 'ganesh.2.6.38': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 85885 package 
'linux-image-2.6.38.1':
 error in Version string 'ganesh.2.6.38.1': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 107184 package 
'linux-headers-2.6.38.1':
 error in Version string 'ganesh.2.6.38.1': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 139020 package 
'linux-headers-2.6.38':
 error in Version string 'ganesh.2.6.38': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 156118 package 
'linux-image-2.6.37.2':
 error in Version string 'ganesh.2.6.37.2': version number does not start with 
digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 156146 package 
'linux-image-2.6.37.3':
 error in Version string 'ganesh.2.6.37.3': version number does not start with 
digit
(Reading database ... 866518 files and directories currently installed.)
Preparing to replace libwine-alsa-unstable 1.3.16-0.2 (using 
libwine-alsa-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-alsa-unstable ...
dpkg: error processing xŒ—) (--install):
 cannot access archive: No such file or directory
Preparing to replace libwine-bin-unstable 1.3.16-0.2 (using 
libwine-bin-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-bin-unstable ...
Segmentation fault



and here's the same install after downgrading to dpkg 1.5.8.10:

ganesh:/home/cas/Download/wine-unstable/1.3.17-0.1# dpkg -iGROEB *.deb
(Reading database ... 866519 files and directories currently installed.)
Preparing to replace libwine-alsa-unstable 1.3.17-0.1 (using 
libwine-alsa-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-alsa-unstable ...
Preparing to replace libwine-bin-unstable 1.3.17-0.1 (using 
libwine-bin-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-bin-unstable ...
Skipping deselected package libwine-capi-unstable.
Preparing to replace libwine-cms-unstable 1.3.16-0.2 (using 
libwine-cms-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-cms-unstable ...
Skipping deselected package libwine-dbg-unstable.
Skipping deselected package libwine-dev-unstable.
Skipping deselected package libwine-esd-unstable.
Preparing to replace libwine-gl-unstable 1.3.16-0.2 (using 
libwine-gl-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-gl-unstable ...
Preparing to replace libwine-gphoto2-unstable 1.3.16-0.2 (using 
libwine-gphoto2-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-gphoto2-unstable ...
Skipping deselected package libwine-jack-unstable.
Preparing to replace libwine-ldap-unstable 1.3.16-0.2 (using 
libwine-ldap-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-ldap-unstable ...
Skipping deselected package libwine-nas-unstable.
Preparing to replace libwine-openal-unstable 1.3.16-0.2 (using 
libwine-openal-unstable_1.3.17-0.1_amd64.deb) ...
Unpacking replacement libwine-openal-unstable ...
Skipping deselected package 

Processed: Bug#620636 marked as pending

2011-04-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 tag 620636 pending
Bug #620636 [dpkg] problems with dpkg 1.16.0
Added tag(s) pending.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
620636: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620636
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#620636: marked as pending

2011-04-03 Thread Raphaël Hertzog
tag 620636 pending
thanks

Hello,

Bug #620636 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:

http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=fddba30

---
commit fddba30d74856e2d5c3f287343569fc259729bc0
Author: Raphaël Hertzog hert...@debian.org
Date:   Sun Apr 3 14:58:06 2011 +0200

dpkg: fix regression when using -R option

The regression was introduced in commit
280ac914cc52ee5de079c0833bb1df5005c1e7ab. The variable used for the loop
got incremented twice for each iteration, the net result is that the list
of filenames contains random data on half of the entries.

Reported-by: Craig Sanders c...@taz.net.au

diff --git a/debian/changelog b/debian/changelog
index 0db7705..ec09b8c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dpkg (1.16.0.1) UNRELEASED; urgency=low
+
+  [ Raphaël Hertzog ]
+  * Fix regression affecting dpkg -R. Closes: #620636
+
+ -- Raphaël Hertzog hert...@debian.org  Sun, 03 Apr 2011 15:06:32 +0200
+
 dpkg (1.16.0) unstable; urgency=low
 
   [ Guillem Jover ]




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



Bug#620679: dpkg 1.16.0 depends on linux kernel =2.6.22

2011-04-03 Thread Michael Prokop
Package: dpkg
Version: 1.16.0
Severity: normal


Upgrading to latest dpkg when running kernel version 2.6.22 results
in:

| dpkg: error processing /var/cache/apt/archives/perl_5.10.1-19_i386.deb 
(--unpack):
|  error setting timestamps of `/usr/share/man/man1/psed.1.gz.dpkg-new': 
Function not implemented
| Preparing to replace perl-base 5.10.1-18 (using 
.../perl-base_5.10.1-19_i386.deb) ...
| Unpacking replacement perl-base ...
| dpkg: error processing /var/cache/apt/archives/perl-base_5.10.1-19_i386.deb 
(--unpack):
|  error setting timestamps of `/usr/share/man/man1/perl5.10.1.1.gz.dpkg-new': 
Function not implemented

Caused by:

| 22375 utimensat(AT_FDCWD, /usr/share/man/man1/psed.1.gz.dpkg-new, 
{{1301834577, 0}, {1301648022, 0}}, AT_SYMLINK_NOFOLLOW) = -1 ENOSYS (Function 
not implemented)

utimensat() was added to Linux in kernel 2.6.22; glibc support was
added with version 2.6.

Feel free to adjust severity as needed, not sure whether kernel
versions 2.6.22 are still beind considered to be supported - I
personally wish they were - but people might run into this.

regards,
-mika-




-- 
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/2011-04-03t14-53...@devnull.michael-prokop.at



Bug#620679: marked as pending

2011-04-03 Thread Raphaël Hertzog
tag 620679 pending
thanks

Hello,

Bug #620679 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:

http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=888a5bb

---
commit 888a5bbbd916d4a2f3a519c1c45519e8614d1782
Author: Raphaël Hertzog hert...@debian.org
Date:   Sun Apr 3 15:27:21 2011 +0200

dpkg: don't ohshite if lutimes() fails with ENOSYS

Glibc implements lutimes() on top of utimensat() which is only provided
by Linux = 2.6.22. With older kernels it returns ENOSYS.

This regression was introduced by commit
b3eb59cf43c286bb6c906c00ef1cdc0ec21f474d which implemented support for
setting timestamps of symlinks.

Reported-by: Michael Prokop m...@debian.org

diff --git a/debian/changelog b/debian/changelog
index ec09b8c..0de22f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ dpkg (1.16.0.1) UNRELEASED; urgency=low
 
   [ Raphaël Hertzog ]
   * Fix regression affecting dpkg -R. Closes: #620636
+  * Don't fail during unpack if the system doesn't support changing timestamps
+of symlinks. Closes: #620679
 
  -- Raphaël Hertzog hert...@debian.org  Sun, 03 Apr 2011 15:06:32 +0200
 




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



Bug#620679: marked as pending

2011-04-03 Thread Michael Prokop
* Raphaël Hertzog [Sun Apr 03, 2011 at 01:33:48PM +]:

 Bug #620679 reported by you has been fixed in the Git repository. You can
 see the changelog below, and you can check the diff of the fix at:

 http://git.debian.org/?p=dpkg/dpkg.git;a=commitdiff;h=888a5bb

Cool, thanks!

regards,
-mika-


signature.asc
Description: Digital signature


Processed: your mail

2011-04-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 reassign 614716 dpkg
Bug #614716 [lighttpd] lighttpd: leaves dangling alternatives on upgrade
Bug reassigned from package 'lighttpd' to 'dpkg'.
Bug No longer marked as found in versions lighttpd/1.4.28-2.
 quit
Stopping processing here.

Please contact me if you need assistance.
-- 
614716: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614716
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#620699: dpkg-query: version string does not start with digit

2011-04-03 Thread Gordon Haverland
Package: dpkg
Version: 1.16.0
Severity: normal

I normally compile my own kernels.  dpkg-query is giving errors
on these self-compiled kernels. (newmain.1 and newmain.2) are the
specific strings causing problems.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32 (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils   8.5-1GNU core utilities
ii  libbz2-1.0  1.0.5-6  high-quality block-sorting file co
ii  libc6   2.11.2-11Embedded GNU C Library: Shared lib
ii  libselinux1 2.0.98-1 SELinux runtime shared libraries
ii  xz-utils5.0.0-2  XZ-format compression utilities
ii  zlib1g  1:1.2.3.4.dfsg-3 compression library - runtime

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt   0.8.13 Advanced front-end for dpkg

-- no debconf information




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



Processed: Re: Processed: your mail

2011-04-03 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 reassign 614716 lighttpd 1.4.28-2
Bug #614716 [dpkg] lighttpd: leaves dangling alternatives on upgrade
Bug reassigned from package 'dpkg' to 'lighttpd'.
Bug #614716 [lighttpd] lighttpd: leaves dangling alternatives on upgrade
Bug Marked as found in versions lighttpd/1.4.28-2.
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
614716: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614716
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#620636: problems with dpkg 1.16.0

2011-04-03 Thread Craig Sanders
On Sun, Apr 03, 2011 at 03:16:33PM +0200, Raphael Hertzog wrote:
 Hi,
 
 On Sun, 03 Apr 2011, Craig Sanders wrote:
  1. it segfaulted! (fortunately, /var/lib/dpkg/status wasn't corrupted)
  
  2. it claimed it was installing a package called 'xŒ—)' which does
 not exist. probably related to #1 above (buffer overrun or similar,
 perhaps?)
  
 (in case those 8-bit chars get mangled by an MTA, that's '788C 9729'
 in hex)
 
 Both problems are related. And I just pushed a fix for this.

cool, thanks.

  3. version numbers which have been valid for years are now being
 complained about as if they are invalid.
 
 That's not a mistake. Version numbers are supposed to start with a digit.
 
 dpkg still accepts them for installed packages but forbids them in .deb.

ah, okay. i've been making kernel packages with version numbering like
that for years with make-kpkg (which complains about hyphens in the
--revision arg, but not about the version starting with a letter).

i'll start making them as version.hostname rather than hostname.version.

any chance of dpkg being less spammy about it? i guess some kind of
notification is required but it's not a major problem, so doesn't need
a couple of lines of output per package. perhaps a single summary line
mentioning the problem and listing the packages comma separated.

craig

-- 
craig sanders c...@taz.net.au




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



Bug#620699: Version string problems are getting larger

2011-04-03 Thread Gordon Haverland
My latest upgrading of some packages (not upgrade, dist-upgrade or 
similar) is starting to complain about a bunch of other version 
number errors.

Gord




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