Your message dated Tue, 29 Jun 2021 20:55:17 +0200
with message-id <YNtslfh/lqi81...@ramacher.at>
and subject line Re: Bug#990277: unblock: feature-check/0.2.2-7
has caused the Debian Bug report #990277,
regarding unblock: feature-check/0.2.2-7
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
990277: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990277
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

This is a pre-approval request before I upload feature-check/0.2.2-7
to unstable to fix an RC bug.

[ Reason ]
See #990276 (https://bugs.debian.org/990276): Version comparisons may
return the wrong result.

[ Impact ]
If the feature-check command-line tool is used by other programs to
make sure that an installed program has a recent enough version of
a supported feature, the checks may fail for some versions containing
non-numeric characters (pre-release, patch, etc).

[ Tests ]
The patches include additions to the feature-check unit-test suite that
is run both at build time and as an autopkgtest.

[ Risks ]
Leaf package, not widely used yet; targeted fix, so hopefully
any risks are very low.

[ Checklist ]
  [x] all changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in testing

unblock feature-check/0.2.2-7
diff -Nru feature-check-0.2.2/debian/changelog 
feature-check-0.2.2/debian/changelog
--- feature-check-0.2.2/debian/changelog        2020-10-26 11:14:52.000000000 
+0200
+++ feature-check-0.2.2/debian/changelog        2021-06-24 15:33:07.000000000 
+0300
@@ -1,3 +1,10 @@
+feature-check (0.2.2-7) unstable; urgency=medium
+
+  * Add the cmp-num and cmp-rest upstream patches to fix some version
+    string comparisons. Closes: #990276
+
+ -- Peter Pentchev <r...@debian.org>  Thu, 24 Jun 2021 15:33:07 +0300
+
 feature-check (0.2.2-6) unstable; urgency=medium
 
   [ Michael Hudson-Doyle ]
