]> git.pld-linux.org Git - packages/hddtemp.git/commitdiff
- fix ucontext type name master auto/th/hddtemp-0.3-0.beta15.6
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 8 Nov 2019 19:10:16 +0000 (20:10 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 8 Nov 2019 19:10:32 +0000 (20:10 +0100)
- rel 6

hddtemp.spec
ucontext.patch [new file with mode: 0644]

index 0e37e4d9e01677e66fe2aab7077a2685e6f71ca4..1be665ff80291c8bdbd66e5f91f3e98f462d3a64 100644 (file)
@@ -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 (file)
index 0000000..295cdc3
--- /dev/null
@@ -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) {
This page took 0.507983 seconds and 4 git commands to generate.