Bug 215899 - www/domoticz - fix build on arm
Summary: www/domoticz - fix build on arm
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Many People
Assignee: freebsd-ports-bugs mailing list
Depends on: 221118
  Show dependency treegraph
Reported: 2017-01-09 07:31 UTC by Oleksii Samorukov
Modified: 2017-10-27 13:27 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (kiwi)


Note You need to log in before you can comment on or make changes to this bug.
Description Oleksii Samorukov freebsd_committer 2017-01-09 07:31:33 UTC
I was trying to use domoticz on RPi1/FreeBSD and found that there is no binary package for it, so tried to build it myself. After a lot of time build failed with a warning about Linux I2C headers. The bug itself is caused by strange assumption that if arch is ARM we should have linux i2c headers. I reported this to upstream (see https://github.com/domoticz/domoticz/issues/1109) and replaces __arm__ to __linuxarm__ in the 2 files: hardware/I2C.cpp and hardware/PiFace.cpp. 
After this domoticz was built correctly (it takes a lot of hours on RPi 1) and works very well. Of course real fix should be to implement i2c/spi functions using native FreeBSD API, but i do not have listed I2C devices now, so cant work on it. I already ordered i2c sensor, so hopefully it will arrive in a few weeks and i will try to make it working on FreeBSD/RPi, but for now i would just recommend to disable this code by replacing __arm__ with __linuxarm__.
Comment 1 Oleksii Samorukov freebsd_committer 2017-01-09 13:56:58 UTC
Additionally (just not to open tonn of bugs) i would recommend to move ssl port from 443 to 8443, because 443 wont be allowed from the domoticz user.
Comment 2 Martin Wilke freebsd_committer 2017-05-06 15:04:38 UTC

Could you please provide a patch?

Comment 3 kiwi 2017-07-31 11:58:15 UTC
Fixed in 221118
Comment 4 Steve Wills freebsd_committer 2017-10-27 13:27:44 UTC
Issue was fixed in 221118