From f4c2789b17ef61c357ecf596af59f560f899f1c9 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Sat, 5 Aug 2017 16:58:26 +0000 Subject: [PATCH] hddtemp: fix build (glibc-2.26) --- srcpkgs/hddtemp/patches/glibc-2.26.patch | 20 ++++++++++++++++++++ srcpkgs/hddtemp/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/hddtemp/patches/glibc-2.26.patch diff --git a/srcpkgs/hddtemp/patches/glibc-2.26.patch b/srcpkgs/hddtemp/patches/glibc-2.26.patch new file mode 100644 index 00000000000..e182cf1f6f0 --- /dev/null +++ b/srcpkgs/hddtemp/patches/glibc-2.26.patch @@ -0,0 +1,20 @@ +--- src/backtrace.c.orig 2017-08-05 16:57:00.000000000 +0000 ++++ src/backtrace.c 2017-08-05 16:57:21.552276793 +0000 +@@ -42,7 +42,7 @@ + #define MAX_BTSIZE 64 + + void backtrace_handler(int n, siginfo_t *ist, void *extra) { +- static struct ucontext *puc; ++ static ucontext_t *puc; + static void *btinfo[MAX_BTSIZE]; + static char **messages = NULL; + static size_t btsize = 0; +@@ -58,7 +58,7 @@ + + #define SIC_CASE(c) case c: strerr = #c + +- puc = (struct ucontext *)extra; ++ puc = (ucontext_t *)extra; + switch(n) { + case SIGSEGV: + switch(ist->si_code) { diff --git a/srcpkgs/hddtemp/template b/srcpkgs/hddtemp/template index db11935054f..f42cd88261b 100644 --- a/srcpkgs/hddtemp/template +++ b/srcpkgs/hddtemp/template @@ -1,7 +1,7 @@ # Template file for 'hddtemp' pkgname=hddtemp version=0.3.beta15 -revision=1 +revision=2 wrksrc="${pkgname}-${version/.beta/-beta}" build_style=gnu-configure configure_args="--with-db-path=/usr/share/hddtemp/hddtemp.db"