[Reproducible-commits] [dpkg] 07/13: libcompat: Check that HAVE_DECL_SYS_SIGLIST is 0 instead of undefined

Holger Levsen holger at layer-acht.org
Tue May 3 08:44:15 UTC 2016


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

holger pushed a commit to annotated tag 1.17.24
in repository dpkg.

commit 4e872b317ef6d69d3daab1058ddfa7a8940a06a6
Author: Guillem Jover <guillem at debian.org>
Date:   Wed Feb 4 18:46:12 2015 +0100

    libcompat: Check that HAVE_DECL_SYS_SIGLIST is 0 instead of undefined
    
    For declarations the autoconf test always defines the preprocessor
    symbol to either 0 or 1, contrary to other tests where it's either
    undefined or 1.
    
    Closes: #777044
    Based-on-patch-by: Alex Potapenko <opotapenko at gmail.com>
---
 debian/changelog       | 3 +++
 lib/compat/strsignal.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ad6b4e0..cf4df90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,9 @@ dpkg (1.17.24) UNRELEASED; urgency=low
     Namely octave3.2-info, octave3.0-info and polgen-doc. Closes: #776984
   * Do not accept unknown user or group names on «dpkg-statoverride --add».
     Regression introduced in dpkg 1.17.11. Closes: #775124
+  * Check that HAVE_DECL_SYS_SIGLIST is 0 instead of undefined, to fix a
+    build failure on uclibc based systems. Closes: #777044
+    Based on a patch by Alex Potapenko <opotapenko at gmail.com>.
 
   [ Updated manpages translations ]
   * German (Helge Kreutzmann).
diff --git a/lib/compat/strsignal.c b/lib/compat/strsignal.c
index 1f49701..265feb4 100644
--- a/lib/compat/strsignal.c
+++ b/lib/compat/strsignal.c
@@ -28,7 +28,7 @@
 
 #define _(str) gettext(str)
 
-#ifndef HAVE_DECL_SYS_SIGLIST
+#if !HAVE_DECL_SYS_SIGLIST
 const char *const sys_siglist[] = {
 	NULL,		/* 0 */
 	"SIGHUP",	/* 1 */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list