[meta-virtualization] [PATCH] Update the netcat with debian patches to fix some error
David Nyström
david.c.nystrom at gmail.com
Sat Jan 5 05:55:59 PST 2013
On 01/05/2013 02:43 PM, lei.yang at windriver.com wrote:
> From: Lei Yang <lei.yang at windriver.com>
>
> I know we have the patches in debian dir in the previous version,
> but I meet lots of patch error.so I change it to debian.org version
>
> The background I do this change is:
> I'm a kvm tester,without patches it will meet error when I do the migrate
> testing with -incoming "exec:nc -l 5200" it meets error:
> "nc: Protocol no available."
>
> You can reproduce it simplely with "nc -l 5200" on your board
>
> Lei
>
> Signed-off-by: Lei Yang <lei.yang at windriver.com>
> ---
[snip]
> +do_compile() {
> + cd ${S}
> + while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series
Is this line really needed ?
I cant seem to find any file called debian/patches/* in ${S}.
> + pkgrel=4
> + oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
I assume this has been tested with package_rpm as well.
> +}
> +
> +do_install() {
> + install -d ${D}${bindir}
> + install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
> +}
> +
> +ALTERNATIVE_${PN} = "nc"
> +ALTERNATIVE_PRIORITY = "101"
> +
> +BBCLASSEXTEND = "nativesdk"
> diff --git a/recipes-networking/netcat/openbsd-netcat_1.6.bb b/recipes-networking/netcat/openbsd-netcat_1.6.bb
> deleted file mode 100644
> index 1ae3f37..0000000
> --- a/recipes-networking/netcat/openbsd-netcat_1.6.bb
> +++ /dev/null
> @@ -1,29 +0,0 @@
> -DESCRIPTION = "OpenBSD Netcat"
> -HOMEPAGE = "http://code.google.com/p/openbsd-netcat/"
> -SECTION = "console/network"
> -LICENSE = "BSD-3-Clause"
> -PR = "r0"
> -
> -SRCREV = "5"
> -
> -SRC_URI = "svn://openbsd-netcat.googlecode.com/svn;module=trunk;protocol=http"
> -S = "${WORKDIR}/trunk"
> -
> -inherit update-alternatives gettext
> -
> -do_configure[noexec] = "1"
> -
> -do_compile() {
> - cd ${S}
> - oe_runmake
> -}
> -
> -do_install() {
> - install -d ${D}${bindir}
> - install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
> -}
> -
> -ALTERNATIVE_${PN} = "nc"
> -ALTERNATIVE_PRIORITY = "101"
> -
> -BBCLASSEXTEND = "nativesdk"
>
More information about the meta-virtualization
mailing list