Hi, Jonas Smedegaard wrote: > It seems upstream now probes for and gracefully handles lack of V4L > support, but the packaging forcefully avoids any video capabilities on > non-Linux targets. > > Please try simply drop that discrimination in debian/rules and see if > package still succeeds building on non-Linux targets.
I've tested that on kfreebsd with some interesting results: Without V4L, it will still FTBFS: | checking for LIBV4L2... no | No libv4l2 found. | checking for LIBV4L1... no | No libv4l1 found. | configure: error: | Missing libv4l2. It is highly recommended to build with | libv4l2 headers and library. Many camera will won't work or will crash | your application if libv4l2 is not installed. | If you know what you are doing, you can use --disable-libv4l2 to disable | this check. | | configure: error: ./configure failed for mediastreamer2 but on kfreebsd if you add libv4l-dev to Built-Depends, it will detect, enable and build OK with it now. (Haven't tested it at runtime). There is also a proper detection for ALSA now. Without libasound headers, it will not be enabled. However, *with* liboss4-salsa-dev it FTBFS on kfreebsd due to some Linuxisms in that code. But there's no point trying to fix that as it is just a wrapper around OSS, and linphone should just use that directly on kfreebsd (assuming it can? as I said I didn't test). Somehow I ran into bug #782366 trying to build this on kfreebsd: --- /usr/lib/pkgconfig/cunit.pc.orig 2013-01-27 13:48:23.000000000 +0000 +++ /usr/lib/pkgconfig/cunit.pc 2015-05-29 23:49:28.841017548 +0100 @@ -1,6 +1,6 @@ prefix=/usr exec_prefix=${prefix} -libdir={exec_prefix}/lib +libdir=${exec_prefix}/lib includedir=${prefix}/include/CUnit Name: CUnit Please find attached a patch that would allow linphone to build with V4L on kfreebsd. It still can't build yet on hurd without other porting work. Thanks, Regards, -- Steven Chamberlain ste...@pyro.eu.org
--- debian/control.orig 2014-03-26 23:50:46.000000000 +0000 +++ debian/control 2015-05-30 00:03:45.118041864 +0100 @@ -12,7 +12,7 @@ libosip2-dev (>= 4), libexosip2-dev (>= 4), libsqlite3-dev, libsoup2.4-dev, libxml-parser-perl, libncurses5-dev, libreadline-dev, libnotify-dev, - libudev-dev [linux-any], libasound2-dev [linux-any], libv4l-dev [linux-any], + libudev-dev [linux-any], libasound2-dev [linux-any], libv4l-dev [linux-any kfreebsd-any], libspeex-dev, libspeexdsp-dev, libspandsp-dev, libopus-dev, libogg-dev, libpulse-dev, libgtk2.0-dev, libglew-dev, --- debian/rules.orig 2015-05-29 23:20:29.161024487 +0100 +++ debian/rules 2015-05-30 00:00:23.947024732 +0100 @@ -1,9 +1,6 @@ #!/usr/bin/make -f DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) -ifneq ($(DEB_HOST_ARCH_OS),linux) - CONFIGURE_ARGS += --disable-alsa --disable-video -endif %: dh $@ --parallel --with autoreconf
signature.asc
Description: Digital signature