Bug#719741: opencv: FTBFS on !linux archs

Pino Toscano pino at debian.org
Wed Aug 14 19:36:35 UTC 2013


Source: opencv
Version: 2.4.5+dfsg-0exp1
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Hi,

opencv 2.4.5+dfsg-0exp1 fails to build on non-Linux archs [1][2][3].

Attached there are two patches fixing the issues:

* non-linux.diff: upstream changes
- include some Linux headers (and use sysconf to get the active
  processors count) also when using GNU libc
- do not include sys/sysctl.h on Hurd, since this non-standard include
  does not exist there

* non-linux-debian.diff: Debian-only changes
- build 1394 and v4l support only on Linux; the v4l support would be
  detected and enabled on kFreeBSD, but the actual implementation seems
  Linux-specific

[1] https://buildd.debian.org/status/fetch.php?pkg=opencv&arch=kfreebsd-i386&ver=2.4.5%2Bdfsg-0exp1&stamp=1375854567
[2] https://buildd.debian.org/status/fetch.php?pkg=opencv&arch=kfreebsd-amd64&ver=2.4.5%2Bdfsg-0exp1&stamp=1375849913
[3] https://buildd.debian.org/status/fetch.php?pkg=opencv&arch=hurd-i386&ver=2.4.5%2Bdfsg-0exp1&stamp=1376429030

Thanks,
-- 
Pino
-------------- next part --------------
A non-text attachment was scrubbed...
Name: non-linux.diff
Type: text/x-diff
Size: 1165 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20130814/a740fbdb/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: non-linux-debian.diff
Type: text/x-diff
Size: 857 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20130814/a740fbdb/attachment-0001.diff>


More information about the debian-science-maintainers mailing list