[packages/hddtemp] - fix ucontext type name - rel 6
baggins
baggins at pld-linux.org
Fri Nov 8 20:10:52 CET 2019
commit 590701185df2f2842e6a9ce43f1177058c1aeaaf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Nov 8 20:10:16 2019 +0100
- fix ucontext type name
- rel 6
hddtemp.spec | 4 +++-
ucontext.patch | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletion(-)
---
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) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hddtemp.git/commitdiff/590701185df2f2842e6a9ce43f1177058c1aeaaf
More information about the pld-cvs-commit
mailing list