[Pkg-wmaker-commits] [wmcoincoin] 29/87: debian/patches: (incompatible_struct_type.patch) Reorder #includes to get compatible types of struct re_pattern_buffer. Thanks to Michael Tautschnig <mt at debian.org> (Closes: #702439).

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Aug 28 17:27:33 UTC 2015


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

dtorrance-guest pushed a commit to branch master
in repository wmcoincoin.

commit bcc114a61f9f5de698416f227a8a2845399983f5
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Fri Oct 24 22:52:03 2014 -0500

    debian/patches: (incompatible_struct_type.patch) Reorder #includes to get
    compatible types of struct re_pattern_buffer.  Thanks to Michael Tautschnig
    <mt at debian.org> (Closes: #702439).
---
 debian/patches/incompatible_struct_type.patch | 28 +++++++++++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/incompatible_struct_type.patch b/debian/patches/incompatible_struct_type.patch
new file mode 100644
index 0000000..ab58987
--- /dev/null
+++ b/debian/patches/incompatible_struct_type.patch
@@ -0,0 +1,28 @@
+Description: inconsistent order of #include causes incompatible struct types
+ While building the package using our research compiler infrastructure we
+ noticed incompatible types of struct re_pattern_buffer (from regex.h) being
+ used within the declaration of GeneralPrefs Prefs.
+ .
+ The root cause of this problem is that src/cc_queue.c includes system headers
+ *before* local header files, thus _GNU_SOURCE will not be set when processing
+ regex.h. In src/board.c, however, local header files are processed first,
+ resulting in different expansions of global.h.
+ .
+ Best,
+ Michael
+Author: Michael Tautschnig <mt at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702439
+Last-Update: 2014-10-24
+
+--- a/src/cc_queue.c
++++ b/src/cc_queue.c
+@@ -1,7 +1,7 @@
+-#include <sys/types.h>
+-#include <sys/wait.h>
+ #include "coincoin.h"
+ #include "site.h"
++#include <sys/types.h>
++#include <sys/wait.h>
+ #include <libintl.h>
+ #define _(String) gettext (String)
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 0b8b81f..afb296f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -16,3 +16,4 @@ parentheses.patch
 int-to-pointer-cast.patch
 unused-parameter.patch
 incompatible_pointer_type.patch
+incompatible_struct_type.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcoincoin.git



More information about the Pkg-wmaker-commits mailing list