[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986157: marked as done (unblock: libchemistry-opensmiles-perl/0.4.3-2)



Your message dated Thu, 01 Apr 2021 11:38:40 +0000
with message-id <E1lRveq-0007rB-Po@respighi.debian.org>
and subject line unblock libchemistry-opensmiles-perl
has caused the Debian Bug report #986157,
regarding unblock: libchemistry-opensmiles-perl/0.4.3-2
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 owner@bugs.debian.org
immediately.)


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

Dear release-team,

I am seeking pre-approval to upload libchemistry-opensmiles-perl/0.4.3-2.

[ Reason ]
libchemistry-opensmiles-perl/0.4.3-1 has a bug which has been fixed
upstream (also by me). The bug is in code logic detecting aromatic bonds
in chemical compounds, and as such is not specific to Debian. Fix has
been released in 0.4.5. libchemistry-opensmiles-perl/0.4.3-2 fixes this
bug in unstable via patch.

[ Impact ]
Without the fix, users of libchemistry-opensmiles-perl will observe
false-negatives in aromatic bond detection.

[ Tests ]
* Built on clean sid chroot;
* Upstream regression test for the bug passes.

[ Risks ]
Changes are minimal and are unlikely to affect other packages
negatively. Currently libchemistry-opensmiles-perl is a leaf package in
Debian.

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

unblock libchemistry-opensmiles-perl/0.4.3-2

Best,
Andrius

diff -Nru libchemistry-opensmiles-perl-0.4.3/debian/changelog libchemistry-opensmiles-perl-0.4.3/debian/changelog
--- libchemistry-opensmiles-perl-0.4.3/debian/changelog	2021-01-28 05:16:40.000000000 -0500
+++ libchemistry-opensmiles-perl-0.4.3/debian/changelog	2021-03-30 07:23:23.000000000 -0400
@@ -1,3 +1,10 @@
+libchemistry-opensmiles-perl (0.4.3-2) unstable; urgency=medium
+
+  * Applying upstream commit 6b8267f0bbc87d877bce87bfd28d4538c3f95ee5 as
+    a patch fixing detection of aromatic bonds.
+
+ -- Andrius Merkys <merkys@debian.org>  Tue, 30 Mar 2021 07:23:23 -0400
+
 libchemistry-opensmiles-perl (0.4.3-1) unstable; urgency=medium
 
   * New upstream version 0.4.3
diff -Nru libchemistry-opensmiles-perl-0.4.3/debian/patches/6b8267f0bbc87d877bce87bfd28d4538c3f95ee5.patch libchemistry-opensmiles-perl-0.4.3/debian/patches/6b8267f0bbc87d877bce87bfd28d4538c3f95ee5.patch
--- libchemistry-opensmiles-perl-0.4.3/debian/patches/6b8267f0bbc87d877bce87bfd28d4538c3f95ee5.patch	1969-12-31 19:00:00.000000000 -0500
+++ libchemistry-opensmiles-perl-0.4.3/debian/patches/6b8267f0bbc87d877bce87bfd28d4538c3f95ee5.patch	2021-03-30 07:19:40.000000000 -0400
@@ -0,0 +1,36 @@
+From 6b8267f0bbc87d877bce87bfd28d4538c3f95ee5 Mon Sep 17 00:00:00 2001
+From: Andrius Merkys <andrius.merkys@gmail.com>
+Date: Thu, 25 Mar 2021 13:28:22 +0200
+Subject: [PATCH] Fixing a bug due to incorrectly identified aromatic bond.
+
+---
+ lib/Chemistry/OpenSMILES/Parser.yp | 2 +-
+ t/06_write.t                       | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/Chemistry/OpenSMILES/Parser.yp b/lib/Chemistry/OpenSMILES/Parser.yp
+index 8094826..f0e0a13 100644
+--- a/lib/Chemistry/OpenSMILES/Parser.yp
++++ b/lib/Chemistry/OpenSMILES/Parser.yp
+@@ -60,7 +60,7 @@ chain: atom
+ 
+             $_[2]->{graph}->add_edge( $_[1]->{last}, $_[2] );
+ 
+-            if( is_aromatic $_[1]->{last} && is_aromatic $_[1]->{last} ) {
++            if( is_aromatic $_[1]->{last} && is_aromatic $_[2] ) {
+                 $_[2]->{graph}->set_edge_attribute( $_[1]->{last},
+                                                     $_[2],
+                                                     'bond',
+diff --git a/t/06_write.t b/t/06_write.t
+index aee54c5..c0f4656 100644
+--- a/t/06_write.t
++++ b/t/06_write.t
+@@ -19,6 +19,8 @@ my @cases = (
+     # Chirality information is preserved:
+     [ 'N[C@](Br)(O)C', 'N([C@](Br)(O)(C))' ],
+     [ 'N[C@@](Br)(O)C', 'N([C@@](Br)(O)(C))' ],
++    # A regression test for previously incorrectly identified aromatic bond:
++    [ 'c1(c(cccc1)F)C(=O)[O-]', 'c:1(:c(:c(:c(:c(:c:1))))(F))(C(=O)([O-]))' ],
+ );
+ 
+ plan tests => 2 * scalar @cases;
diff -Nru libchemistry-opensmiles-perl-0.4.3/debian/patches/series libchemistry-opensmiles-perl-0.4.3/debian/patches/series
--- libchemistry-opensmiles-perl-0.4.3/debian/patches/series	1969-12-31 19:00:00.000000000 -0500
+++ libchemistry-opensmiles-perl-0.4.3/debian/patches/series	2021-03-30 07:19:55.000000000 -0400
@@ -0,0 +1 @@
+6b8267f0bbc87d877bce87bfd28d4538c3f95ee5.patch

--- End Message ---
--- Begin Message ---
Unblocked.

--- End Message ---

Reply to: