From: Jan Rękorajski Date: Fri, 8 Nov 2019 19:10:16 +0000 (+0100) Subject: - fix ucontext type name X-Git-Tag: auto/th/hddtemp-0.3-0.beta15.6 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=590701185df2f2842e6a9ce43f1177058c1aeaaf;p=packages%2Fhddtemp.git - fix ucontext type name - rel 6 --- diff --git a/hddtemp.spec b/hddtemp.spec index 0e37e4d..1be665f 100644 --- a/hddtemp.spec +++ b/hddtemp.spec @@ -1,5 +1,5 @@ %define subver beta15 -%define rel 5 +%define rel 6 Summary: HDD temperature sensor Summary(pl.UTF-8): Czujka temperatury dysku twardego Name: hddtemp @@ -16,6 +16,7 @@ Source3: %{name}d.sysconfig Source4: %{name}-pl.po Patch0: %{name}-reg_eip.patch Patch1: %{name}-ata-model.patch +Patch2: ucontext.patch URL: http://www.guzu.net/linux/hddtemp.php BuildRequires: automake BuildRequires: gettext-tools @@ -52,6 +53,7 @@ hddtemp w trybie demona. %setup -q -n %{name}-%{version}-%{subver} %patch0 -p1 %patch1 -p1 +%patch2 -p1 cp %{SOURCE4} po/pl.po echo 'pl' >> po/LINGUAS diff --git a/ucontext.patch b/ucontext.patch new file mode 100644 index 0000000..295cdc3 --- /dev/null +++ b/ucontext.patch @@ -0,0 +1,20 @@ +--- hddtemp-0.3-beta15/src/backtrace.c~ 2019-11-08 20:03:20.000000000 +0100 ++++ hddtemp-0.3-beta15/src/backtrace.c 2019-11-08 20:08:36.241726784 +0100 +@@ -36,7 +36,7 @@ + #define MAX_BTSIZE 64 + + void backtrace_handler(int n, siginfo_t *ist, void *extra) { +- static struct ucontext *puc; ++ static struct ucontext_t *puc; + static void *btinfo[MAX_BTSIZE]; + static char **messages = NULL; + static size_t btsize = 0; +@@ -53,7 +53,7 @@ + + #define SIC_CASE(c) case c: strerr = #c + +- puc = (struct ucontext *)extra; ++ puc = (struct ucontext_t *)extra; + switch(n) { + case SIGSEGV: + switch(ist->si_code) {