package/pugixml: Enable host build
PATCH 1/3 package/pugixml: Enable host build
Needed for host-waylandpp >= 0.2.5
https://github.com/NilsBrause/waylandpp/commit/433ce65b681c27d54e1e6b9a602f1c8291aabd54
--- package/pugixml/pugixml.mk | 1 + 1 file changed, 1 insertion(+)
package/pugixml/pugixml.mk +1 -0
@@ -31,3 +31,4 @@ PUGIXML_CONF_OPTS += -DBUILD_DEFINES="$(subst $(space),;,$(PUGIXML_BUILD_DEFINES endif $(eval $(cmake-package)) +$(eval $(host-cmake-package))
Signature · 1 line
2.20.1
PATCH 2/3 package/pugixml: enable install of pugixml.pc
Needed for waylandpp >= 0.2.4 to detect pugixml:
https://github.com/NilsBrause/waylandpp/commit/0a61175003a0a34038e39092918768360d2dd1da#diff-af3b638bc2a3e6c650974192a53c7291R39
--- package/pugixml/pugixml.mk | 3 +++ 1 file changed, 3 insertions(+)
package/pugixml/pugixml.mk +3 -0
@@ -30,5 +30,8 @@ ifdef PUGIXML_BUILD_DEFINES PUGIXML_CONF_OPTS += -DBUILD_DEFINES="$(subst $(space),;,$(PUGIXML_BUILD_DEFINES))" endif +PUGIXML_CONF_OPTS += -DBUILD_PKGCONFIG=ON +HOST_PUGIXML_CONF_OPTS += $(PUGIXML_CONF_OPTS) + $(eval $(cmake-package)) $(eval $(host-cmake-package))
Signature · 1 line
2.20.1
PATCH 2/3 package/pugixml: enable install of pugixml.pc
Hello Bernd,
Quoted 13 lines · On Mon, 1 Apr 2019 18:21:57 +0200 Bernd Kuhls <[email protected]> wrote:
Needed for waylandpp >= 0.2.4 to detect pugixml:
https://github.com/NilsBrause/waylandpp/commit/0a61175003a0a34038e39092918768360d2dd1da#diff-af3b638bc2a3e6c650974192a53c7291R39Signed-off-by Bernd Kuhls <[email protected]>--- package/pugixml/pugixml.mk | 3 +++ 1 file changed, 3 insertions(+)package/pugixml/pugixml.mk +0
-0
package/pugixml/pugixml.mk ifdef PUGIXML_BUILD_DEFINES · line 34
Quoted 5 lines
package/pugixml/pugixml.mk +2
-0@@ -30,5 +30,8 @@ ifdef PUGIXML_BUILD_DEFINES PUGIXML_CONF_OPTS += -DBUILD_DEFINES="$(subst $(space),;,$(PUGIXML_BUILD_DEFINES))" endif +PUGIXML_CONF_OPTS += -DBUILD_PKGCONFIG=ON +HOST_PUGIXML_CONF_OPTS += $(PUGIXML_CONF_OPTS)
This is not good: we don't want to have the host version of pugixml have its configuration affected by the options that change the configuration of the target pugixml variant.
In addition, for the host variant, this is doing much more than enabling the installation of pugixml.pc, since all other PUGIXML_CONF_OPTS (especially -DBUILD_DEFINES) will be passed to the host variant.
Could you address this issue and send a v2 ?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 3/3 package/waylandpp: bump version to 0.2.5
In reply to Bernd KuhlsRemoved patch applied upstream:
https://github.com/NilsBrause/waylandpp/commit/242c2c9a188b1a972978fc05dbe70d102bc7c4e1
Bundled pugixml was removed:
https://github.com/NilsBrause/waylandpp/commit/433ce65b681c27d54e1e6b9a602f1c8291aabd54
Use host-pugixml instead.
Updated license hash due to upstream commit:
https://github.com/NilsBrause/waylandpp/commit/f255d61ffd982614c0659be1742383dab06710a2
--- ...iler-error-missing-stdexcept-to-use-.patch | 28 ------------------- package/waylandpp/waylandpp.hash | 4 +-- package/waylandpp/waylandpp.mk | 5 ++-- 3 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 package/waylandpp/0001-scanner-Fix-compiler-error-missing-stdexcept-to-use-.patch
package/waylandpp/0001-scanner-Fix-compiler-error-missing-stdexcept-to-use-.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From 85b61589b0c73f6c6974862af678ed2f82806ac5 Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls <[email protected]> -Date: Thu, 9 Aug 2018 21:44:46 +0200 -Subject: [PATCH] [scanner] Fix compiler error: missing <stdexcept> to use - std::runtime_error - -Patch sent upstream as PR 50. - -Signed-off-by: Bernd Kuhls <[email protected]> ---- - scanner/scanner.cpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/scanner/scanner.cpp b/scanner/scanner.cpp -index 9c97b7c..7019e0a 100644 ---- a/scanner/scanner.cpp -+++ b/scanner/scanner.cpp -@@ -22,6 +22,7 @@ - #include <sstream> - #include <cctype> - #include <cmath> -+#include <stdexcept> - - #include "pugixml.hpp" - --- -2.18.0 -
package/waylandpp/waylandpp.hash +2 -2
@@ -1,4 +1,4 @@ # Locally computed -sha256 ebd4a8447bb65f288cad0e04538f6ec704e155213fc2b9cc1a851534c70aacac waylandpp-0.2.3.tar.gz -sha256 49aa6d728fd13226952c9e3a5a9cae46379b2a501010064760172b5ce7cd94bb LICENSE +sha256 5a4361f73d2bee65bfe54b954ce085c9bfc7bc4429ac2bdc97c10e3b84660907 waylandpp-0.2.5.tar.gz +sha256 8ff91f682a38f8a603b173222a60e8dc71754a79a522a316fb6b76ce138c542c LICENSE sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 scanner/gpl-3.0.txt
package/waylandpp/waylandpp.mk +3 -2
@@ -4,12 +4,13 @@ # ################################################################################ -WAYLANDPP_VERSION = 0.2.3 +WAYLANDPP_VERSION = 0.2.5 WAYLANDPP_SITE = $(call github,NilsBrause,waylandpp,$(WAYLANDPP_VERSION)) WAYLANDPP_LICENSE = MIT, GPL-3.0+ (wayland_scanner) WAYLANDPP_LICENSE_FILES = LICENSE scanner/gpl-3.0.txt WAYLANDPP_INSTALL_STAGING = YES -HOST_WAYLANDPP_DEPENDENCIES = host-pkgconf host-wayland +# pugixml is needed only to build the host version of wayland-scanner++ +HOST_WAYLANDPP_DEPENDENCIES = host-pugixml host-pkgconf host-wayland WAYLANDPP_DEPENDENCIES = libegl host-pkgconf wayland host-waylandpp # host variant of wayland-scanner++ is needed for building the target
Signature · 1 line
2.20.1