summaryrefslogtreecommitdiffstats
path: root/package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-07 23:20:30 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-13 22:59:52 +0200
commiteb4b00129ccea673f48c8872ea0a6947f1f904e4 (patch)
tree8199783522e981703c79b57d6dbef9856e399531 /package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch
parenta557aedad2d8b4735afe709e68ed58f7304580d8 (diff)
downloadbuildroot-eb4b00129ccea673f48c8872ea0a6947f1f904e4.tar.gz
buildroot-eb4b00129ccea673f48c8872ea0a6947f1f904e4.zip
clamav: reformat patches as Git-formatted patches
ClamAV is using Git upstream (https://github.com/Cisco-Talos/clamav-devel), so it makes sense to use Git-formatted patches. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch')
-rw-r--r--package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch b/package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch
new file mode 100644
index 0000000000..e99a9742ec
--- /dev/null
+++ b/package/clamav/0002-mbox-do-not-use-backtrace-if-using-uClibc-without-ba.patch
@@ -0,0 +1,34 @@
+From 053bac34b9f0f947c58fcdf80ac03d5a6b05aa12 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Mon, 7 May 2018 23:15:58 +0200
+Subject: [PATCH] mbox: do not use backtrace if using uClibc without backtrace
+ support
+
+Since uClibc can be configured without support for backtrace, disable
+the backtrace if we are building with a uClibc that was built without
+backtrace.
+
+This is a bit hacky, and would greatly benefit from a test in ./configure
+instead, but does nicely as a quick fix for now.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+---
+ libclamav/mbox.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libclamav/mbox.c b/libclamav/mbox.c
+index 71f540c0a..4851297a9 100644
+--- a/libclamav/mbox.c
++++ b/libclamav/mbox.c
+@@ -98,7 +98,7 @@
+ #include <features.h>
+ #endif
+
+-#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
++#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__)
+ #define HAVE_BACKTRACE
+ #endif
+ #endif
+--
+2.14.3
+
OpenPOWER on IntegriCloud