From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.windriver.com ([147.11.1.11]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts2cW-0002TR-EO for openembedded-devel@lists.openembedded.org; Mon, 07 Jan 2013 03:39:43 +0100 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.5/8.14.3) with ESMTP id r072ODMs006099 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Sun, 6 Jan 2013 18:24:13 -0800 (PST) Received: from [128.224.158.164] (128.224.158.164) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.2.318.4; Sun, 6 Jan 2013 18:24:13 -0800 Message-ID: <50EA31E8.1030704@windriver.com> Date: Mon, 7 Jan 2013 10:24:40 +0800 From: Lei Yang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Joe MacDonald References: <1357522704-9608-1-git-send-email-lei.yang@windriver.com> <20130107021523.GF9356@windriver.com> In-Reply-To: <20130107021523.GF9356@windriver.com> X-Originating-IP: [128.224.158.164] Cc: meta-virtualization@yoctoproject.org, openembedded-devel@lists.openembedded.org Subject: Re: [meta-networking][PATCHV2] Add netcat-bsd into meta-networking for meta-virutalization libvirt virt-test X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 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: Mon, 07 Jan 2013 02:40:09 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 01/07/2013 10:15 AM, Joe MacDonald wrote: > [[meta-networking][PATCHV2] Add netcat-bsd into meta-networking for meta-virutalization libvirt virt-test] On 13.01.07 (Mon 09:38) lei.yang@windriver.com wrote: > >> From: Lei Yang >> >> The netcat-openbsd in meta-virtualization layer has bugs. >> This update version will fix "nc: Protocol no available." error. >> As bruce point, we want to keep netcat in the meta-networking, >> which meta-virtualization will depend on,and this patch will let >> netcat-openbsd with low priority to install > Okay, I hadn't seen this version yet. Looks okay, I think. I'll merge > it anyway soon, unless there's further discussion. The dependency on > meta-networking from meta-virtualization is probably out of scope. Ping > me any time if you've got any questions about the relationship between > meta-oe/meta-networking and my github meta-networking. Actually I only see meta-oe/meta-networking. I don't know you have a github meta-networking Usually, the patch check into which meta-networking first. I don't know the background. Lei > Thanks, Lei. > > -J. > >> Lei >> >> Signed-off-by: Lei Yang >> --- >> .../recipes-support/netcat/netcat-openbsd_1.89.bb | 30 ++++++++++++++++++++ >> meta-networking/recipes-support/netcat/netcat.inc | 5 +++ >> .../recipes-support/netcat/netcat_0.7.1.bb | 11 +++---- >> 3 files changed, 40 insertions(+), 6 deletions(-) >> create mode 100644 meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb >> create mode 100644 meta-networking/recipes-support/netcat/netcat.inc >> >> diff --git a/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb >> new file mode 100644 >> index 0000000..f83caee >> --- /dev/null >> +++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb >> @@ -0,0 +1,30 @@ >> +require netcat.inc >> +DESCRIPTION = "OpenBSD Netcat" >> +HOMEPAGE = "http://ftp.debian.org" >> +LICENSE = "BSD-3-Clause" >> +PR = "r0" >> + >> +SRC_URI = "${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \ >> + ${DEBIAN_MIRROR}/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz;name=netcat-patch" >> + >> +SRC_URI[netcat.md5sum] = "7238ce15aae43069e96ba7faf03f153e" >> +SRC_URI[netcat.sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b" >> +SRC_URI[netcat-patch.md5sum] = "00c65aa22243b76998174c733cbb64cc" >> +SRC_URI[netcat-patch.sha256sum] = "d5b6b2bd9788114bdcfbb71acad0263720b4fdc41529e287adf451b8610f84f1" >> + >> +S = "${WORKDIR}/${PN}-${PV}.orig" >> + >> +do_configure[noexec] = "1" >> + >> +do_compile() { >> + cd ${S} >> + while read line; do patch -p1> + pkgrel=4 >> + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\"" >> +} >> + >> +do_install() { >> + install -d ${D}${bindir} >> + install -m 755 ${S}/nc ${D}${bindir}/nc.${PN} >> +} >> +ALTERNATIVE_PRIORITY = "50" >> diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc >> new file mode 100644 >> index 0000000..6c815d9 >> --- /dev/null >> +++ b/meta-networking/recipes-support/netcat/netcat.inc >> @@ -0,0 +1,5 @@ >> +SECTION = "console/network" >> +inherit update-alternatives gettext >> + >> +ALTERNATIVE_${PN} = "nc" >> + >> diff --git a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb >> index c5ab85d..c4f1f33 100644 >> --- a/meta-networking/recipes-support/netcat/netcat_0.7.1.bb >> +++ b/meta-networking/recipes-support/netcat/netcat_0.7.1.bb >> @@ -1,21 +1,20 @@ >> +require netcat.inc >> DESCRIPTION = "GNU Netcat" >> HOMEPAGE = "http://netcat.sourceforge.net" >> -SECTION = "console/network" >> LICENSE = "GPLv2" >> LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" >> >> -PR = "r0" >> +PR = "r1" >> >> SRC_URI = "${SOURCEFORGE_MIRROR}/netcat/netcat-${PV}.tar.bz2" >> >> SRC_URI[md5sum] = "0a29eff1736ddb5effd0b1ec1f6fe0ef" >> SRC_URI[sha256sum] = "b55af0bbdf5acc02d1eb6ab18da2acd77a400bafd074489003f3df09676332bb" >> >> -inherit autotools update-alternatives gettext >> +inherit autotools >> >> do_install_append() { >> - mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN} >> + install -d ${D}${bindir} >> + mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN} >> } >> - >> -ALTERNATIVE_${PN} = "nc" >> ALTERNATIVE_PRIORITY = "100"