SHA256
1
0
forked from pool/powerman

53 Commits

Author SHA256 Message Date
c67995ec21 Accepting request 1290019 from hardware
OBS-URL: https://build.opensuse.org/request/show/1290019
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=35
2025-07-03 10:10:41 +00:00
633aaeff2a - Add patch httppower-redfishpower-Curl_easy_setopt-Expects-long-int.patch
* Fixes build with curl 1.84.x. 
- Use -std=gnu17 on SLES16 and higher to fix build with gcc-15.

OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=58
2025-07-02 16:01:50 +00:00
89e0c8d05f Accepting request 1202974 from hardware
OBS-URL: https://build.opensuse.org/request/show/1202974
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=34
2024-09-25 19:53:08 +00:00
8cedcdd09f - Update to version 2.4.4:
* powerman: fix segfault if unspecified host reports status
  * redfishpower: do not report errors on dependent hosts
  * Update hostlist library to fix potential array out of bounds error.

OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=56
2024-09-24 13:27:46 +00:00
30058a16a6 Accepting request 1189659 from hardware
OBS-URL: https://build.opensuse.org/request/show/1189659
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=33
2024-07-26 14:15:50 +00:00
0e3ea32d04 Accepting request 1175369 from hardware
OBS-URL: https://build.opensuse.org/request/show/1175369
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=32
2024-05-21 16:35:37 +00:00
59a0432830 Accepting request 1174075 from home:ateixeira:branches:hardware
- Update to version 2.4.2:
  * New features
    * redfishpower: cache host resolution lookups (#190)
    * redfishpower: support new --resolve-hosts option (#188)
    * redfishpower: support message timeout config (#186)
  * Fixes
    * redfishpower: increase default message timeout (#191)
    * redfishpower: output more detailed error messages (#183)
- Changelog for 2.4.1 and 2.4.0:
  * Too many changes, see NEWS.md
- Removed patches:
  * service-dynamic-user-autofiles.patch
  * service-dynamic-user-configure.patch
- Refreshed patches:
  * Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
  * harden_powerman.service.patch

OBS-URL: https://build.opensuse.org/request/show/1174075
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=52
2024-05-20 17:13:20 +00:00
4f94b2024e Accepting request 1156139 from hardware
OBS-URL: https://build.opensuse.org/request/show/1156139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=31
2024-03-07 21:02:49 +00:00
02fa94d5e8 Accepting request 1153318 from home:dimstar:rpm4.20:p
Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1153318
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=50
2024-03-07 20:40:09 +00:00
64c4fb60d1 Accepting request 1089546 from hardware
OBS-URL: https://build.opensuse.org/request/show/1089546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=30
2023-05-29 20:47:50 +00:00
3e8a4a586e Accepting request 1083575 from home:ateixeira:branches:hardware
- Version update to 2.3.27
  * Add redfish support for Cray r272z30, Cray windom, and Supermicro
  * H12DSG-O-CPU (#55, #47)
  * CI: Enable github workflow (#59, #58, #57, #56)
  * Misc fixes (#54, #52, #50, #46)
- Add file permissions for %{_tmpfilesdir}/powerman.conf
- Modified patch service-dynamic-user-configure.patch (refreshed)

OBS-URL: https://build.opensuse.org/request/show/1083575
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=48
2023-05-29 10:31:38 +00:00
4989f89de4 Accepting request 1069399 from hardware
- Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
  Replace deprecated usmHMACMD5AuthProtocol Protocol by
  SNMP_DEFAULT_AUTH_PROTO.

- Utilize sysuser infrastructure to set user/group powerman. (forwarded request 1069386 from eeich)

OBS-URL: https://build.opensuse.org/request/show/1069399
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=29
2023-03-04 21:43:54 +00:00
91721ca628 Accepting request 1069386 from home:eeich:branches:hardware
- Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
  Replace deprecated usmHMACMD5AuthProtocol Protocol by
  SNMP_DEFAULT_AUTH_PROTO.

- Utilize sysuser infrastructure to set user/group powerman.

OBS-URL: https://build.opensuse.org/request/show/1069386
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=46
2023-03-04 10:36:54 +00:00
aa3833e43c Accepting request 1057940 from home:pgajdos
- fix [bsc#1185071] -- PIDFile under /run

OBS-URL: https://build.opensuse.org/request/show/1057940
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=45
2023-01-16 09:40:20 +00:00
8345a32795 Accepting request 932050 from hardware
OBS-URL: https://build.opensuse.org/request/show/932050
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=28
2021-11-18 09:34:50 +00:00
fc8a2c49d1 Accepting request 931593 from home:eeich:branches:hardware
- Utilize sysuser infrastructure to set user/group powerman.

OBS-URL: https://build.opensuse.org/request/show/931593
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=44
2021-11-18 03:02:18 +00:00
5781b036d7 Accepting request 930777 from hardware
OBS-URL: https://build.opensuse.org/request/show/930777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=27
2021-11-11 20:38:05 +00:00
02666d7b72 Accepting request 926704 from home:jsegitz:branches:systemdhardening:hardware
Automatic systemd hardening effort by the security team. This has not been tested. For details please see https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort

OBS-URL: https://build.opensuse.org/request/show/926704
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=43
2021-11-11 04:32:20 +00:00
4a990f8b57 Accepting request 899374 from hardware
OBS-URL: https://build.opensuse.org/request/show/899374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=26
2021-06-11 20:30:44 +00:00
91fa377cbb Accepting request 892655 from home:pgajdos
- version update to 2.3.26
  * Log power state changes to syslog (Olaf Faaland, PR #37)
  * Fix default systemd unit file path for 'make distcheck'
  * Add etc/rancid-cisco-poe.dev (Daniel Rich, PR #28)
  * Add etc/openbmc.dev (Albert Chu, PR #33)
  * Add etc/kvm.dev & etc/kvm-ssh.dev (tisbeok, PR #8)
  * Fix misinterpretation of error strings in ipmipower.dev.
- fix [bsc#1185180] -- PIDFile under /run
- modified patches
  % service-dynamic-user-autofiles.patch (refreshed)
  % service-dynamic-user-configure.patch (refreshed)

OBS-URL: https://build.opensuse.org/request/show/892655
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=41
2021-06-11 01:38:09 +00:00
b68806f866 Accepting request 601076 from hardware
OBS-URL: https://build.opensuse.org/request/show/601076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=25
2018-04-26 11:38:53 +00:00
Philipp Seiler
3ed1f41ff2 Accepting request 601041 from home:eeich:branches:hardware
- For SLE-12 set user/group to daemon/root for backward
  compatibility.

- Minor specfile cosmetics:
  * Simplified the entry for %{_sysconfdir}/powerman.

OBS-URL: https://build.opensuse.org/request/show/601041
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=39
2018-04-25 23:42:02 +00:00
b1c53f06fd Accepting request 516227 from hardware
- This package should not provide the user/group powerman
  as it is the only user of this group: powermand runs as
  this user/group and writes its data as this user/group.
  This gives the sysadmin some control over who to give
  access. There is no other application requiring this 
  user/group.

- run systemd-tmpfiles --create ... before starting service (bsc#1053481). (forwarded request 516226 from eeich)

OBS-URL: https://build.opensuse.org/request/show/516227
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=24
2017-08-12 18:29:14 +00:00
e476545775 Accepting request 516226 from home:eeich:branches:hardware
- This package should not provide the user/group powerman
  as it is the only user of this group: powermand runs as
  this user/group and writes its data as this user/group.
  This gives the sysadmin some control over who to give
  access. There is no other application requiring this 
  user/group.

- run systemd-tmpfiles --create ... before starting service (bsc#1053481).

OBS-URL: https://build.opensuse.org/request/show/516226
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=37
2017-08-11 20:02:07 +00:00
a550feb55a Accepting request 505938 from home:jjolly:hpc
Now using powerman:powerman user for systemd service and daemon

OBS-URL: https://build.opensuse.org/request/show/505938
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=36
2017-07-21 18:03:24 +00:00
3b6d25eadd Accepting request 503994 from home:jjolly:hpc
Now using powerman:powerman user for systemd service and daemon

OBS-URL: https://build.opensuse.org/request/show/503994
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=35
2017-06-17 14:18:01 +00:00
d84abce5ee Accepting request 493053 from hardware
1

OBS-URL: https://build.opensuse.org/request/show/493053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=23
2017-05-16 12:38:13 +00:00
baad07ec81 Accepting request 487040 from home:msmeissn:branches:hardware
- prequire daemon user for new factory userhandling

OBS-URL: https://build.opensuse.org/request/show/487040
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=33
2017-05-05 16:51:40 +00:00
22f6d790ce Accepting request 459512 from hardware
1

OBS-URL: https://build.opensuse.org/request/show/459512
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=22
2017-03-12 18:58:54 +00:00
4530da9a5e Accepting request 457511 from home:eeich:branches:hardware
- Create /usr/lib/tmpfiles.d/powerman.conf:
  Add systemd handling for temporary directory /var/run/powerman.

OBS-URL: https://build.opensuse.org/request/show/457511
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=31
2017-02-21 14:04:25 +00:00
9ea6d2d5c2 Accepting request 454085 from hardware
1

OBS-URL: https://build.opensuse.org/request/show/454085
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=21
2017-02-05 14:50:02 +00:00
Philipp Seiler
e851174031 Accepting request 450971 from home:eeich:branches:hardware
- Added support for snmp, tcpwrappers and genders to be compatible
  with the powerman package from openHPC.community (latter one is 
  currently disabled).
  To use tcpwrappers, they need to be enabled in /etc/powerman/powerman.conf
  - the default is 'off'.
- Don't create /run/powerman - systemd will do this for us.

OBS-URL: https://build.opensuse.org/request/show/450971
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=29
2017-02-02 08:40:56 +00:00
5a4411deab Accepting request 344748 from hardware
1

OBS-URL: https://build.opensuse.org/request/show/344748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=20
2015-11-17 13:23:10 +00:00
Ismail Dönmez
1170c1133b Accepting request 344286 from home:pluskalm:branches:hardware
- Update to 2.3.24
  * Don't package /var/run/powerman; let systemd manage it 
		[TOSS-2987]
  * Cleanup: drop trailing whitespace
- Changes for 2.3.23
  * Build: silence CC lines, fix AC_LANG_CONFTEST warnings, fix 
		$(EXEEXT) warnings.
	*	Build: install System V init scripts if 
		--with-systemdsystemunitdir is not configured and include both 
		in EXTRA_DIST.
	* Build: re-enable 'make check' unit tests.
	* Build: fix some 'make distcheck' issues, but until unit tests 
		are fixed to find *.exp and *.conf files in $(srcdir), this will still fail.
	* RPM: configure genders, httppower, snmppower, and tcp-wrappers 
		unconditionally; update URL.
- Cleanups spec file with spec-cleaner
- Drop powerman.service and use bundled one

OBS-URL: https://build.opensuse.org/request/show/344286
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=27
2015-11-16 13:42:29 +00:00
f36fcce438 Accepting request 292101 from hardware
1

OBS-URL: https://build.opensuse.org/request/show/292101
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=19
2015-03-23 11:18:03 +00:00
814586525e Accepting request 290399 from home:posophe:branches:hardware
update + systemd

OBS-URL: https://build.opensuse.org/request/show/290399
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=25
2015-03-20 19:14:19 +00:00
23561f5c71 Accepting request 245033 from hardware
1

OBS-URL: https://build.opensuse.org/request/show/245033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=17
2014-08-20 08:50:55 +00:00
Tomáš Chvátal
00d888b67e Accepting request 243622 from home:sfalken:branches:hardware
- Updates in 2.3.16
  * Fix duplicate node name (Issue 35)
    Pulled in another hotlist fix (Mark Grondona)
  * Fix powerman stonith OFF should verify plug state (chaos bz 1439)
- Updated powerman-pidfile.patch to reflect /run instead of /var/run
   

- Updated to 2.3.16
  * Changed /var/run to /run in .spec to fix rpmlint check failures
    Updated URL in .spec file
  * Added:
	powerman-2.3.16.tar.gz
  * Removed:
	powerman-2.3.9.tar.bz2
  * Updated:
	powerman.spec

OBS-URL: https://build.opensuse.org/request/show/243622
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=23
2014-08-18 09:18:36 +00:00
Stephan Kulow
66560ca5a2 Accepting request 95947 from hardware
- the COPYING is GPL-2.0+ (forwarded request 95931 from coolo)

OBS-URL: https://build.opensuse.org/request/show/95947
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=13
2011-12-14 13:34:31 +00:00
Ismail Dönmez
9db0d0a01a Accepting request 95931 from devel:openSUSE:Factory:for-legal
- the COPYING is GPL-2.0+

OBS-URL: https://build.opensuse.org/request/show/95931
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=21
2011-12-08 13:19:58 +00:00
Sascha Peilicke
5202ccda21 Autobuild autoformatter for 77370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=11
2011-07-29 07:55:48 +00:00
Sascha Peilicke
3218c8c589 Accepting request 77370 from hardware
- Update to version 2.3.9:
  * Add MIB support to snmppower.
  * Add eaton-epdu-blue-switched.dev.
  * Add support for SNMP power controllers.
  * Add SNMP dev files for 8-port APC, 8-port Baytech, and 20 port
    Eaton Revelation PDU.
  * Add support for APC 7900 revision 3 firmware.
  * Add support for Appro Greenblade.
  * Add support for APC 7920.
  * Add Support for ranged beacon on/off device scripts, and beacon
    support for ipmipower.
- Make heartbeat support optional as it is dropped now.

OBS-URL: https://build.opensuse.org/request/show/77370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=10
2011-07-29 07:55:39 +00:00
3d43617f6b Accepting request 77369 from home:sbrabec:branches:hardware
- Update to version 2.3.9:
  * Add MIB support to snmppower.
  * Add eaton-epdu-blue-switched.dev.
  * Add support for SNMP power controllers.
  * Add SNMP dev files for 8-port APC, 8-port Baytech, and 20 port
    Eaton Revelation PDU.
  * Add support for APC 7900 revision 3 firmware.
  * Add support for Appro Greenblade.
  * Add support for APC 7920.
  * Add Support for ranged beacon on/off device scripts, and beacon
    support for ipmipower.
- Make heartbeat support optional as it is dropped now.

OBS-URL: https://build.opensuse.org/request/show/77369
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=19
2011-07-28 18:06:05 +00:00
OBS User autobuild
7911cdc144 Accepting request 40326 from hardware
Copy from hardware/powerman based on submit request 40326 from user coolo

OBS-URL: https://build.opensuse.org/request/show/40326
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=6
2010-05-19 14:17:40 +00:00
OBS User autobuild
4b85db514f Accepting request 40326 from hardware
checked in (request 40326)

OBS-URL: https://build.opensuse.org/request/show/40326
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=18
2010-05-19 14:17:39 +00:00
Stephan Kulow
1895c54f6a Accepting request 40310 from home:a_jaeger:branches:openSUSE:Factory
Copy from home:a_jaeger:branches:openSUSE:Factory/powerman via accept of submit request 40310 revision 3.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/40310
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=17
2010-05-19 09:47:40 +00:00
OBS User autobuild
3443006576 Accepting request 40309 from hardware
Copy from hardware/powerman based on submit request 40309 from user coolo

OBS-URL: https://build.opensuse.org/request/show/40309
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=5
2010-05-19 07:21:49 +00:00
OBS User buildservice-autocommit
fcc38c79cf Updating link to change in openSUSE:Factory/powerman revision 5.0
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=ab3ba95c92679ae6a17a3fecd12c7688
2010-05-19 07:21:49 +00:00
OBS User autobuild
e5392293d1 Accepting request 40309 from hardware
checked in (request 40309)

OBS-URL: https://build.opensuse.org/request/show/40309
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=16
2010-05-19 07:21:48 +00:00
Stephan Kulow
5f3bbbda44 Accepting request 40307 from home:oertel:branches:openSUSE:Factory
Copy from home:oertel:branches:openSUSE:Factory/powerman via accept of submit request 40307 revision 2.
Request was accepted with message:
Reviewed ok

OBS-URL: https://build.opensuse.org/request/show/40307
OBS-URL: https://build.opensuse.org/package/show/hardware/powerman?expand=0&rev=15
2010-05-19 06:43:19 +00:00
OBS User autobuild
fe3768cc38 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=4 2010-03-18 15:22:53 +00:00
OBS User autobuild
0a4ff0cc75 Accepting request 17797 from hardware
Copy from hardware/powerman based on submit request 17797 from user sbrabec

OBS-URL: https://build.opensuse.org/request/show/17797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=2
2009-08-14 13:33:43 +00:00
OBS User unknown
c21fe6d615 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powerman?expand=0&rev=1 2009-08-10 22:00:14 +00:00
6 changed files with 139 additions and 8 deletions

View File

@@ -0,0 +1,112 @@
From 4780df0aa1d2a716fb39b225074da3c98c3443f1 Mon Sep 17 00:00:00 2001
From: Sven Hoexter <sven@stormbind.net>
Date: Sat, 14 Jun 2025 19:03:10 +0200
Subject: [PATCH] httppower|redfishpower: Curl_easy_setopt() Expects long int
Recent curl versions require its option values to be passed
as long.
Issue was raised in https://bugs.debian.org/1107411
---
src/httppower/httppower.c | 14 +++++++-------
src/redfishpower/redfishpower.c | 8 ++++----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/httppower/httppower.c b/src/httppower/httppower.c
index 5eca4a7e..7b979c8a 100644
--- a/src/httppower/httppower.c
+++ b/src/httppower/httppower.c
@@ -88,7 +88,7 @@ void post(CURL *h, char **av)
}
if (postdata && url_ptr) {
- curl_easy_setopt(h, CURLOPT_POST, 1);
+ curl_easy_setopt(h, CURLOPT_POST, 1L);
curl_easy_setopt(h, CURLOPT_URL, url_ptr);
curl_easy_setopt(h, CURLOPT_POSTFIELDS, postdata);
curl_easy_setopt(h, CURLOPT_POSTFIELDSIZE, strlen (postdata));
@@ -96,7 +96,7 @@ void post(CURL *h, char **av)
printf("Error: %s\n", errbuf);
curl_easy_setopt(h, CURLOPT_URL, "");
curl_easy_setopt(h, CURLOPT_POSTFIELDS, "");
- curl_easy_setopt(h, CURLOPT_POSTFIELDSIZE, 0);
+ curl_easy_setopt(h, CURLOPT_POSTFIELDSIZE, 0L);
} else
printf("Nothing to post!\n");
@@ -137,7 +137,7 @@ void put(CURL *h, char **av)
}
if (putdata && url_ptr) {
- curl_easy_setopt(h, CURLOPT_UPLOAD, 1);
+ curl_easy_setopt(h, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(h, CURLOPT_URL, url_ptr);
curl_easy_setopt(h, CURLOPT_READFUNCTION, put_read_cb);
pcd.data = putdata;
@@ -147,7 +147,7 @@ void put(CURL *h, char **av)
if (curl_easy_perform(h) != 0)
printf("Error: %s\n", errbuf);
curl_easy_setopt(h, CURLOPT_URL, "");
- curl_easy_setopt(h, CURLOPT_UPLOAD, 0);
+ curl_easy_setopt(h, CURLOPT_UPLOAD, 0L);
} else
printf("Nothing to put!\n");
@@ -162,7 +162,7 @@ void get(CURL *h, char **av)
char *myurl = _make_url(av[0]);
if (myurl) {
- curl_easy_setopt(h, CURLOPT_HTTPGET, 1);
+ curl_easy_setopt(h, CURLOPT_HTTPGET, 1L);
curl_easy_setopt(h, CURLOPT_URL, myurl);
if (curl_easy_perform(h) != 0)
printf("Error: %s\n", errbuf);
@@ -324,9 +324,9 @@ main(int argc, char *argv[])
if ((h = curl_easy_init()) == NULL)
err_exit(false, "curl_easy_init failed");
- curl_easy_setopt(h, CURLOPT_TIMEOUT, 5);
+ curl_easy_setopt(h, CURLOPT_TIMEOUT, 5L);
curl_easy_setopt(h, CURLOPT_ERRORBUFFER, errbuf);
- curl_easy_setopt(h, CURLOPT_FAILONERROR, 1);
+ curl_easy_setopt(h, CURLOPT_FAILONERROR, 1L);
/* for time being */
curl_easy_setopt(h, CURLOPT_SSL_VERIFYPEER, 0L);
diff --git a/src/redfishpower/redfishpower.c b/src/redfishpower/redfishpower.c
index ec67e4f6..808174f1 100644
--- a/src/redfishpower/redfishpower.c
+++ b/src/redfishpower/redfishpower.c
@@ -288,7 +288,7 @@ static void powermsg_init_curl(struct powermsg *pm)
/* Per documentation, CURLOPT_TIMEOUT overrides
* CURLOPT_CONNECTTIMEOUT */
Curl_easy_setopt((pm->eh, CURLOPT_TIMEOUT, message_timeout));
- Curl_easy_setopt((pm->eh, CURLOPT_FAILONERROR, 1));
+ Curl_easy_setopt((pm->eh, CURLOPT_FAILONERROR, 1L));
/* for time being */
Curl_easy_setopt((pm->eh, CURLOPT_SSL_VERIFYPEER, 0L));
@@ -321,12 +321,12 @@ static void powermsg_init_curl(struct powermsg *pm)
Curl_easy_setopt((pm->eh, CURLOPT_URL, pm->url));
if (pm->postdata) {
- Curl_easy_setopt((pm->eh, CURLOPT_POST, 1));
+ Curl_easy_setopt((pm->eh, CURLOPT_POST, 1L));
Curl_easy_setopt((pm->eh, CURLOPT_POSTFIELDS, pm->postdata));
Curl_easy_setopt((pm->eh, CURLOPT_POSTFIELDSIZE, strlen(pm->postdata)));
}
else
- Curl_easy_setopt((pm->eh, CURLOPT_HTTPGET, 1));
+ Curl_easy_setopt((pm->eh, CURLOPT_HTTPGET, 1L));
}
static char *resolve_hosts_url(const char *hostname, const char *path)
@@ -1221,7 +1221,7 @@ static void power_cleanup(struct powermsg *pm)
{
if (!test_mode && pm->eh) {
Curl_easy_setopt((pm->eh, CURLOPT_POSTFIELDS, ""));
- Curl_easy_setopt((pm->eh, CURLOPT_POSTFIELDSIZE, 0));
+ Curl_easy_setopt((pm->eh, CURLOPT_POSTFIELDSIZE, 0L));
}
powermsg_destroy(pm);
}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8465d1669745a72e3822fdc73f3e4a06737d8579a59190fef0b8aa259d7fc13f
size 789294

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6a3e1221fd89f9470651e87f95bd6515628aba49548dc8542f31db7a6515f77
size 789459

BIN
powerman-2.4.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Wed Jul 2 07:06:54 UTC 2025 - Eugenio Paolantonio <eugenio.paolantonio@suse.com>
- Add patch httppower-redfishpower-Curl_easy_setopt-Expects-long-int.patch
* Fixes build with curl 1.84.x.
- Use -std=gnu17 on SLES16 and higher to fix build with gcc-15.
-------------------------------------------------------------------
Sun Sep 15 12:51:05 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>
- Update to version 2.4.4:
* powerman: fix segfault if unspecified host reports status
* redfishpower: do not report errors on dependent hosts
* Update hostlist library to fix potential array out of bounds error.
-------------------------------------------------------------------
Thu Jul 25 20:02:41 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package powerman
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,7 +31,7 @@
%endif
Name: powerman
Version: 2.4.3
Version: 2.4.4
Release: 0
Summary: Centralized Power Control for Clusters
License: GPL-2.0-or-later
@@ -40,6 +40,7 @@ URL: https://github.com/chaos/powerman
Source: https://github.com/chaos/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch1: harden_powerman.service.patch
Patch2: Replace-deprecated-usmHMACMD5AuthProtocol-Protocol-by-SNMP_DEFAULT_AUTH_PROTO.patch
Patch3: httppower-redfishpower-Curl_easy_setopt-Expects-long-int.patch
BuildRequires: automake
BuildRequires: bison
BuildRequires: fdupes
@@ -85,6 +86,12 @@ Header files, pkg-config file and man pages for developing applications using Po
%autosetup -p1
%build
# Use gnu17 on SLES16 and higher
%if 0%{?suse_version} >= 1600
%global optflags %{optflags} -std=gnu17
%endif
%configure \
--disable-static\
--with-httppower \