Skip to contentSkip to conversation

gSOAP

PATCH Jan Paesmans 1 participant 1 message Dec 22, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

In the gSOAP package I noticed the following patch was applied to the native build: use-just-built-binary.patch
This patches the makefiles of gSOAP so that the correct executable is used. However the problem originates from the fact that the makefile variable $(SOAP) is overridden in gsoap_${PV}.bb with the following directive:

EXTRA_OEMAKE = "SOAP=${STAGING_BINDIR_NATIVE}/soapcpp2"

Instead of patching the makefiles of gsoap, I've come up with a simpler solution.

In the gsoap-native_*.bb files, overwrite EXTRA_OEMAKE like so:

EXTRA_OEMAKE = ""

This removes the problem with building gsoap natively and not using the correct executable.

Please find my patch in attachment.

Regards,

Jan

---
 .../use-just-built-binary-2.7.13.patch             |   12 ------------
 .../gsoap/gsoap-native/use-just-built-binary.patch |   19 -------------------
 recipes/gsoap/gsoap-native_2.7.13.bb               |    2 +-
 recipes/gsoap/gsoap-native_2.7.7.bb                |    2 +-
 4 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644
recipes/gsoap/gsoap-native/use-just-built-binary-2.7.13.patch
 delete mode 100644 recipes/gsoap/gsoap-native/use-just-built-binary.patch
(quoted diff) +0 -0

b/recipes/gsoap/gsoap-native/use-just-built-binary-2.7.13.patch deleted file mode 100644
index 25a8ef0..0000000

recipes/gsoap/gsoap-native/use-just-built-binary-2.7.13.patch deleted +0 -1
@@ -1,12 +0,0 @@
-diff -urN gsoap-2.7.orig/gsoap/wsdl/Makefile.am

gsoap-2.7.orig/gsoap/wsdl/Makefile.am
---- gsoap-2.7.orig/gsoap/wsdl/Makefile.am 2009-03-21 22:24:42.000000000 +0100
-+++ gsoap-2.7.orig/gsoap/wsdl/Makefile.am 2009-04-07 11:30:50.000000000 +0200
-@@ -17,7 +17,7 @@ BUILT_SOURCES=$(SOAP_CPP_SRC)
- # WSDL2H_EXTRA_LIBS=-lssl -lcrypto -lz # defined in configure.in -
- $(SOAP_CPP_SRC) : $(SOAPHEADER)
-- $(SOAP) $(SOAP_FLAGS) $(SOAPHEADER)
-+ ../src/soapcpp2 $(SOAP_FLAGS) $(SOAPHEADER)
-
- #LIBS=
-

(quoted diff) +0 -0

b/recipes/gsoap/gsoap-native/use-just-built-binary.patch deleted file mode 100644
index f7e4811..0000000

recipes/gsoap/gsoap-native/use-just-built-binary.patch deleted +0 -19
@@ -1,19 +0,0 @@
----
- soapcpp2/wsdl/Makefile.am |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- gsoap-2.7.orig/soapcpp2/wsdl/Makefile.am
-+++ gsoap-2.7/soapcpp2/wsdl/Makefile.am
-@@ -13,11 +13,11 @@ SOAP_CPP_SRC=wsdlC.cpp
- SOAPHEADER=wsdl.h
- SOAP_FLAGS=-SC -pwsdl
- BUILT_SOURCES=$(SOAP_CPP_SRC)
-
- $(SOAP_CPP_SRC) : $(SOAPHEADER)
--	$(SOAP) $(SOAP_FLAGS) $(SOAPHEADER)
-+	../src/soapcpp2 $(SOAP_FLAGS) $(SOAPHEADER)
-
- #LIBS=
-
- bin_PROGRAMS=wsdl2h
-
(quoted diff) +0 -0

b/recipes/gsoap/gsoap-native_2.7.13.bb
index 3ed78d0..f0370be 100644

recipes/gsoap/gsoap-native_2.7.13.bb +1 -1
@@ -2,7 +2,7 @@ require gsoap_${PV}.inc
 
 DEPENDS = ""
 
-SRC_URI += "file://use-just-built-binary-2.7.13.patch;patch=1"
+EXTRA_OEMAKE = ""
 
 inherit native
 
(quoted diff) +0 -0

b/recipes/gsoap/gsoap-native_2.7.7.bb
index 206208d..0b8a4b8 100644

