2 Commits

Author SHA256 Message Date
bc0520570b Accepting request 1313366 from Base:System
- Fix patch powerd-2.0.2.dif
  * saved signal function has int aka the signal as argument

OBS-URL: https://build.opensuse.org/request/show/1313366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerd?expand=0&rev=4
2025-10-24 15:24:13 +00:00
1f9f447b82 .
OBS-URL: https://build.opensuse.org/package/show/Base:System/powerd?expand=0&rev=13
2025-10-24 09:02:41 +00:00
4 changed files with 30 additions and 2 deletions

15
powerd-2.0.2-gcc14.patch Normal file
View File

@@ -0,0 +1,15 @@
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- configure
+++ configure 2024-11-07 11:59:11.130929932 +0000
@@ -659,7 +659,7 @@ cat > conftest.$ac_ext << EOF
#line 661 "configure"
#include "confdefs.h"
-
+int
main(){return(0);}
EOF
if { (eval echo configure:666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then

View File

@@ -160,7 +160,7 @@
+#ifdef NEWINIT
+ struct init_request req;
+ int success = 0;
+ void (*save_sigalrm)();
+ void (*save_sigalrm)(int);
+#endif
errno = 0;

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Oct 24 09:01:46 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Fix patch powerd-2.0.2.dif
* saved signal function has int aka the signal as argument
-------------------------------------------------------------------
Thu Nov 7 12:00:59 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add patch powerd-2.0.2-gcc14.patch
* Make it build even with gcc14
-------------------------------------------------------------------
Thu Feb 29 14:47:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package powerd
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,7 @@ Source0: powerd-%{version}.tar.bz2
Source2: powerd.service
Patch0: powerd-%{version}.dif
Patch1: powerd-%{version}-getaddrinfo.patch
Patch2: powerd-%{version}-gcc14.patch
%if %{undefined _unitdir}
%{expand: %%global %_unitdir %(pkg-config systemd --variable=systemdsystemunitdir)}
%endif