Skip to contentSkip to conversation

ipsec-tools: Upgrade to 0.8.1 and fix build with gcc 4.8

PATCH In review Khem Raj 2 participants 4 messages Jun 13, 2013 – Jun 14, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 ipsec-tools: Upgrade to 0.8.1 and fix build with gcc 4.8

---
 .../ipsec-tools/files/ipsec-tools-install.patch    |   18 ----------
 .../0001-Fix-warning-with-gcc-4.8.patch            |   35 ++++++++++++++++++++
 .../ipsec-tools/ipsec-tools_0.7.2.bb               |    7 ----
 .../{ipsec-tools.inc => ipsec-tools_0.8.1.bb}      |   13 ++++----
 4 files changed, 42 insertions(+), 31 deletions(-)
 delete mode 100644 meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch
 create mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch
 delete mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb
 rename meta-networking/recipes-support/ipsec-tools/{ipsec-tools.inc => ipsec-tools_0.8.1.bb} (83%)
meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch deleted +0 -18
deleted file mode 100644
index 85035b1..0000000
@@ -1,18 +0,0 @@
-Avoid attempting to install vmbuf.h twice
-
-Upstream-Status: Accepted
-
-Taken from pld-linux.org:
-http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ipsec-tools/ipsec-tools-install.patch
-
---- ipsec-tools-0.7.2/src/racoon/Makefile.am~	2008-07-23 13:48:40.000000000 +0200
-+++ ipsec-tools-0.7.2/src/racoon/Makefile.am	2009-07-04 01:43:48.148433975 +0200
-@@ -3,7 +3,7 @@
- sbin_PROGRAMS = racoon racoonctl plainrsa-gen
- noinst_PROGRAMS = eaytest
- include_racoon_HEADERS = racoonctl.h var.h vmbuf.h misc.h gcmalloc.h admin.h \
--	schedule.h sockmisc.h vmbuf.h isakmp_var.h isakmp.h isakmp_xauth.h \
-+	schedule.h sockmisc.h isakmp_var.h isakmp.h isakmp_xauth.h \
- 	isakmp_cfg.h isakmp_unity.h ipsec_doi.h evt.h
- lib_LTLIBRARIES = libracoon.la
- 
meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch new file +35 -0
new file mode 100644
index 0000000..569b545
@@ -0,0 +1,35 @@
+From fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 2001
+From: Paul Barker <[email protected]>
+Date: Wed, 12 Jun 2013 17:39:06 +0100
+Subject: [PATCH] Fix warning with gcc 4.8.
+
+The line "memset(pair, 0, sizeof(pair));" was causing the following warning:
+
+	error: argument to 'sizeof' in 'memset' call is the same expression as
+	the destination; did you mean to dereference
+
+Compiling with -Werror (as specified in configure.ac) was causing this warning
+to become an error. The line itself is not needed as memory is allocated via
+calloc which performs zero initialization. Therefore, the line is removed to fix
+the warning and does not need replacing anything.
+---
+ src/racoon/ipsec_doi.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+Upstream-Status: Submitted
+
+diff --git a/src/racoon/ipsec_doi.c b/src/racoon/ipsec_doi.c
+index 2b48d49..4e9d3a8 100644
+--- a/src/racoon/ipsec_doi.c
++++ b/src/racoon/ipsec_doi.c
+@@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doitype, sittype)
+ 			"failed to get buffer.\n");
+ 		goto bad;
+ 	}
+-	memset(pair, 0, sizeof(pair));
+ 
+ 	bp = (caddr_t)(sab + 1);
+ 	tlen = sa->l - sizeof(*sab);
+-- 
+1.8.3
+
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb deleted +0 -7
deleted file mode 100644
index 255246e..0000000
@@ -1,7 +0,0 @@
-require ipsec-tools.inc
-
-LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
-
-SRC_URI += "file://ipsec-tools-install.patch"
-SRC_URI[ipsec-tools-0.7.2.md5sum] = "72861f005746ee27984b2ee715ecc629"
-SRC_URI[ipsec-tools-0.7.2.sha256sum] = "08722ff6c62de3e042fef337454f03622a79053108d6dcc686c9c854f9f9e031"
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +7 -6
similarity index 83%
rename from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc
rename to meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb
index 264b49a..ef753c0 100644
@@ -3,9 +3,15 @@ Linux-2.6 IPsec implementation."
 HOMEPAGE = "http://ipsec-tools.sourceforge.net/"
 SECTION = "console/network"
 LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
