From owner-freebsd-ports-bugs@freebsd.org Mon Jan 9 07:31:34 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D755ACA6344 for ; Mon, 9 Jan 2017 07:31:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD8011DAE for ; Mon, 9 Jan 2017 07:31:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v097VYCR001456 for ; Mon, 9 Jan 2017 07:31:34 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215899] www/domoticz - fix build on arm Date: Mon, 09 Jan 2017 07:31:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: samm@os2.kiev.ua X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2017 07:31:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215899 Bug ID: 215899 Summary: www/domoticz - fix build on arm Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: samm@os2.kiev.ua CC: kiwi@oav.net Flags: maintainer-feedback?(kiwi@oav.net) CC: kiwi@oav.net I was trying to use domoticz on RPi1/FreeBSD and found that there is no bin= ary package for it, so tried to build it myself. After a lot of time build fail= ed 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.=20 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__. --=20 You are receiving this mail because: You are the assignee for the bug.=