[Nut-upsdev] Problems with nut on new openSuSE 11.1 (same ecstasy_ups)

David C. Rankin drankinatty at suddenlinkmail.com
Wed Jan 14 04:39:49 UTC 2009

Arjen de Korte wrote:
> Citeren "David C. Rankin" <drankinatty at suddenlinkmail.com>:
>> Any luck yet on the voltage fix for the Cyber Power UPS CP1000AVRLCD? I'm
>> still greeted by 'battery.voltage: 20.3' each time I check. Just
>> thought I'd
>> ask. Thanks.
> This change was comitted to the trunk on Dec 15 (r1627), so if you
> upgrade to the development version, this should be OK now.
> Best regards, Arjen


	I thought I would try building a set of rpms for openSuSE 10.3 with the
development version, but I am running into problems. In installed the latest
src.rpm I could find (sbrabec's) from openSuSE build service.


	Then I checked out r1715 and created a source package from it with:

tar -cjf /usr/src/packages/SOURCES/nut-2.2.2-svn-1715.tar.bz2 nut-trunk/

	I copied the spec file to: nut-trunk-1715.spec and edited the spec file as

Version:        2.2.2
Release:        1715
Url:            http://www.networkupstools.org/
Source:         %{name}-%{version}-svn-%{release}.tar.bz2

	I then kicked off the build with rpmbuild -bb nut-trunk-1715.spec, but the
build died really quick with the following error:


>-        <MATCH KEY=USB_DEVICE.PRODUCT_ID INT=0X0000>-          <APPEND

                PRINT  ' 'KEY="USB_DEVICE.VENDOR_ID"' 'INT="'
sh: line 112: MATCH: No such file or directory
error: line 66: Empty tag: Enhances:

	Full build output at:


	I looked at the spec and removed a few spaces on line 66 from between
'Enhances:' and  '%(set' which did help the build get through the '<MATCH
KEY...' stuff, but it still died.

	Lines 65-67 are:

# Package provides driver for USB HID UPSes, but people can live with hal addon:
Enhances: %(set -x ; echo %{QUOTE}%{USBDRIVERS}%{QUOTE} | sed -n
s/^HALD-ADDON-USBHID-UPS=//p | tr '%{BACKSLASH}n' ' ')
# Package provides the only avalailable driver for other USB UPSes:
Supplements: %(set -x ; echo %{QUOTE}%{USBDRIVERS}%{QUOTE} | sed
'/^HALD-ADDON-USBHID-UPS=/d;s/^.*=//' | tr '%{BACKSLASH}n' ' ')

	I would like to build the rpms if possible. Do you have any pointers? I'll go
just compile it in the mean time, but it seems like I should be able to build
the rpms also. Thanks.

David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339

More information about the Nut-upsdev mailing list