Skip to contentSkip to conversation

wvstreams: add recipe for version 4.6.1

PATCH New Mario Domenech Goulart 1 participant 1 message Oct 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 wvstreams: add recipe for version 4.6.1

Recipe based on OE classic's recipe for version 4.4.1, as of 0585ccfa49f71a81652c7f63885202e952ebd0e9.

Summary of changes against OE classic's recipe:

* Apply some Debian patches from
http://patch-tracker.debian.org/package/wvstreams/4.6.1-6

* Minor adjustments for the current build system (add LIC_FILES_CHKSUM, md5 and sha256 sums for SRC_URI, fix LICENSE, remove PR)

* Add --without-valgrind to EXTRA_OECONF

* Disable parallel make, since it was causing errors like

Log data follows:

| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8
| ./CXX -c utils/wvbuffer
| ./CXX -c utils/wvbufferstore
| ./CXX -c utils/wvcont
| /bin/bash: ./CXX: No such file or directory
| /bin/bash: ./CXX: No such file or directory
| /bin/bash: ./CXX: No such file or directory
| * Generating CC using c
| make: * Generating CXX using cc
| *** [utils/wvbuffer.o] Error 127
| make: *** Waiting for unfinished jobs....
| make: *** [utils/wvbufferstore.o] Error 127
| make: *** [utils/wvcont.o] Error 127
| ERROR: oe_runmake failed
| WARNING: .../tmp/work/armv7a-vfp-neon-oel-linux-gnueabi/wvstreams/4.6.1-r0/temp/run.do_compile.19302:1 exit 1 from
|   exit 1
| ERROR: Function failed: do_compile (log file is located at .../tmp/work/armv7a-vfp-neon-oel-linux-gnueabi/wvstreams/4.6.1-r0/temp/log.do_compile.19302)
---
 .../wvdial/wvstreams/04_signed_request.diff        |   13 ++++++
 .../wvdial/wvstreams/05_gcc.diff                   |   41 +++++++++++++++++++
 .../wvdial/wvstreams/06_gcc-4.7.diff               |   18 +++++++++
 .../wvdial/wvstreams/07_buildflags.diff            |   32 +++++++++++++++
 .../recipes-connectivity/wvdial/wvstreams_4.6.1.bb |   42 ++++++++++++++++++++
 5 files changed, 146 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/wvdial/wvstreams/04_signed_request.diff
 create mode 100644 meta-oe/recipes-connectivity/wvdial/wvstreams/05_gcc.diff
 create mode 100644 meta-oe/recipes-connectivity/wvdial/wvstreams/06_gcc-4.7.diff
 create mode 100644 meta-oe/recipes-connectivity/wvdial/wvstreams/07_buildflags.diff
 create mode 100644 meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb
meta-oe/recipes-connectivity/wvdial/wvstreams/04_signed_request.diff new file +13 -0
new file mode 100644
index 0000000..5ab633b
@@ -0,0 +1,13 @@
+Index: wvstreams-4.6/crypto/wvx509.cc
+===================================================================
+--- wvstreams-4.6.orig/crypto/wvx509.cc	2009-07-29 11:58:16.000000000 -0400
++++ wvstreams-4.6/crypto/wvx509.cc	2009-07-29 11:58:43.000000000 -0400
+@@ -325,7 +325,7 @@
+     }
+ 
+     int verify_result = X509_REQ_verify(certreq, pk);
+-    if (verify_result == 0)
++    if (verify_result == 0 || verify_result == -1)
+     {
+ 	debug(WvLog::Warning, "Self signed request failed");
+ 	X509_REQ_free(certreq);
meta-oe/recipes-connectivity/wvdial/wvstreams/05_gcc.diff new file +41 -0

41 lines not on this page · raw message

meta-oe/recipes-connectivity/wvdial/wvstreams/06_gcc-4.7.diff new file +18 -0
new file mode 100644
index 0000000..a75067a
@@ -0,0 +1,18 @@
+Description: Fix FTBFS with gcc-4.7
+ Small header include change. This is borderlinde cosmetic, but still needed
+ to prevent the FTBFS.
+Author: Paul Tagliamonte <[email protected]>
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/667418
+Last-Update: 2012-04-13
+
+--- wvstreams-4.6.1.orig/utils/wvuid.cc
++++ wvstreams-4.6.1/utils/wvuid.cc
+@@ -33,6 +33,7 @@ wvuid_t wvgetuid()
+ 
+ #else // not WIN32
+ 
++#include <unistd.h>
+ 
+ WvString wv_username_from_uid(wvuid_t uid)
+ {
meta-oe/recipes-connectivity/wvdial/wvstreams/07_buildflags.diff new file +32 -0
new file mode 100644
index 0000000..ec99dcd
@@ -0,0 +1,32 @@
+Index: b/gen-cc
+===================================================================
+--- a/gen-cc
++++ b/gen-cc
+@@ -15,6 +15,11 @@
+ 	shift
+ 	shift
+ 	
++	echo $CC \$MODE -o \$BASE.o \$BASE.$EXT \\
++	        -MMD -MF \$DEPFILE -MP -MQ \$BASE.o \\
++	        $CPPFLAGS \\
++	        $CFLAGS \\
++	        "\$@"
+ 	$CC \$MODE -o \$BASE.o \$BASE.$EXT \\
+ 	        -MMD -MF \$DEPFILE -MP -MQ \$BASE.o \\
+ 	        $CPPFLAGS \\
+Index: b/wvrules-posix.mk
+===================================================================
+--- a/wvrules-posix.mk
++++ b/wvrules-posix.mk
+@@ -35,11 +35,6 @@
+ # Default compiler we use for linking
+ WVLINK_CC = $(CXX)
+ 
+-ifneq ("$(enable_optimization)", "no")
+-  CXXFLAGS+=-O2
+-  CFLAGS+=-O2
+-endif
+-
+ ifneq ("$(enable_warnings)", "no")
+   CXXFLAGS+=-Wall -Woverloaded-virtual
+   CFLAGS+=-Wall
meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.7.10.4