summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Tille <tille@debian.org>2022-01-24 16:20:15 +0100
committerAndreas Tille <tille@debian.org>2022-01-24 16:20:15 +0100
commit001f421dd453d8ec138f9df6de1863e85dae2a9f (patch)
treebc23be55838482707923cf368b73c16a885e2217
parent69412dcbe8071e023016987dbb4e120ca72da197 (diff)
Avoid clash between Perl headers' definition of YYEMPTY as a macro and Rost Lab headers' use of it as an enum name
-rw-r--r--debian/changelog2
-rw-r--r--debian/patches/no_clash_YYEMPTY.patch18
-rw-r--r--debian/patches/series1
3 files changed, 21 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 5dfc9cd..575e58f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ librg-blast-parser-perl (0.03-8) UNRELEASED; urgency=medium
* Standards-Version: 4.6.0 (routine-update)
* Add missing build dependency on dh addon.
* Versioned (Build-)Depends: librostlab-blast0-dev (>= 1.0.1-12)
+ * Avoid clash between Perl headers' definition of YYEMPTY as a
+ macro and Rost Lab headers' use of it as an enum name
-- Andreas Tille <tille@debian.org> Sat, 22 Jan 2022 07:13:18 +0100
diff --git a/debian/patches/no_clash_YYEMPTY.patch b/debian/patches/no_clash_YYEMPTY.patch
new file mode 100644
index 0000000..502fb61
--- /dev/null
+++ b/debian/patches/no_clash_YYEMPTY.patch
@@ -0,0 +1,18 @@
+Author: Andreas Tille <tille@debian.org>
+ Aaron M. Ucko <ucko@debian.org>
+Last-Update: Sat, 22 Jan 2022 07:13:18 +0100
+Origin: https://lists.debian.org/debian-med/2022/01/msg00080.html
+Description: Avoid clash between Perl headers' definition of
+ YYEMPTY as a macro and Rost Lab headers' use of it as an enum name
+
+--- a/Parser.xs
++++ b/Parser.xs
+@@ -11,6 +11,8 @@ extern "C" {
+ }
+ #endif
+
++/* Do not clash with /usr/lib/x86_64-linux-gnu/perl/5.32/CORE/parser.h */
++#undef YYEMPTY
+ /* include your class headers here */
+ #include <rostlab/blast-parser-driver.h>
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..381dfb7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+no_clash_YYEMPTY.patch