From 730e4829d8fd5627ff29b57ad157dbad949056cd Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Thu, 21 Mar 2013 16:41:07 +0100 Subject: Fix build failures on architectures where prctl is not available. (Closes: #703429) --- debian/changelog | 2 ++ debian/patches/04-no-prctl.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 3 files changed, 19 insertions(+) create mode 100644 debian/patches/04-no-prctl.patch (limited to 'debian') 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 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 -- cgit v1.2.3