[DRE-commits] [ruby-unf-ext] 01/01: Fix build with GCC 6 on when char is not signed by default

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Apr 11 18:17:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository ruby-unf-ext.

commit 7bb1a58cfbb0f4f63a93008c05a5136d28b9f5ed
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Tue Apr 11 14:49:17 2017 -0300

    Fix build with GCC 6 on when char is not signed by default
    
    Closes: #859463
---
 debian/changelog                                   |  8 +++++
 ...-patch-to-fix-compile-issues-on-ARM-and-G.patch | 40 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 49 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b11682f..7f75cbd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ruby-unf-ext (0.0.7.2-3) unstable; urgency=medium
+
+  * Team upload
+  * Apply upstream patch to fix build with GCC 6 on architectures that don't
+    have char signed by default (Closes: #859463)
+
+ -- Antonio Terceiro <terceiro at debian.org>  Tue, 11 Apr 2017 14:48:23 -0300
+
 ruby-unf-ext (0.0.7.2-2) unstable; urgency=medium
 
   * Team upload.
diff --git a/debian/patches/0004-Integrate-a-patch-to-fix-compile-issues-on-ARM-and-G.patch b/debian/patches/0004-Integrate-a-patch-to-fix-compile-issues-on-ARM-and-G.patch
new file mode 100644
index 0000000..15e8224
--- /dev/null
+++ b/debian/patches/0004-Integrate-a-patch-to-fix-compile-issues-on-ARM-and-G.patch
@@ -0,0 +1,40 @@
+From: Akinori MUSHA <knu at idaemons.org>
+Date: Thu, 6 Apr 2017 18:21:03 +0900
+Subject: Integrate a patch to fix compile issues on ARM and GCC 6
+
+Fixes #15.
+---
+ ext/unf_ext/unf/normalizer.hh | 6 +++---
+ ext/unf_ext/unf/table.hh      | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/ext/unf_ext/unf/normalizer.hh b/ext/unf_ext/unf/normalizer.hh
+index b19b99c..d20244b 100644
+--- a/ext/unf_ext/unf/normalizer.hh
++++ b/ext/unf_ext/unf/normalizer.hh
+@@ -17,9 +17,9 @@ namespace UNF {
+ 
+   public:
+     Normalizer()
+-      : nf_d(TABLE::NODES, TABLE::CANONICAL_DECOM_ROOT, TABLE::STRINGS),
+-	nf_kd(TABLE::NODES, TABLE::COMPATIBILITY_DECOM_ROOT, TABLE::STRINGS),
+-	nf_c(TABLE::NODES, TABLE::CANONICAL_COM_ROOT, TABLE::STRINGS),
++      : nf_d(TABLE::NODES, TABLE::CANONICAL_DECOM_ROOT, (const char *)TABLE::STRINGS),
++	nf_kd(TABLE::NODES, TABLE::COMPATIBILITY_DECOM_ROOT, (const char *)TABLE::STRINGS),
++	nf_c(TABLE::NODES, TABLE::CANONICAL_COM_ROOT, (const char *)TABLE::STRINGS),
+ 	nf_c_qc(TABLE::NODES, TABLE::NFC_ILLEGAL_ROOT),
+ 	nf_kc_qc(TABLE::NODES, TABLE::NFKC_ILLEGAL_ROOT),
+ 	ccc(TABLE::NODES, TABLE::CANONICAL_CLASS_ROOT)
+diff --git a/ext/unf_ext/unf/table.hh b/ext/unf_ext/unf/table.hh
+index 2b45703..ecfe147 100644
+--- a/ext/unf_ext/unf/table.hh
++++ b/ext/unf_ext/unf/table.hh
+@@ -6297,7 +6297,7 @@ const unsigned NODES[]={
+ 0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000,
+ 0xFF000000,0xFF000000,0xFF000000,0xFF000000,0xFF000000};
+ 
+-const char STRINGS[]={
++const signed char STRINGS[]={
+  -27,-113, -81, -27, -66,-105, -27,-106, -74, -25,-108, -77, -26, -70,-128, -27,-112,-120, -25, -87,
+  -70, -25, -90,-127, -26,-116,-121, -23,-127,-118, -26,-115,-107, -26,-118,-107, -26, -68,-108, -27,
+ -112, -71, -27, -93, -80, -24, -78, -87, -25, -75,-126, -27,-120, -99, -26,-106, -80, -27, -66,-116,
diff --git a/debian/patches/series b/debian/patches/series
index 2b1cc2b..eb91451 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Drop-Bundler-depndencies.patch
 0002-force-using-CXX-instead-of-CC.patch
 0003-Replace-git-execution-in-gemspec.patch
+0004-Integrate-a-patch-to-fix-compile-issues-on-ARM-and-G.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-unf-ext.git



More information about the Pkg-ruby-extras-commits mailing list