fix pulseview build failures
v2 cover fix pulseview build failures
This series fixes pulseview build failures which have been observed on many autobuilders. They have been caused by doxygen not being present on host machines.
The first patch adds doxygen host package. The second makes libsigrok depend on it when C++ bindings are selected. When that is fixed we can finally revert the patch marking libsigrokcxx as broken.
v2:
- use host-generic-package instead of host-autotools-package
- revert commit 41e81b7
v1:
http://lists.busybox.net/pipermail/buildroot/2015-April/124714.html
Bartosz Golaszewski (3):
doxygen: new package
libsigrok: add host-doxygen dependency for C++ bindings Revert "libsigrok: mark libsigrokcxx as broken"
package/doxygen/doxygen.hash | 2 ++ package/doxygen/doxygen.mk | 25 +++++++++++++++++++++++++ package/libsigrok/Config.in | 3 --- package/libsigrok/libsigrok.mk | 2 +- package/pulseview/Config.in | 2 -- 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 package/doxygen/doxygen.hash create mode 100644 package/doxygen/doxygen.mk
Signature · 1 line
2.1.4
PATCH v2 1/3 doxygen: new package
Host package only.
--- package/doxygen/doxygen.hash | 2 ++ package/doxygen/doxygen.mk | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 package/doxygen/doxygen.hash create mode 100644 package/doxygen/doxygen.mk
package/doxygen/doxygen.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Computed locally +sha256 d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec doxygen-1.8.9.1.src.tar.gz
package/doxygen/doxygen.mk new file +25 -0
@@ -0,0 +1,25 @@ +################################################################################ +# +# doxygen +# +################################################################################ + +DOXYGEN_VERSION = 1.8.9.1 +DOXYGEN_SOURCE = doxygen-$(DOXYGEN_VERSION).src.tar.gz +DOXYGEN_SITE = http://ftp.stack.nl/pub/users/dimitri/ +DOXYGEN_LICENSE = GPLv2 +DOXYGEN_LICENSE_FILES = LICENSE + +define HOST_DOXYGEN_CONFIGURE_CMDS + (cd $(@D); ./configure --shared --prefix=$(HOST_DIR)/usr) +endef + +define DOXYGEN_BUILD_CMDS + ($(MAKE) -C $(@D)) +endef + +define HOST_DOXYGEN_INSTALL_CMDS + ($(MAKE) install -C $(@D)) +endef + +$(eval $(host-autotools-package))
Signature · 1 line
2.1.4
PATCH v2 2/3 libsigrok: add host-doxygen dependency for C++ bindings
In reply to Bartosz GolaszewskiDoxygen is required to generate xml files required by libsigrokcxx build system.
--- package/libsigrok/libsigrok.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/libsigrok/libsigrok.mk +1 -1
@@ -48,7 +48,7 @@ endif ifeq ($(BR2_PACKAGE_LIBSIGROKCXX),y) LIBSIGROK_CONF_OPTS += --enable-cxx -LIBSIGROK_DEPENDENCIES += host-autoconf-archive glibmm +LIBSIGROK_DEPENDENCIES += host-autoconf-archive glibmm host-doxygen else LIBSIGROK_CONF_OPTS += --disable-cxx endif
Signature · 1 line
2.1.4
PATCH v2 3/3 Revert "libsigrok: mark libsigrokcxx as broken"
In reply to Bartosz GolaszewskiThis reverts commit 41e81b7ae149319950814efe3c39acb1200167d2.
Doxygen dependency issue for libsigrokcxx has been fixed.
--- package/libsigrok/Config.in | 3 --- package/pulseview/Config.in | 2 -- 2 files changed, 5 deletions(-)
package/libsigrok/Config.in +0 -3
@@ -22,15 +22,12 @@ config BR2_PACKAGE_LIBSIGROKCXX bool "build C++ bindings" select BR2_PACKAGE_GLIBMM depends on BR2_INSTALL_LIBSTDCPP - # requires doxygen, which isn't packaged in Buildroot - depends on BROKEN help Build libsigrok C++ bindings as well. comment "C++ bindings need a toolchain w/ C++" depends on BR2_PACKAGE_LIBSIGROK depends on !BR2_INSTALL_LIBSTDCPP - depends on BROKEN endif
package/pulseview/Config.in +0 -2
@@ -15,7 +15,6 @@ config BR2_PACKAGE_PULSEVIEW depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU depends on BR2_INSTALL_LIBSTDCPP - depends on BROKEN # libsigrokcxx help PulseView is a Qt based logic analyzer, oscilloscope and MSO GUI for sigrok.
@@ -26,4 +25,3 @@ comment "pulseview needs a toolchain w/ wchar, threads, C++" depends on BR2_USE_MMU depends on BR2_PACKAGE_QT5 depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP - depends on BROKEN # libsigrokcxx
Signature · 1 line
2.1.4
PATCH v2 1/3 doxygen: new package
In reply to Bartosz Golaszewski2015-04-10 10:16 GMT+02:00 Bartosz Golaszewski <[email protected]>:
Quoted 50 lines
Host package only.
Signed-off-by Bartosz Golaszewski <[email protected]>--- package/doxygen/doxygen.hash | 2 ++ package/doxygen/doxygen.mk | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 package/doxygen/doxygen.hash create mode 100644 package/doxygen/doxygen.mkpackage/doxygen/doxygen.hash new file +2
-0@@ -0,0 +1,2 @@ +# Computed locally +sha256 d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec doxygen-1.8.9.1.src.tar.gzpackage/doxygen/doxygen.mk new file +25
-1@@ -0,0 +1,25 @@ +################################################################################ +# +# doxygen +# +################################################################################ + +DOXYGEN_VERSION = 1.8.9.1 +DOXYGEN_SOURCE = doxygen-$(DOXYGEN_VERSION).src.tar.gz +DOXYGEN_SITE = http://ftp.stack.nl/pub/users/dimitri/ +DOXYGEN_LICENSE = GPLv2 +DOXYGEN_LICENSE_FILES = LICENSE + +define HOST_DOXYGEN_CONFIGURE_CMDS + (cd $(@D); ./configure --shared --prefix=$(HOST_DIR)/usr) +endef + +define DOXYGEN_BUILD_CMDS + ($(MAKE) -C $(@D)) +endef + +define HOST_DOXYGEN_INSTALL_CMDS + ($(MAKE) install -C $(@D)) +endef + +$(eval $(host-autotools-package)) --
Quoted 2 lines
2.1.4
Sorry, for that - I eventually forgot to change host-autotools-package to host-generic-package. Surprisingly it works.
Version 3 coming right up.
Best regards,
Bartosz Golaszewski
PATCH v2 1/3 doxygen: new package
Dear Bartosz Golaszewski,
Quoted 2 lines · Bartosz Golaszewski
Sorry, for that - I eventually forgot to change host-autotools-package to host-generic-package. Surprisingly it works.
This is not surprising: host-autotools-package allows you to override <pkg>_CONFIGURE_CMDS, <pkg>_BUILD_CMDS and <pkg>_INSTALL_*_CMDS.
Also, in your v3, remove the parenthesis:
($(MAKE) -C $(@D))
should be just:
$(MAKE) -C $(@D)
And add a comment in the .mk file to explain why we're not using host-autotools-package even if there is a ./configure script being called.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com