recipes/gsoap/gsoap-native_2.7.7.bb +1 -1
@@ -3,7 +3,7 @@ require gsoap_${PV}.bb
 DEPENDS = ""
 PR = "r1"
 
-SRC_URI += "file://use-just-built-binary.patch;patch=1"
+EXTRA_OEMAKE = ""
 
 inherit native
 

--
1.6.3.3

From 09f84675cd47d94ff937adc08c213392c58ba629 Mon Sep 17 00:00:00 2001
From: Jan Paesmans <[email protected]>
Date: Tue, 22 Dec 2009 09:56:22 +0100
Subject: [PATCH] redefine EXTRA_OEMAKE iso patching gSOAP package makefiles

---
 .../use-just-built-binary-2.7.13.patch             |   12 ------------
 .../gsoap/gsoap-native/use-just-built-binary.patch |   19 -------------------
 recipes/gsoap/gsoap-native_2.7.13.bb               |    2 +-
 recipes/gsoap/gsoap-native_2.7.7.bb                |    2 +-
 4 files changed, 2 insertions(+), 33 deletions(-)
 delete mode 100644 recipes/gsoap/gsoap-native/use-just-built-binary-2.7.13.patch
 delete mode 100644 recipes/gsoap/gsoap-native/use-just-built-binary.patch
recipes/gsoap/gsoap-native/use-just-built-binary-2.7.13.patch deleted +0 -12
deleted file mode 100644
index 25a8ef0..0000000
@@ -1,12 +0,0 @@
-diff -urN gsoap-2.7.orig/gsoap/wsdl/Makefile.am gsoap-2.7.orig/gsoap/wsdl/Makefile.am
---- gsoap-2.7.orig/gsoap/wsdl/Makefile.am	2009-03-21 22:24:42.000000000 +0100
-+++ gsoap-2.7.orig/gsoap/wsdl/Makefile.am	2009-04-07 11:30:50.000000000 +0200
-@@ -17,7 +17,7 @@ BUILT_SOURCES=$(SOAP_CPP_SRC)
- # WSDL2H_EXTRA_LIBS=-lssl -lcrypto -lz # defined in configure.in
- 
- $(SOAP_CPP_SRC) : $(SOAPHEADER)
--	$(SOAP) $(SOAP_FLAGS) $(SOAPHEADER)
-+	../src/soapcpp2 $(SOAP_FLAGS) $(SOAPHEADER)
- 
- #LIBS=
- 
recipes/gsoap/gsoap-native/use-just-built-binary.patch deleted +0 -19
deleted file mode 100644
index f7e4811..0000000
@@ -1,19 +0,0 @@
----
- soapcpp2/wsdl/Makefile.am |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
---- gsoap-2.7.orig/soapcpp2/wsdl/Makefile.am
-+++ gsoap-2.7/soapcpp2/wsdl/Makefile.am
-@@ -13,11 +13,11 @@ SOAP_CPP_SRC=wsdlC.cpp
- SOAPHEADER=wsdl.h
- SOAP_FLAGS=-SC -pwsdl
- BUILT_SOURCES=$(SOAP_CPP_SRC)
- 
- $(SOAP_CPP_SRC) : $(SOAPHEADER)
--	$(SOAP) $(SOAP_FLAGS) $(SOAPHEADER)
-+	../src/soapcpp2 $(SOAP_FLAGS) $(SOAPHEADER)
- 
- #LIBS=
- 
- bin_PROGRAMS=wsdl2h
- 
recipes/gsoap/gsoap-native_2.7.13.bb +1 -1
index 3ed78d0..f0370be 100644
@@ -2,7 +2,7 @@ require gsoap_${PV}.inc
 
 DEPENDS = ""
 
-SRC_URI += "file://use-just-built-binary-2.7.13.patch;patch=1"
+EXTRA_OEMAKE = ""
 
 inherit native
 
recipes/gsoap/gsoap-native_2.7.7.bb +1 -1
index 206208d..0b8a4b8 100644
@@ -3,7 +3,7 @@ require gsoap_${PV}.bb
 DEPENDS = ""
 PR = "r1"
 
-SRC_URI += "file://use-just-built-binary.patch;patch=1"
+EXTRA_OEMAKE = ""
 
 inherit native
 
Signature · 1 line
1.6.3.3