Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by mail.openembedded.org (Postfix) with ESMTP id E280D61AD1 for ; Fri, 14 Jun 2013 15:06:44 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id hz11so742227pad.30 for ; Fri, 14 Jun 2013 08:06:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=ieA5H2lA2giAXNZODg4l1+zpxTElDQHhIEZpHjAhIuo=; b=dBOpCmEPhJ3ITO089GyuvM5Nrvt6Nj5HZOWzcSlmKrLuMtlinH+K+ljcjwp6Nivh8l pU98OHBdXcK4oswjwqUGMPcZ9z0bUBlhsMVoqWbL/4+n4CNY40cSfyxSjbRLmQjz6SIn SXQ75pMOu38O5LTjtImTx1mDm5GynV4h06tOAzsWeKQfkwzSiXP4XuFn4/Rq6A+DxxSY 31ljl661j9Cc0e/ZZTLPlQfCRY8emnk5yIrTRWNBTcClv3Ej3tSHzJhHpfkMXXPNiB/o DHA/wpwe/8twMkS0q94fFWJhdZd7S17T+iTrKmKVAjF1BaHGps6I8x/CCHHDNwNr5G2q PcXw== X-Received: by 10.66.21.37 with SMTP id s5mr2939235pae.103.1371222405903; Fri, 14 Jun 2013 08:06:45 -0700 (PDT) Received: from vinay-sslvpn-nc.jnpr.net (natint3.juniper.net. [66.129.224.36]) by mx.google.com with ESMTPSA id ri8sm2637319pbc.3.2013.06.14.08.06.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Jun 2013 08:06:45 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) From: Khem Raj In-Reply-To: <20130614135157.GA16601@windriver.com> Date: Fri, 14 Jun 2013 08:06:43 -0700 Message-Id: <0223AC4E-DA7B-4456-BCB4-F54B4FE1166A@gmail.com> References: <1371114240-24672-1-git-send-email-raj.khem@gmail.com> <20130614135157.GA16601@windriver.com> To: openembedded-devel@lists.openembedded.org X-Mailer: Apple Mail (2.1508) Subject: Re: [meta-networking][PATCH] ipsec-tools: Upgrade to 0.8.1 and fix build with gcc 4.8 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jun 2013 15:06:45 -0000 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On Jun 14, 2013, at 6:51 AM, Joe MacDonald = wrote: > Hey Khem, >=20 > [[oe] [meta-networking][PATCH] ipsec-tools: Upgrade to 0.8.1 and fix = build with gcc 4.8] On 13.06.13 (Thu 02:04) Khem Raj wrote: >=20 >> Signed-off-by: Khem Raj >> --- >> .../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 =3D> 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.patc= h >> create mode 100644 = meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning-w= ith-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 = =3D> ipsec-tools_0.8.1.bb} (83%) >=20 > No objections here, I was just doing a final review of the patch = before > pushing it, in fact, but two questions occurred to me. >=20 > - 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. >=20 > - I had no problems testing with it but was it intentional to remove > PARALLEL_MAKE=3D""? 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.=20 >=20 > -J. >=20 >>=20 >> diff --git = a/meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.pa= tch = b/meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.pa= tch >> deleted file mode 100644 >> index 85035b1..0000000 >> --- = a/meta-networking/recipes-support/ipsec-tools/files/ipsec-tools-install.pa= tch >> +++ /dev/null >> @@ -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-to= ols-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 =3D racoon racoonctl plainrsa-gen >> - noinst_PROGRAMS =3D eaytest >> - include_racoon_HEADERS =3D 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 =3D libracoon.la >> -=20 >> diff --git = a/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning= -with-gcc-4.8.patch = b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning= -with-gcc-4.8.patch >> new file mode 100644 >> index 0000000..569b545 >> --- /dev/null >> +++ = b/meta-networking/recipes-support/ipsec-tools/ipsec-tools/0001-Fix-warning= -with-gcc-4.8.patch >> @@ -0,0 +1,35 @@ >> +=46rom fc230d5ded73fe4049aa586eacbe4098aeff912f Mon Sep 17 00:00:00 = 2001 >> +From: Paul Barker >> +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)); >> +=20 >> + bp =3D (caddr_t)(sab + 1); >> + tlen =3D sa->l - sizeof(*sab); >> +--=20 >> +1.8.3 >> + >> diff --git = a/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb = b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb >> deleted file mode 100644 >> index 255246e..0000000 >> --- = a/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.7.2.bb >> +++ /dev/null >> @@ -1,7 +0,0 @@ >> -require ipsec-tools.inc >> - >> -LIC_FILES_CHKSUM =3D = "file://src/libipsec/pfkey.c;beginline=3D6;endline=3D31;md5=3Dbc9b7ff40bef= f19fe6bc6aef26bd2b24" >> - >> -SRC_URI +=3D "file://ipsec-tools-install.patch" >> -SRC_URI[ipsec-tools-0.7.2.md5sum] =3D = "72861f005746ee27984b2ee715ecc629" >> -SRC_URI[ipsec-tools-0.7.2.sha256sum] =3D = "08722ff6c62de3e042fef337454f03622a79053108d6dcc686c9c854f9f9e031" >> diff --git = a/meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc = b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb >> 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 >> --- a/meta-networking/recipes-support/ipsec-tools/ipsec-tools.inc >> +++ = b/meta-networking/recipes-support/ipsec-tools/ipsec-tools_0.8.1.bb >> @@ -3,9 +3,15 @@ Linux-2.6 IPsec implementation." >> HOMEPAGE =3D "http://ipsec-tools.sourceforge.net/" >> SECTION =3D "console/network" >> LICENSE =3D "BSD" >> +LIC_FILES_CHKSUM =3D = "file://src/libipsec/pfkey.c;beginline=3D6;endline=3D31;md5=3Dbc9b7ff40bef= f19fe6bc6aef26bd2b24" >> + >> DEPENDS =3D "virtual/kernel openssl readline flex" >>=20 >> -SRC_URI =3D = "${SOURCEFORGE_MIRROR}/ipsec-tools/ipsec-tools-${PV}.tar.bz2;name=3Dipsec-= tools-${PV}" >> +SRC_URI =3D = "ftp://ftp.netbsd.org/pub/NetBSD/misc/ipsec-tools/0.8/ipsec-tools-${PV}.ta= r.bz2 \ >> + file://0001-Fix-warning-with-gcc-4.8.patch \ >> + " >> +SRC_URI[md5sum] =3D "d38b39f291ba2962387c3232e7335dd8" >> +SRC_URI[sha256sum] =3D = "fa4a95bb36842f001b84c4e7a1bb727e3ee06147edbc830a881d63abe8153dd4" >>=20 >> inherit autotools >>=20 >> @@ -44,8 +50,3 @@ EXTRA_OECONF =3D = "--with-kernel-headers=3D${STAGING_INCDIR} \ >>=20 >> # See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D530527 >> CFLAGS +=3D "-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 =3D "" > --=20 > -Joe MacDonald. > :wq > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-devel