forked from pool/apcupsd
- 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
12 lines
544 B
Diff
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
|