diff -Nru feature-check-0.2.2/debian/patches/cmp-num.patch 
feature-check-0.2.2/debian/patches/cmp-num.patch
--- feature-check-0.2.2/debian/patches/cmp-num.patch    1970-01-01 
02:00:00.000000000 +0200
+++ feature-check-0.2.2/debian/patches/cmp-num.patch    2021-06-24 
15:30:21.000000000 +0300
@@ -0,0 +1,46 @@
+Description: Fix a 2 < 10 version int/string bug.
+Origin: upstream; 
https://gitlab.com/ppentchev/feature-check/-/commit/ed0da5159562fa37cf32386a1baf2a1114562822
+Bug-Debian: https://bugs.debian.org/990276
+Author: Peter Pentchev <r...@ringlet.net>
+Last-Update: 2021-06-24
+
+--- a/perl5/feature-check.pl
++++ b/perl5/feature-check.pl
+@@ -269,7 +269,7 @@
+       if ($na ne '') {
+               if ($nb ne '') {
+                       if ($nb != $na) {
+-                              return $na cmp $nb;
++                              return $na <=> $nb;
+                       }
+               } else {
+                       return 1;
+--- a/t/04-simple.t
++++ b/t/04-simple.t
+@@ -1,6 +1,6 @@
+ #!/usr/bin/perl
+ #
+-# Copyright (c) 2018  Peter Pentchev
++# Copyright (c) 2018, 2021  Peter Pentchev
+ # All rights reserved.
+ #
+ # Redistribution and use in source and binary forms, with or without
+@@ -89,6 +89,18 @@
+       ['base ge 3', 0],
+       ['base gt 3', 0],
+       ['base eq 3', 0],
++
++      ['base lt 10', 1],
++      ['base le 10', 1],
++      ['base ge 10', 0],
++      ['base gt 10', 0],
++      ['base eq 10', 0],
++
++      ['base lt 10.1', 1],
++      ['base le 10.1', 1],
++      ['base ge 10.1', 0],
++      ['base gt 10.1', 0],
++      ['base eq 10.1', 0],
+ );
+ 
+ my %c = env_init;
diff -Nru feature-check-0.2.2/debian/patches/cmp-rest.patch 
feature-check-0.2.2/debian/patches/cmp-rest.patch
--- feature-check-0.2.2/debian/patches/cmp-rest.patch   1970-01-01 
02:00:00.000000000 +0200
+++ feature-check-0.2.2/debian/patches/cmp-rest.patch   2021-06-24 
15:30:28.000000000 +0300
@@ -0,0 +1,62 @@
+Description: Fix a 3.0.beta2 < 3.0 version int/string bug.
+Origin: upstream; 
https://gitlab.com/ppentchev/feature-check/-/commit/59e618baff6836f281697561f5a9cfa22ccd28df
+Bug-Debian: https://bugs.debian.org/990276
+Author: Peter Pentchev <r...@ringlet.net>
+Last-Update: 2021-06-24
+
+--- a/perl5/feature-check.pl
++++ b/perl5/feature-check.pl
+@@ -282,7 +282,7 @@
+       if ($ra ne '') {
+               if ($rb ne '') {
+                       if ($ra ne $rb) {
+-                              return $ra <=> $rb;
++                              return $ra cmp $rb;
+                       }
+               } else {
+                       return 1;
+--- a/t/04-simple.t
++++ b/t/04-simple.t
+@@ -101,6 +101,42 @@
+       ['base ge 10.1', 0],
+       ['base gt 10.1', 0],
+       ['base eq 10.1', 0],
++
++      ['beta lt 1', 0],
++      ['beta le 1', 0],
++      ['beta eq 1', 0],
++      ['beta ge 1', 1],
++      ['beta gt 1', 1],
++
++      ['beta lt 3.0', 1],
++      ['beta le 3.0', 1],
++      ['beta eq 3.0', 0],
++      ['beta ge 3.0', 0],
++      ['beta gt 3.0', 0],
++
++      ['beta lt 3.0.beta1', 0],
++      ['beta le 3.0.beta1', 0],
++      ['beta eq 3.0.beta1', 0],
++      ['beta ge 3.0.beta1', 1],
++      ['beta gt 3.0.beta1', 1],
++
++      ['beta lt 3.0.beta2', 0],
++      ['beta le 3.0.beta2', 1],
++      ['beta eq 3.0.beta2', 1],
++      ['beta ge 3.0.beta2', 1],
++      ['beta gt 3.0.beta2', 0],
++
++      ['beta lt 3.0.beta3', 1],
++      ['beta le 3.0.beta3', 1],
++      ['beta eq 3.0.beta3', 0],
++      ['beta ge 3.0.beta3', 0],
++      ['beta gt 3.0.beta3', 0],
++
++      ['beta lt 3.0.0', 1],
++      ['beta le 3.0.0', 1],
++      ['beta eq 3.0.0', 0],
++      ['beta ge 3.0.0', 0],
++      ['beta gt 3.0.0', 0],
+ );
+ 
+ my %c = env_init;
diff -Nru feature-check-0.2.2/debian/patches/series 
feature-check-0.2.2/debian/patches/series
--- feature-check-0.2.2/debian/patches/series   2019-09-22 22:47:39.000000000 
+0300
+++ feature-check-0.2.2/debian/patches/series   2021-06-24 15:29:45.000000000 
+0300
@@ -1 +1,3 @@
 python-no-executable.patch
+cmp-num.patch
+cmp-rest.patch

Attachment: signature.asc
Description: PGP signature


--- End Message ---
--- Begin Message ---
On 2021-06-26 12:10:40 +0300, Peter Pentchev wrote:
> Control: tags -1 -moreinfo
> 
> On Fri, Jun 25, 2021 at 08:39:02PM +0200, Sebastian Ramacher wrote:
> > Control: tags -1 moreinfo confirmed
> > 
> > On 2021-06-24 15:42:28 +0300, Peter Pentchev wrote:
> > > Package: release.debian.org
> > > Severity: normal
> > > User: release.debian....@packages.debian.org
> > > Usertags: unblock
> > > 
> > > This is a pre-approval request before I upload feature-check/0.2.2-7
> > > to unstable to fix an RC bug.
> > 
> > Please go ahead and remove the moreinfo tag once the new version is
> > available in unstable.
> 
> Thanks!
> 
> unblock feature-check/0.2.2-7

feature-check will migrate on its own once armhf autopkgtests were run.
Added a hint to age it 7 days.

Cheers

> 
> G'luck,
> Peter
> 
> -- 
> Peter Pentchev  r...@ringlet.net r...@debian.org p...@storpool.com
> PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
> Key fingerprint 2EE7 A7A5 17FC 124C F115  C354 651E EFB0 2527 DF13



-- 
Sebastian Ramacher

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to