+
 DEPENDS = "virtual/kernel openssl readline flex"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/ipsec-tools/ipsec-tools-${PV}.tar.bz2;name=ipsec-tools-${PV}"
+SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${PV}.tar.bz2 \
+           file://0001-Fix-warning-with-gcc-4.8.patch \
+          "
+SRC_URI[md5sum] = "d38b39f291ba2962387c3232e7335dd8"
+SRC_URI[sha256sum] = "fa4a95bb36842f001b84c4e7a1bb727e3ee06147edbc830a881d63abe8153dd4"
 
 inherit autotools
 
@@ -44,8 +50,3 @@ EXTRA_OECONF = "--with-kernel-headers=${STAGING_INCDIR} \
 
 # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530527
 CFLAGS += "-fno-strict-aliasing"
-
-# Sometimes it attempts to use y.tab.c before it is actually
-# generated. Note that the failure case is very rare, but it does
-# happen.
-PARALLEL_MAKE = ""
Signature · 1 line
1.7.9.5
#1 lore raw

Hey Khem,

Quoted 11 lines · [[oe] [meta-networking][PATCH] ipsec-tools: Upgrade to 0.8.1 and fix build…
---
 .../ipsec-tools/files/ipsec-tools-install.patch    |   18 ----------
 .../0001-Fix-warning-with-gcc-4.8.patch            |   35 ++++++++++++++++++++
 .../ipsec-tools/ipsec-tools_0.7.2.bb               |    7 ----
 .../{ipsec-tools.inc => ipsec-tools_0.8.1.bb}      |   13 ++++----
 4 files changed, 42 insertions(+), 31 deletions(-)
 delete mode 100644 meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch
 create mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch
 delete mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb
 rename meta-networking/recipes-support/ipsec-tools/{ipsec-tools.inc => ipsec-tools_0.8.1.bb} (83%)

No objections here, I was just doing a final review of the patch before pushing it, in fact, but two questions occurred to me.

- Any reason to ditch the .inc file? I can imagine an answer to the question, but it does seem like it might be useful.

- I had no problems testing with it but was it intentional to remove PARALLEL_MAKE=""? I only ask because it's been part of the previous .inc file since the beginning of time, AFAICT.

-J.

Quoted 112 lines
meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch deleted +0 -18
deleted file mode 100644
index 85035b1..0000000
@@ -1,18 +0,0 @@
-Avoid attempting to install vmbuf.h twice
-
-Upstream-Status: Accepted
-
-Taken from pld-linux.org:
-http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ipsec-tools/ipsec-tools-install.patch
-
---- ipsec-tools-0.7.2/src/racoon/Makefile.am~	2008-07-23 13:48:40.000000000 +0200
-+++ ipsec-tools-0.7.2/src/racoon/Makefile.am	2009-07-04 01:43:48.148433975 +0200
-@@ -3,7 +3,7 @@
- sbin_PROGRAMS = racoon racoonctl plainrsa-gen
- noinst_PROGRAMS = eaytest
- include_racoon_HEADERS = racoonctl.h var.h vmbuf.h misc.h gcmalloc.h admin.h \
--	schedule.h sockmisc.h vmbuf.h isakmp_var.h isakmp.h isakmp_xauth.h \
-+	schedule.h sockmisc.h isakmp_var.h isakmp.h isakmp_xauth.h \
- 	isakmp_cfg.h isakmp_unity.h ipsec_doi.h evt.h
- lib_LTLIBRARIES = libracoon.la
- 
meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch new file +35 -0
new file mode 100644
index 0000000..569b545
@@ -0,0 +1,35 @@
+From fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 2001
+From: Paul Barker <[email protected]>
+Date: Wed, 12 Jun 2013 17:39:06 +0100
+Subject: [PATCH] Fix warning with gcc 4.8.
+
+The line "memset(pair, 0, sizeof(pair));" was causing the following warning:
+
+	error: argument to 'sizeof' in 'memset' call is the same expression as
+	the destination; did you mean to dereference
+
+Compiling with -Werror (as specified in configure.ac) was causing this warning
+to become an error. The line itself is not needed as memory is allocated via
+calloc which performs zero initialization. Therefore, the line is removed to fix
+the warning and does not need replacing anything.
+---
+ src/racoon/ipsec_doi.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+Upstream-Status: Submitted
+
+diff --git a/src/racoon/ipsec_doi.c b/src/racoon/ipsec_doi.c
+index 2b48d49..4e9d3a8 100644
+--- a/src/racoon/ipsec_doi.c
++++ b/src/racoon/ipsec_doi.c
+@@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doitype, sittype)
+ 			"failed to get buffer.\n");
+ 		goto bad;
+ 	}
+-	memset(pair, 0, sizeof(pair));
+ 
+ 	bp = (caddr_t)(sab + 1);
+ 	tlen = sa->l - sizeof(*sab);
+-- 
+1.8.3
+
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb deleted +0 -7
deleted file mode 100644
index 255246e..0000000
@@ -1,7 +0,0 @@
-require ipsec-tools.inc
-
-LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
-
-SRC_URI += "file://ipsec-tools-install.patch"
-SRC_URI[ipsec-tools-0.7.2.md5sum] = "72861f005746ee27984b2ee715ecc629"
-SRC_URI[ipsec-tools-0.7.2.sha256sum] = "08722ff6c62de3e042fef337454f03622a79053108d6dcc686c9c854f9f9e031"
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +7 -6
similarity index 83%
rename from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc
rename to meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb
index 264b49a..ef753c0 100644
@@ -3,9 +3,15 @@ Linux-2.6 IPsec implementation."
 HOMEPAGE = "http://ipsec-tools.sourceforge.net/"
 SECTION = "console/network"
 LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
