From e6257f36baa36a4b73bcd998e77b209fe93352f4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 25 Apr 2016 08:57:27 +0200 Subject: [PATCH] duperemove: unbreak musl builds. --- srcpkgs/duperemove/patches/musl.patch | 37 +++++++++++++++++++++++++++ srcpkgs/duperemove/template | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/duperemove/patches/musl.patch diff --git a/srcpkgs/duperemove/patches/musl.patch b/srcpkgs/duperemove/patches/musl.patch new file mode 100644 index 00000000000..c88ba0fad95 --- /dev/null +++ b/srcpkgs/duperemove/patches/musl.patch @@ -0,0 +1,37 @@ +--- util.c.orig 2016-04-25 08:52:55.441658244 +0200 ++++ util.c 2016-04-25 08:53:56.314297430 +0200 +@@ -24,7 +24,9 @@ + #include + #include + #include ++#ifdef __GLIBC__ + #include ++#endif + #include + + #include "debug.h" +@@ -125,12 +127,14 @@ void print_stack_trace(void) + char **messages = (char **)NULL; + int i, trace_size = 0; + ++#ifdef __GLIBC__ + trace_size = backtrace(trace, 16); + messages = backtrace_symbols(trace, trace_size); + printf("[stack trace follows]\n"); + for (i=0; i < trace_size; i++) + printf("%s\n", messages[i]); + free(messages); ++#endif + } + + void record_start(struct elapsed_time *e, const char *name) +--- util.h.orig 2016-04-25 08:56:23.538843339 +0200 ++++ util.h 2016-04-25 08:56:38.194997238 +0200 +@@ -2,6 +2,7 @@ + #define __UTIL_H__ + + #include ++#include + + /* controlled by user options, turns pretty print on if true. */ + extern int human_readable; diff --git a/srcpkgs/duperemove/template b/srcpkgs/duperemove/template index 956eb507153..ffa06582bb6 100644 --- a/srcpkgs/duperemove/template +++ b/srcpkgs/duperemove/template @@ -1,7 +1,7 @@ # Template file for 'duperemove' pkgname=duperemove version=0.10 -revision=1 +revision=2 short_desc="Tools for deduping file systems" maintainer="Enno Boland " hostmakedepends="pkg-config"