summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog2
-rw-r--r--debian/patches/04-no-prctl.patch16
-rw-r--r--debian/patches/series1
3 files changed, 19 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index e938cf9..3eef9de 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ rsyslog (7.3.8-4) UNRELEASED; urgency=low
* Add Build-Depends on bison so we can build twice in a row. "make clean"
removes the generated grammar/grammer.[ch].
+ * Another patch to fix build failures on architectures where prctl is not
+ available. (Closes: #703429)
-- Michael Biebl <biebl@debian.org> Thu, 21 Mar 2013 16:34:25 +0100
diff --git a/debian/patches/04-no-prctl.patch b/debian/patches/04-no-prctl.patch
new file mode 100644
index 0000000..00300f1
--- /dev/null
+++ b/debian/patches/04-no-prctl.patch
@@ -0,0 +1,16 @@
+Index: rsyslog/threads.c
+===================================================================
+--- rsyslog.orig/threads.c 2013-03-18 16:21:20.789144261 +0100
++++ rsyslog/threads.c 2013-03-21 16:31:05.424025586 +0100
+@@ -183,10 +183,10 @@
+ assert(pThis != NULL);
+ assert(pThis->pUsrThrdMain != NULL);
+
++# if HAVE_PRCTL && defined PR_SET_NAME
+ ustrncpy(thrdName+3, pThis->name, 20);
+ dbgOutputTID((char*)thrdName);
+
+-# if HAVE_PRCTL && defined PR_SET_NAME
+ /* set thread name - we ignore if the call fails, has no harsh consequences... */
+ if(prctl(PR_SET_NAME, thrdName, 0, 0, 0) != 0) {
+ DBGPRINTF("prctl failed, not setting thread name for '%s'\n", pThis->name);
diff --git a/debian/patches/series b/debian/patches/series
index 567658e..8b3eba3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
01-dont_create_db.patch
02-sys-gettid.patch
03-build-non-linux.patch
+04-no-prctl.patch