+
 DEPENDS = "virtual/kernel openssl readline flex"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/ipsec-tools/ipsec-tools-${PV}.tar.bz2;name=ipsec-tools-${PV}"
+SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${PV}.tar.bz2 \
+           file://0001-Fix-warning-with-gcc-4.8.patch \
+          "
+SRC_URI[md5sum] = "d38b39f291ba2962387c3232e7335dd8"
+SRC_URI[sha256sum] = "fa4a95bb36842f001b84c4e7a1bb727e3ee06147edbc830a881d63abe8153dd4"
 
 inherit autotools
 
@@ -44,8 +50,3 @@ EXTRA_OECONF = "--with-kernel-headers=${STAGING_INCDIR} \
 
 # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530527
 CFLAGS += "-fno-strict-aliasing"
-
-# Sometimes it attempts to use y.tab.c before it is actually
-# generated. Note that the failure case is very rare, but it does
-# happen.
-PARALLEL_MAKE = ""
Signature · 2 lines
-Joe MacDonald.
:wq
author
#2 lore raw
Quoted 16 lines · Joe MacDonald

Hey Khem,

Quoted 11 lines · [[oe] [meta-networking][PATCH] ipsec-tools: Upgrade to 0.8.1 and fix build…

---

.../ipsec-tools/files/ipsec-tools-install.patch    |   18 ----------
.../0001-Fix-warning-with-gcc-4.8.patch            |   35 ++++++++++++++++++++
.../ipsec-tools/ipsec-tools_0.7.2.bb               |    7 ----
.../{ipsec-tools.inc => ipsec-tools_0.8.1.bb}      |   13 ++++----
4 files changed, 42 insertions(+), 31 deletions(-)

delete mode 100644 meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch create mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch delete mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb
rename meta-networking/recipes-support/ipsec-tools/{ipsec-tools.inc => ipsec-tools_0.8.1.bb} (83%)

Quoted 5 lines

No objections here, I was just doing a final review of the patch before pushing it, in fact, but two questions occurred to me.

- Any reason to ditch the .inc file? I can imagine an answer to the question, but it does seem like it might be useful.

Its not shared. So I thought it better to squash it.

Quoted 4 lines

- I had no problems testing with it but was it intentional to remove PARALLEL_MAKE=""? I only ask because it's been part of the previous .inc file since the beginning of time, AFAICT.

All my builds have been using -j14 and -j20 on multiple occasions and different arches and it never failed for me.

Quoted 122 lines

-J.

Quoted 112 lines
meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch deleted +0 -18
deleted file mode 100644
index 85035b1..0000000
@@ -1,18 +0,0 @@
-Avoid attempting to install vmbuf.h twice
-
-Upstream-Status: Accepted
-
-Taken from pld-linux.org:
-http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ipsec-tools/ipsec-tools-install.patch
-
---- ipsec-tools-0.7.2/src/racoon/Makefile.am~	2008-07-23 13:48:40.000000000 +0200
-+++ ipsec-tools-0.7.2/src/racoon/Makefile.am	2009-07-04 01:43:48.148433975 +0200
-@@ -3,7 +3,7 @@
- sbin_PROGRAMS = racoon racoonctl plainrsa-gen
- noinst_PROGRAMS = eaytest
- include_racoon_HEADERS = racoonctl.h var.h vmbuf.h misc.h gcmalloc.h admin.h \
--	schedule.h sockmisc.h vmbuf.h isakmp_var.h isakmp.h isakmp_xauth.h \
-+	schedule.h sockmisc.h isakmp_var.h isakmp.h isakmp_xauth.h \
- 	isakmp_cfg.h isakmp_unity.h ipsec_doi.h evt.h
- lib_LTLIBRARIES = libracoon.la
- 
meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch new file +35 -0
new file mode 100644
index 0000000..569b545
@@ -0,0 +1,35 @@
+From fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 2001
+From: Paul Barker <[email protected]>
+Date: Wed, 12 Jun 2013 17:39:06 +0100
+Subject: [PATCH] Fix warning with gcc 4.8.
+
+The line "memset(pair, 0, sizeof(pair));" was causing the following warning:
+
+	error: argument to 'sizeof' in 'memset' call is the same expression as
+	the destination; did you mean to dereference
+
+Compiling with -Werror (as specified in configure.ac) was causing this warning
+to become an error. The line itself is not needed as memory is allocated via
+calloc which performs zero initialization. Therefore, the line is removed to fix
+the warning and does not need replacing anything.
+---
+ src/racoon/ipsec_doi.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+Upstream-Status: Submitted
+
+diff --git a/src/racoon/ipsec_doi.c b/src/racoon/ipsec_doi.c
+index 2b48d49..4e9d3a8 100644
+--- a/src/racoon/ipsec_doi.c
++++ b/src/racoon/ipsec_doi.c
+@@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doitype, sittype)
+ 			"failed to get buffer.\n");
+ 		goto bad;
+ 	}
+-	memset(pair, 0, sizeof(pair));
+ 
+ 	bp = (caddr_t)(sab + 1);
+ 	tlen = sa->l - sizeof(*sab);
+-- 
+1.8.3
+
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb deleted +0 -7
deleted file mode 100644
index 255246e..0000000
@@ -1,7 +0,0 @@
-require ipsec-tools.inc
-
-LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
-
-SRC_URI += "file://ipsec-tools-install.patch"
-SRC_URI[ipsec-tools-0.7.2.md5sum] = "72861f005746ee27984b2ee715ecc629"
-SRC_URI[ipsec-tools-0.7.2.sha256sum] = "08722ff6c62de3e042fef337454f03622a79053108d6dcc686c9c854f9f9e031"
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -0
similarity index 83%
rename from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc
rename to meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb
index 264b49a..ef753c0 100644
@@ -3,9 +3,15 @@ Linux-2.6 IPsec implementation."

