SHA256
1
0
forked from pool/apcupsd
Files
apcupsd/apcupsd-config.patch
Antonio Teixeira 3e26e06ef4 Build fix for Leap 15.6:
- remove obsolete text concerning apcupsd-early-powerdown in README.SUSE
- do not use /sbin/service, call systemctl directly
- Leap 15.6 also needs util-linux-tty-tools
- Patch configure to show correct GCC version (not configure.in, autoreconf fails)
- Use %make_build in spec file

OBS-URL: https://build.opensuse.org/package/show/hardware/apcupsd?expand=0&rev=104
2024-07-10 14:16:41 +00:00

12 lines
544 B
Diff

--- apcupsd-3.14.14/configure.orig 2016-04-18 22:26:31.000000000 +0200
+++ apcupsd-3.14.14/configure 2024-07-08 14:34:09.108354615 +0200
@@ -14678,7 +14678,7 @@ $MAKE clean
# A whole lot of hand springs to get the compiler version.
# This is because gcc changed the output in version 3.0
#
-CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
+CXXVERSION=`${CXX} --version | sed 's/([^)]*)//' | awk '{ print $2; exit }'`
if test "x${CXXVERSION}" = "x" ; then
CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
fi