Bug 215899 - www/domoticz - fix build on arm
Summary: www/domoticz - fix build on arm
Status: Open
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)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-09 07:31 UTC by samm
Modified: 2017-05-06 15:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description samm 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 samm 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
Hi,

Could you please provide a patch?

Thanks