HOMEPAGE = "http://ipsec-tools.sourceforge.net/"
SECTION = "console/network"
LICENSE = "BSD"

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +2 -0
+LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
+

DEPENDS = "virtual/kernel openssl readline flex"

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +5 -1
-SRC_URI = "${SOURCEFORGE_MIRROR}/ipsec-tools/ipsec-tools-${PV}.tar.bz2;name=ipsec-tools-${PV}"
+SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${PV}.tar.bz2 \
+           file://0001-Fix-warning-with-gcc-4.8.patch \
+          "
+SRC_URI[md5sum] = "d38b39f291ba2962387c3232e7335dd8"
+SRC_URI[sha256sum] = "fa4a95bb36842f001b84c4e7a1bb727e3ee06147edbc830a881d63abe8153dd4"

inherit autotools

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -0
@@ -44,8 +50,3 @@ EXTRA_OECONF = "--with-kernel-headers=${STAGING_INCDIR} \
 
 # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530527

CFLAGS += "-fno-strict-aliasing"

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -5
-
-# Sometimes it attempts to use y.tab.c before it is actually
-# generated. Note that the failure case is very rare, but it does
-# happen.
-PARALLEL_MAKE = ""
Signature · 6 lines
-Joe MacDonald.
:wq
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
#3 lore raw
Quoted 19 lines · [Re: [oe] [meta-networking][PATCH] ipsec-tools: Upgrade to 0.8.1 and fix build…
Quoted 16 lines · Joe MacDonald

Hey Khem,

Quoted 11 lines · [[oe] [meta-networking][PATCH] ipsec-tools: Upgrade to 0.8.1 and fix build…

---

.../ipsec-tools/files/ipsec-tools-install.patch    |   18 ----------
.../0001-Fix-warning-with-gcc-4.8.patch            |   35 ++++++++++++++++++++
.../ipsec-tools/ipsec-tools_0.7.2.bb               |    7 ----
.../{ipsec-tools.inc => ipsec-tools_0.8.1.bb}      |   13 ++++----
4 files changed, 42 insertions(+), 31 deletions(-)

delete mode 100644 meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch create mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch delete mode 100644 meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb
rename meta-networking/recipes-support/ipsec-tools/{ipsec-tools.inc => ipsec-tools_0.8.1.bb} (83%)

Quoted 7 lines
Quoted 5 lines

No objections here, I was just doing a final review of the patch before pushing it, in fact, but two questions occurred to me.

- Any reason to ditch the .inc file? I can imagine an answer to the question, but it does seem like it might be useful.

Its not shared. So I thought it better to squash it.

Yeah. I'm not sure if there's value in maintaining the somewhat static pieces separately so the update is smaller on a package update, it does make the diffs a bit easier to read, but this recipe is small anyway. I'm good with this.

Quoted 7 lines
Quoted 5 lines

- I had no problems testing with it but was it intentional to remove PARALLEL_MAKE=""? I only ask because it's been part of the previous .inc file since the beginning of time, AFAICT.

All my builds have been using -j14 and -j20 on multiple occasions and different arches and it never failed for me.

Works for me. All of mine are >15, so I figured if there was anything still wrong, I would've tripped over it, but it's nice to have the extra data point.

So, merged. Thanks.

-J.

Quoted 128 lines
Quoted 109 lines

-J.

Quoted 105 lines
meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.patch deleted +0 -18
deleted file mode 100644
index 85035b1..0000000
@@ -1,18 +0,0 @@
-Avoid attempting to install vmbuf.h twice
-
-Upstream-Status: Accepted
-
-Taken from pld-linux.org:
-http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ipsec-tools/ipsec-tools-install.patch
-
---- ipsec-tools-0.7.2/src/racoon/Makefile.am~	2008-07-23 13:48:40.000000000 +0200
-+++ ipsec-tools-0.7.2/src/racoon/Makefile.am	2009-07-04 01:43:48.148433975 +0200
-@@ -3,7 +3,7 @@
- sbin_PROGRAMS = racoon racoonctl plainrsa-gen
- noinst_PROGRAMS = eaytest
- include_racoon_HEADERS = racoonctl.h var.h vmbuf.h misc.h gcmalloc.h admin.h \
--	schedule.h sockmisc.h vmbuf.h isakmp_var.h isakmp.h isakmp_xauth.h \
-+	schedule.h sockmisc.h isakmp_var.h isakmp.h isakmp_xauth.h \
- 	isakmp_cfg.h isakmp_unity.h ipsec_doi.h evt.h
- lib_LTLIBRARIES = libracoon.la
- 
meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-with-gcc-4.8.patch new file +35 -0
new file mode 100644
index 0000000..569b545
@@ -0,0 +1,35 @@
+From fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 2001
+From: Paul Barker <[email protected]>
+Date: Wed, 12 Jun 2013 17:39:06 +0100
+Subject: [PATCH] Fix warning with gcc 4.8.
+
+The line "memset(pair, 0, sizeof(pair));" was causing the following warning:
+
+	error: argument to 'sizeof' in 'memset' call is the same expression as
+	the destination; did you mean to dereference
+
+Compiling with -Werror (as specified in configure.ac) was causing this warning
+to become an error. The line itself is not needed as memory is allocated via
+calloc which performs zero initialization. Therefore, the line is removed to fix
+the warning and does not need replacing anything.
+---
+ src/racoon/ipsec_doi.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+Upstream-Status: Submitted
+
+diff --git a/src/racoon/ipsec_doi.c b/src/racoon/ipsec_doi.c
+index 2b48d49..4e9d3a8 100644
+--- a/src/racoon/ipsec_doi.c
++++ b/src/racoon/ipsec_doi.c
+@@ -1183,7 +1183,6 @@ get_proppair_and_doi_sit(sa, mode, doitype, sittype)
+ 			"failed to get buffer.\n");
+ 		goto bad;
+ 	}
+-	memset(pair, 0, sizeof(pair));
+ 
+ 	bp = (caddr_t)(sab + 1);
+ 	tlen = sa->l - sizeof(*sab);
+-- 
+1.8.3
+
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb deleted +0 -7
deleted file mode 100644
index 255246e..0000000
@@ -1,7 +0,0 @@
-require ipsec-tools.inc
-
-LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
-
-SRC_URI += "file://ipsec-tools-install.patch"
-SRC_URI[ipsec-tools-0.7.2.md5sum] = "72861f005746ee27984b2ee715ecc629"
-SRC_URI[ipsec-tools-0.7.2.sha256sum] = "08722ff6c62de3e042fef337454f03622a79053108d6dcc686c9c854f9f9e031"
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -0
similarity index 83%
rename from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc
rename to meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb
index 264b49a..ef753c0 100644
@@ -3,9 +3,15 @@ Linux-2.6 IPsec implementation."

