Package Details: openzwave-git r4171.25076055-1

Git Clone URL: (read-only, click to copy)
Package Base: openzwave-git
Description: Opensource Z-Wave control
Upstream URL:
Keywords: domoticz openzwave
Licenses: LGPL
Conflicts: openzwave, openzwave-svn
Provides: openzwave
Submitter: melvinvermeeren
Maintainer: melvinvermeeren
Last Packager: melvinvermeeren
Votes: 9
Popularity: 0.28
First Submitted: 2015-05-21 08:05
Last Updated: 2017-11-11 19:57

Latest Comments

1 2 3 Next › Last »

XkE5NBr2 commented on 2021-09-26 14:33

I, too, found it necessary to run these commands to successfully build:

cd ~/aur/openzwave-git # the top-level directory containing PKGBUILD
makepkg --nobuild
cd src/open-zwave
grep -rIn Werror | grep -v PKGBUILD | cut -d':' -f1 | xargs sed -i 's|-Werror||g'
cd ../..
makepkg --noextract

I also had to edit openzwave-git/src/open-zwave/cpp/examples/MinOZW and remove -Wno-format. In other words, I changed this:

DEBUG_CFLAGS    := -Wall -Wno-format -ggdb -DDEBUG $(CPPFLAGS) -std=c++11
RELEASE_CFLAGS  := -Wall -Wno-unknown-pragmas -Wno-format -O3 $(CPPFLAGS) -std=c++11

to this:

DEBUG_CFLAGS    := -Wall -ggdb -DDEBUG $(CPPFLAGS) -std=c++11
RELEASE_CFLAGS  := -Wall -Wno-unknown-pragmas -O3 $(CPPFLAGS) -std=c++11

melvinvermeeren commented on 2018-05-21 13:32

@asm0dey I am not actually a openzwave developer, I only maintain the AUR package here and hotfix simple things once in a while. I don't have write permission to the upstream repo.

As for sed-ing Werror in PKGBUILD: I will add this if it happens more frequently. But this code should not be merged into master branch upstream. Hopefully they will improve the CI so it doesn't happen in the future.

asm0dey commented on 2018-05-20 06:53

Also it can be patched in PKGBUILD by

grep -rIn Werror | grep -v PKGBUILD | cut -d':' -f1 | xargs sed -i 's|-Werror||g'

asm0dey commented on 2018-05-20 06:36

@melvinvermeeren I've patched it on github, maybe you'll accept the pull request?

melvinvermeeren commented on 2018-05-19 23:20

When it doesn't build due to Werror flag:

makepkg --nobuild
cd src/open-zwave # or however it is called
grep -rIn Werror

Then remove all the Werror flags and run makepkg --noextract to build.

asm0dey commented on 2018-05-19 19:11

I have following error trying to install:

Building DoorLockLogging.o
/tmp/finkel/trizen-finkel/openzwave/src/open-zwave-1.5/cpp/src/command_classes/DoorLockLogging.cpp: In member function ‘virtual bool OpenZWave::DoorLockLogging::HandleMsg(const uint8*, uint32, uint32)’:
/tmp/finkel/trizen-finkel/openzwave/src/open-zwave-1.5/cpp/src/command_classes/DoorLockLogging.cpp:312:15: error: passing argument 1 to restrict-qualified parameter aliases with argument 4 [-Werror=restrict]
      snprintf(usercode, sizeof(usercode), "%s %d", usercode, (int)_data[12+i]);
               ^~~~~~~~                             ~~~~~~~~
cc1plus: all warnings being treated as errors

k96hkh commented on 2018-05-15 07:01

You and the rest of the openzwave team are so quick you got it fixed upstream before I had a chance to test your fork. It builds fine now (still have to do the "sed -i 's@-Werror@@g'" in the PKGBUILD) and I have domoticz-latest up and running again.

Thanks a bunch and may the force be with you!

melvinvermeeren commented on 2018-05-14 19:53

I found the issue, it is a bug upstream. I submitted a PR to fix it.

Edit: in case you need to build now, change source url to my fork or apply change locally with makepkg --nobuild, then makepkg --noextract.

k96hkh commented on 2018-05-14 19:26

Hi, first post on Arch AUR so please bear with me. I built openzwave-git a long time ago and it worked but can't get makepkg to work on this package now.

First I get (sorry for the Swedish): ..../builds/openzwave-git/src/open-zwave/cpp/src/command_classes/DoorLockLogging.cpp:312:15: fel: att skicka argument 1 till en restrict-kvalificerad parameter blir alias med argument 4 [-Werror=restrict] snprintf(usercode, sizeof(usercode), "%s %d", usercode, (int)_data[12+i]); ^~~~~~~~ ~~~~~~~~ cc1plus: all warnings are treated as errors

I got that fixed with: sed -i 's@-Werror@@g' cpp/hidapi/ sed -i 's@-Werror@@g' cpp/build/Makefile

But then I get (again sorry or the Swedish): Installing Pkg-config Files cp: kan inte skapa normal fil '/usr/lib/pkgconfig/libopenzwave.pc': Access denied make[1]: *** [Makefile:238: install] Fel 1

Please help Obi-wan Kenobi, you are my only hope!

springer commented on 2017-11-11 20:44

Awesome, thanks melvinvermeeren. I don't use Domoticz but open-zwave-control-panel. Before the change I had to symlink the config folder, now it works without that.