package/gnuradio: add optional support for orc
PATCH 1/10 package/gnuradio: add optional support for orc
When orc was compiled before, gnuradio will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/gnuradio-config-info | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [liborc-0.4.so.0] [...]
Apparently there is no option provided by the build system to en-/disable support for orc:
https://github.com/gnuradio/volk/blob/41b4df055b2c8d4f2c23ad2bdc60c0b47b4f0dd8/lib/CMakeLists.txt#L449
--- package/gnuradio/gnuradio.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/gnuradio/gnuradio.mk +4 -0
@@ -17,6 +17,10 @@ GNURADIO_DEPENDENCIES = \ host-swig \ boost +ifeq ($(BR2_PACKAGE_ORC),y) +GNURADIO_DEPENDENCIES += orc +endif + GNURADIO_CONF_OPTS = \ -DENABLE_DEFAULT=OFF \ -DENABLE_VOLK=ON \
Signature · 1 line
2.7.0
PATCH 2/10 package/openobex: depends on libusb-compat
Openobex looks for libusb.pc provided by libusb-compat, not libusb-1.0.pc provided by libusb:
https://github.com/zuckschwerdt/openobex/blob/master/acinclude.m4#L171
Openobex links against both libusb (libusb-1.0.so.0) and libusb-compat (libusb-0.1.so.4):
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/ircp | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libopenobex.so.1] 0x0000000000000001 (NEEDED) Shared library: [libusb-0.1.so.4] 0x0000000000000001 (NEEDED) Shared library: [libusb-1.0.so.0] [...]
This patch changes the dependency in openobex.mk and also selects libusb-compat.
--- package/openobex/Config.in | 3 ++- package/openobex/openobex.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
package/openobex/Config.in +2 -1
@@ -22,8 +22,9 @@ comment "bluez support needs a toolchain w/ wchar, threads, dynamic library" config BR2_PACKAGE_OPENOBEX_LIBUSB bool "enable libusb support" - depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_TOOLCHAIN_HAS_THREADS # libusb select BR2_PACKAGE_LIBUSB + select BR2_PACKAGE_LIBUSB_COMPAT comment "libusb support needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
package/openobex/openobex.mk +1 -1
@@ -36,7 +36,7 @@ OPENOBEX_CONF_OPTS += --disable-bluetooth endif ifeq ($(BR2_PACKAGE_OPENOBEX_LIBUSB),y) -OPENOBEX_DEPENDENCIES += libusb +OPENOBEX_DEPENDENCIES += libusb-compat OPENOBEX_CONF_OPTS += --with-usb=$(STAGING_DIR) else OPENOBEX_CONF_OPTS += --disable-usb
Signature · 1 line
2.7.0
Thomas Petazzoni
AppliedPATCH 2/10 package/openobex: depends on libusb-compat
Dear Bernd Kuhls,
Quoted 12 lines · Bernd Kuhls
Openobex looks for libusb.pc provided by libusb-compat, not libusb-1.0.pc provided by libusb:
https://github.com/zuckschwerdt/openobex/blob/master/acinclude.m4#L171Openobex links against both libusb (libusb-1.0.so.0) and libusb-compat (libusb-0.1.so.4):
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/ircp | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libopenobex.so.1] 0x0000000000000001 (NEEDED) Shared library: [libusb-0.1.so.4] 0x0000000000000001 (NEEDED) Shared library: [libusb-1.0.so.0] [...]
Quoted 8 lines
This patch changes the dependency in openobex.mk and also selects libusb-compat.
Signed-off-by Bernd Kuhls <[email protected]>--- package/openobex/Config.in | 3 ++- package/openobex/openobex.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 3/10 package/gnupg2: add optional support for libusb-compat
In reply to Bernd KuhlsWhen libusb-compat was compiled before, gnupg2 will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/libexec/scdaemon | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [libusb-0.1.so.4] [...]
--- package/gnupg2/gnupg2.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/gnupg2/gnupg2.mk +7 -0
@@ -38,6 +38,13 @@ else GNUPG2_CONF_OPTS += --disable-bzip2 endif +ifeq ($(BR2_PACKAGE_LIBUSB_COMPAT),y) +GNUPG2_CONF_OPTS += --enable-ccid-driver +GNUPG2_DEPENDENCIES += libusb-compat +else +GNUPG2_CONF_OPTS += --disable-ccid-driver +endif + ifeq ($(BR2_PACKAGE_READLINE),y) GNUPG2_CONF_OPTS += --with-readline=$(STAGING_DIR) GNUPG2_DEPENDENCIES += readline
Signature · 1 line
2.7.0
Thomas Petazzoni
AppliedPATCH 3/10 package/gnupg2: add optional support for libusb-compat
Dear Bernd Kuhls,
Quoted 8 lines · Bernd Kuhls
When libusb-compat was compiled before, gnupg2 will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/libexec/scdaemon | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [libusb-0.1.so.4] [...]
Quoted 4 lines
Signed-off-by Bernd Kuhls <[email protected]>--- package/gnupg2/gnupg2.mk | 7 +++++++ 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 4/10 package/mediastreamer: add optional support for libupnp
In reply to Bernd KuhlsWhen libupnp was compiled before, mediastreamer will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libmediastreamer_voip.so.3.0.0 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libmediastreamer_base.so.3] 0x0000000000000001 (NEEDED) Shared library: [libupnp.so.6] [...]
--- package/mediastreamer/mediastreamer.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/mediastreamer/mediastreamer.mk +7 -0
@@ -20,6 +20,13 @@ else MEDIASTREAMER_CONF_OPTS += --disable-alsa endif +ifeq ($(BR2_PACKAGE_LIBUPNP),y) +MEDIASTREAMER_CONF_OPTS += --enable-upnp +MEDIASTREAMER_DEPENDENCIES += libupnp +else +MEDIASTREAMER_CONF_OPTS += --disable-upnp +endif + # portaudio backend needs speex as well ifeq ($(BR2_PACKAGE_PORTAUDIO)$(BR2_PACKAGE_SPEEX),yy) MEDIASTREAMER_CONF_OPTS += --enable-portaudio
Signature · 1 line
2.7.0
PATCH 4/10 package/mediastreamer: add optional support for libupnp
Dear Bernd Kuhls,
Quoted 8 lines · Bernd Kuhls
When libupnp was compiled before, mediastreamer will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libmediastreamer_voip.so.3.0.0 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libmediastreamer_base.so.3] 0x0000000000000001 (NEEDED) Shared library: [libupnp.so.6] [...]
Quoted 4 lines
Signed-off-by Bernd Kuhls <[email protected]>--- package/mediastreamer/mediastreamer.mk | 7 +++++++ 1 file changed, 7 insertions(+)
Patches 4 to 10 applied to master, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 5/10 package/mediastreamer: add optional support for opus
In reply to Bernd KuhlsWhen opus was compiled before, mediastreamer will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libmediastreamer_voip.so.3.0.0 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libmediastreamer_base.so.3] 0x0000000000000001 (NEEDED) Shared library: [libopus.so.0] [...]
--- package/mediastreamer/mediastreamer.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/mediastreamer/mediastreamer.mk +7 -0
@@ -27,6 +27,13 @@ else MEDIASTREAMER_CONF_OPTS += --disable-upnp endif +ifeq ($(BR2_PACKAGE_OPUS),y) +MEDIASTREAMER_CONF_OPTS += --enable-opus +MEDIASTREAMER_DEPENDENCIES += opus +else +MEDIASTREAMER_CONF_OPTS += --disable-opus +endif + # portaudio backend needs speex as well ifeq ($(BR2_PACKAGE_PORTAUDIO)$(BR2_PACKAGE_SPEEX),yy) MEDIASTREAMER_CONF_OPTS += --enable-portaudio
Signature · 1 line
2.7.0
PATCH 6/10 package/mediastreamer: add optional support for libvpx
In reply to Bernd KuhlsWhen libvpx was compiled before, mediastreamer will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libmediastreamer_voip.so.3.0.0 | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libmediastreamer_base.so.3] 0x0000000000000001 (NEEDED) Shared library: [libopus.so.0] 0x0000000000000001 (NEEDED) Shared library: [libvpx.so.2] [...]
--- package/mediastreamer/mediastreamer.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/mediastreamer/mediastreamer.mk +7 -0
@@ -27,6 +27,13 @@ else MEDIASTREAMER_CONF_OPTS += --disable-upnp endif +ifeq ($(BR2_PACKAGE_LIBVPX),y) +MEDIASTREAMER_CONF_OPTS += --enable-vp8 +MEDIASTREAMER_DEPENDENCIES += libvpx +else +MEDIASTREAMER_CONF_OPTS += --disable-vp8 +endif + ifeq ($(BR2_PACKAGE_OPUS),y) MEDIASTREAMER_CONF_OPTS += --enable-opus MEDIASTREAMER_DEPENDENCIES += opus
Signature · 1 line
2.7.0
PATCH 7/10 package/pure-ftpd: add optional support for libsodium
In reply to Bernd KuhlsWhen libsodium was compiled before, pure-ftpd will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/pure-statsdecode | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libsodium.so.17] 0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1]
The build system offers no option to en-/disable libsodium support, check configure.ac, line 953.
--- package/pure-ftpd/pure-ftpd.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/pure-ftpd/pure-ftpd.mk +4 -0
@@ -27,6 +27,10 @@ else PURE_FTPD_CONF_OPTS += --without-capabilities endif +ifeq ($(BR2_PACKAGE_LIBSODIUM),y) +PURE_FTPD_DEPENDENCIES += libsodium +endif + ifeq ($(BR2_PACKAGE_OPENSSL),y) PURE_FTPD_CONF_OPTS += --with-tls PURE_FTPD_DEPENDENCIES += openssl
Signature · 1 line
2.7.0
PATCH 8/10 package/gawk: add optional support for libsigsegv
In reply to Bernd KuhlsWhen libsigsegv was compiled before, gawk will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/gawk | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libsigsegv.so.2] [...]
The build system offers no option to en-/disable libsigsegv support:
http://git.savannah.gnu.org/cgit/gawk.git/tree/m4/libsigsegv.m4
--- package/gawk/gawk.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/gawk/gawk.mk +4 -0
@@ -16,6 +16,10 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y) GAWK_DEPENDENCIES += busybox endif +ifeq ($(BR2_PACKAGE_LIBSIGSEGV),y) +GAWK_DEPENDENCIES += libsigsegv +endif + # --with-mpfr requires an argument so just let # configure find it automatically ifeq ($(BR2_PACKAGE_MPFR),y)
Signature · 1 line
2.7.0
PATCH 9/10 package/lxc: add optional support for libseccomp
In reply to Bernd KuhlsWhen libseccomp was compiled before, lxc will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/libexec/lxc/lxc-monitord | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [liblxc.so.1] 0x0000000000000001 (NEEDED) Shared library: [libcap.so.2] 0x0000000000000001 (NEEDED) Shared library: [libseccomp.so.2] [...]
--- package/lxc/lxc.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/lxc/lxc.mk +7 -0
@@ -15,4 +15,11 @@ LXC_CONF_OPTS = --disable-apparmor --with-distro=buildroot \ --disable-lua --disable-python \ $(if $(BR2_PACKAGE_BASH),,--disable-bash) +ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) +LXC_CONF_OPTS += --enable-seccomp +LXC_DEPENDENCIES += libseccomp +else +LXC_CONF_OPTS += --disable-seccomp +endif + $(eval $(autotools-package))
Signature · 1 line
2.7.0
PATCH 10/10 package/mutt: add optional support for libidn
In reply to Bernd KuhlsWhen libidn was compiled before, mutt will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/mutt | grep NEEDED 0x0000000000000001 (NEEDED) Shared library: [libncurses.so.5] 0x0000000000000001 (NEEDED) Shared library: [libidn.so.11] 0x0000000000000001 (NEEDED) Shared library: [libintl.so.8] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1]
--- package/mutt/mutt.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/mutt/mutt.mk +7 -0
@@ -17,6 +17,13 @@ MUTT_DEPENDENCIES += libiconv MUTT_CONF_OPTS += --enable-iconv endif +ifeq ($(BR2_PACKAGE_LIBIDN),y) +MUTT_DEPENDENCIES += libidn +MUTT_CONF_OPTS += --with-idn +else +MUTT_CONF_OPTS += --without-idn +endif + ifeq ($(BR2_PACKAGE_MUTT_IMAP),y) MUTT_CONF_OPTS += --enable-imap else
Signature · 1 line
2.7.0
PATCH 1/10 package/gnuradio: add optional support for orc
In reply to Bernd KuhlsDear Bernd Kuhls,
Quoted 8 lines · Bernd Kuhls
When orc was compiled before, gnuradio will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/gnuradio-config-info | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [liborc-0.4.so.0] [...]
Quoted 5 lines
Apparently there is no option provided by the build system to en-/disable support for orc:
https://github.com/gnuradio/volk/blob/41b4df055b2c8d4f2c23ad2bdc60c0b47b4f0dd8/lib/CMakeLists.txt#L449Signed-off-by Bernd Kuhls <[email protected]>
Can you check it properly finds the orcc compiler in $(HOST_DIR)/usr/bin ? I believe this might need some more tweaks than just depending on orc.
I'm Cc'ing Gwenhael, who is the main contributor to the GNURadio package. Gwenhael, can you have a look at Bernd's patch to enable ORC as an optional dependency of GNURadio ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/10 package/gnuradio: add optional support for orc
In reply to Bernd KuhlsHi Bernd,
Best regards,
Gwenhael
Quoted 39 lines · On Sun, 21 Feb 2016 18:34:50 +0100 Bernd Kuhls <[email protected]> wrote:
When orc was compiled before, gnuradio will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/gnuradio-config-info | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [liborc-0.4.so.0] [...]Apparently there is no option provided by the build system to en-/disable support for orc:
https://github.com/gnuradio/volk/blob/41b4df055b2c8d4f2c23ad2bdc60c0b47b4f0dd8/lib/CMakeLists.txt#L449Signed-off-by Bernd Kuhls <[email protected]>--- package/gnuradio/gnuradio.mk | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/package/gnuradio/gnuradio.mkindex fc5cd1f..b7dbcb9 100644package/gnuradio/gnuradio.mk +4
-0@@ -17,6 +17,10 @@ GNURADIO_DEPENDENCIES = \ host-swig \ boost +ifeq ($(BR2_PACKAGE_ORC),y) +GNURADIO_DEPENDENCIES += orc +endif + GNURADIO_CONF_OPTS = \ -DENABLE_DEFAULT=OFF \ -DENABLE_VOLK=ON \Signature · 6 lines
2.7.0 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni
AppliedPATCH 1/10 package/gnuradio: add optional support for orc
In reply to Bernd KuhlsDear Bernd Kuhls,
Quoted 8 lines · Bernd Kuhls
When orc was compiled before, gnuradio will use it as optional dependency:
$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/gnuradio-config-info | grep NEEDED [...] 0x0000000000000001 (NEEDED) Shared library: [liborc-0.4.so.0] [...]
Quoted 8 lines
Apparently there is no option provided by the build system to en-/disable support for orc:
https://github.com/gnuradio/volk/blob/41b4df055b2c8d4f2c23ad2bdc60c0b47b4f0dd8/lib/CMakeLists.txt#L449Signed-off-by Bernd Kuhls <[email protected]>--- package/gnuradio/gnuradio.mk | 4 ++++ 1 file changed, 4 insertions(+)
Applied to master, thanks!
Thanks to Gwenhael for testing!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com