HOMEPAGE = "http://ipsec-tools.sourceforge.net/"
SECTION = "console/network"
LICENSE = "BSD"

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +2 -0
+LIC_FILES_CHKSUM = "file://src/libipsec/pfkey.c;beginline=6;endline=31;md5=bc9b7ff40beff19fe6bc6aef26bd2b24"
+

DEPENDS = "virtual/kernel openssl readline flex"

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +5 -1
-SRC_URI = "${SOURCEFORGE_MIRROR}/ipsec-tools/ipsec-tools-${PV}.tar.bz2;name=ipsec-tools-${PV}"
+SRC_URI = "ftp://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${PV}.tar.bz2 \
+           file://0001-Fix-warning-with-gcc-4.8.patch \
+          "
+SRC_URI[md5sum] = "d38b39f291ba2962387c3232e7335dd8"
+SRC_URI[sha256sum] = "fa4a95bb36842f001b84c4e7a1bb727e3ee06147edbc830a881d63abe8153dd4"

inherit autotools

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -0
@@ -44,8 +50,3 @@ EXTRA_OECONF = "--with-kernel-headers=${STAGING_INCDIR} \
 
Quoted 14 lines
Quoted 7 lines
meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -0
 # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530527

CFLAGS += "-fno-strict-aliasing"

meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb renamed from meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc +0 -5
-
-# Sometimes it attempts to use y.tab.c before it is actually
-# generated. Note that the failure case is very rare, but it does
-# happen.
-PARALLEL_MAKE = ""
Signature · 6 lines
-Joe MacDonald.
:wq
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
-Joe MacDonald.
:wq