Date   

test

lei yang <yanglei.fage@...>
 


test again

Lei Yang
 


It seems my patch review doesn't deliver to this mail list

lei yang <yanglei.fage@...>
 

Hi list,

I send a patch, it seems blocked because I use my another mail which
doesn't subscribe this list, do I need to resend with this mail
account?

Lei


Re: It seems my patch review doesn't deliver to this mail list

David Nystr?m
 

Hi,

Please use a subscribed address to post to this list,
Messages from unsubscribed posters get put on hold and needs to be manually accepted by maintainers, which may lag in time.

Br,
David

On 01/05/2013 11:19 AM, lei yang wrote:
Hi list,

I send a patch, it seems blocked because I use my another mail which
doesn't subscribe this list, do I need to resend with this mail
account?

Lei
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [PATCH] Update the netcat with debian patches to fix some error

David Nystr?m
 

On 01/05/2013 09:45 AM, lei.yang@... wrote:
From: Lei Yang <lei.yang@...>

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
Hi Lei,

Thanks for the patch, your .patch file needs an upstream status, if its to be kept in the meta-virt layer.

please see:
https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming


Lei

Signed-off-by: Lei Yang <lei.yang@...>
---
recipes-extended/libvirt/libvirt_1.0.0.bb | 2 +-
.../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793 ++++++++++++++++++++
recipes-networking/netcat/netcat-openbsd_1.89.bb | 32 +
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 -
4 files changed, 2826 insertions(+), 30 deletions(-)
create mode 100644 recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb

diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb b/recipes-extended/libvirt/libvirt_1.0.0.bb
index 5374237..90d7dbb 100644
--- a/recipes-extended/libvirt/libvirt_1.0.0.bb
+++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
@@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux
# These might be included by PACKAGECONFIG
#RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"

-RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq openbsd-netcat"
+RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd"
RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
[snip]

diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb b/recipes-networking/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 0000000..392a3fd
--- /dev/null
+++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org"
+SECTION = "console/network"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz \
+ file://netcat-openbsd_1.89-4.patch"
Hmm,
I suspect there is no difference between above .patch file and upstream:
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz

Please reference the patch from this location to keep code size in meta-virt low.


+SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[sha256sum] = "72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+inherit update-alternatives gettext
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+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"


Re: [PATCH] Update the netcat with debian patches to fix some error

lei yang <yanglei.fage@...>
 

On Sat, Jan 5, 2013 at 3:38 AM, David Nyström <david.c.nystrom@...> wrote:

On 01/05/2013 09:45 AM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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

Hi Lei,

Thanks for the patch, your .patch file needs an upstream status, if its to
be kept in the meta-virt layer.

please see:
https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming



Lei

Signed-off-by: Lei Yang <lei.yang@...>
---
recipes-extended/libvirt/libvirt_1.0.0.bb | 2 +-
.../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793
++++++++++++++++++++
recipes-networking/netcat/netcat-openbsd_1.89.bb | 32 +
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 -
4 files changed, 2826 insertions(+), 30 deletions(-)
create mode 100644
recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb

diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb
b/recipes-extended/libvirt/libvirt_1.0.0.bb
index 5374237..90d7dbb 100644
--- a/recipes-extended/libvirt/libvirt_1.0.0.bb
+++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
@@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted
curl libpcap util-linux
# These might be included by PACKAGECONFIG
#RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"

-RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
openbsd-netcat"
+RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
netcat-openbsd"
RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
[snip]


diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb
b/recipes-networking/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 0000000..392a3fd
--- /dev/null
+++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org"
+SECTION = "console/network"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI =
"http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz
\
+ file://netcat-openbsd_1.89-4.patch"

Hmm,
I suspect there is no difference between above .patch file and upstream:
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz

Please reference the patch from this location to keep code size in meta-virt
low.

Yes, the patch comes from
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
I don't know how to put two http location in one bb

and How could I fill the upstream s



+SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[sha256sum] =
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+inherit update-alternatives gettext
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ while read line; do patch -p1 <debian/patches/$line; done
<debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+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"
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [PATCH] Update the netcat with debian patches to fix some error

lei yang <yanglei.fage@...>
 

On Sat, Jan 5, 2013 at 3:38 AM, David Nyström <david.c.nystrom@...> wrote:

On 01/05/2013 09:45 AM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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

Hi Lei,

Thanks for the patch, your .patch file needs an upstream status, if its to
be kept in the meta-virt layer.

please see:
https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming



Lei

Signed-off-by: Lei Yang <lei.yang@...>
---
recipes-extended/libvirt/libvirt_1.0.0.bb | 2 +-
.../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793
++++++++++++++++++++
recipes-networking/netcat/netcat-openbsd_1.89.bb | 32 +
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 -
4 files changed, 2826 insertions(+), 30 deletions(-)
create mode 100644
recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb

diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb
b/recipes-extended/libvirt/libvirt_1.0.0.bb
index 5374237..90d7dbb 100644
--- a/recipes-extended/libvirt/libvirt_1.0.0.bb
+++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
@@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted
curl libpcap util-linux
# These might be included by PACKAGECONFIG
#RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"

-RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
openbsd-netcat"
+RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
netcat-openbsd"
RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
[snip]


diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb
b/recipes-networking/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 0000000..392a3fd
--- /dev/null
+++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org"
+SECTION = "console/network"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI =
"http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz
\
+ file://netcat-openbsd_1.89-4.patch"

Hmm,
I suspect there is no difference between above .patch file and upstream:
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz

Please reference the patch from this location to keep code size in meta-virt
low.

Yes, the patch comes from
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
I don't know how to put two http location in one bb, do you have an
examle? or use wget in bb? seems not

and How could I fill the upstream status, should be pending? since
it's not in openbsd-netcat.googlecode.com now


Lei




+SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[sha256sum] =
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+inherit update-alternatives gettext
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ while read line; do patch -p1 <debian/patches/$line; done
<debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+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"
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [PATCH] Update the netcat with debian patches to fix some error

lei yang <yanglei.fage@...>
 

On Sat, Jan 5, 2013 at 5:14 AM, lei yang <yanglei.fage@...> wrote:
On Sat, Jan 5, 2013 at 3:38 AM, David Nyström <david.c.nystrom@...> wrote:

On 01/05/2013 09:45 AM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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

Hi Lei,

Thanks for the patch, your .patch file needs an upstream status, if its to
be kept in the meta-virt layer.

please see:
https://wiki.yoctoproject.org/wiki/Best_Known_Methods_(BKMs)_for_Package_Updating#Patch_Upstreaming



Lei

Signed-off-by: Lei Yang <lei.yang@...>
---
recipes-extended/libvirt/libvirt_1.0.0.bb | 2 +-
.../netcat-openbsd/netcat-openbsd_1.89-4.patch | 2793
++++++++++++++++++++
recipes-networking/netcat/netcat-openbsd_1.89.bb | 32 +
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 -
4 files changed, 2826 insertions(+), 30 deletions(-)
create mode 100644
recipes-networking/netcat/netcat-openbsd/netcat-openbsd_1.89-4.patch
create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb

diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb
b/recipes-extended/libvirt/libvirt_1.0.0.bb
index 5374237..90d7dbb 100644
--- a/recipes-extended/libvirt/libvirt_1.0.0.bb
+++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
@@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted
curl libpcap util-linux
# These might be included by PACKAGECONFIG
#RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"

-RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
openbsd-netcat"
+RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq
netcat-openbsd"
RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"
[snip]


diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb
b/recipes-networking/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 0000000..392a3fd
--- /dev/null
+++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,32 @@
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org"
+SECTION = "console/network"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI =
"http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz
\
+ file://netcat-openbsd_1.89-4.patch"

Hmm,
I suspect there is no difference between above .patch file and upstream:
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz

Please reference the patch from this location to keep code size in meta-virt
low.

Yes, the patch comes from
http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
I don't know how to put two http location in one bb, do you have an
examle? or use wget in bb? seems not

and How could I fill the upstream status, should be pending? since
it's not in openbsd-netcat.googlecode.com now

Aha, find the example meta/recipes-devtools/squashfs-tools/squashfs-tools_4.2.bb

I will send the patches later


Lei




+SRC_URI[md5sum] = "7238ce15aae43069e96ba7faf03f153e"
+SRC_URI[sha256sum] =
"72e844dde8a2a7cba61971d493758dbea9ef0b164bccef15fd4a36490dc77f2b"
+
+S = "${WORKDIR}/${PN}-${PV}.orig"
+inherit update-alternatives gettext
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ while read line; do patch -p1 <debian/patches/$line; done
<debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+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"
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


[PATCH] Update the netcat with debian patches to fix some error

Lei Yang
 

From: Lei Yang <lei.yang@...>

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@...>
---
recipes-extended/libvirt/libvirt_1.0.0.bb | 2 +-
recipes-networking/netcat/netcat-openbsd_1.89.bb | 34 ++++++++++++++++++++++
recipes-networking/netcat/openbsd-netcat_1.6.bb | 29 ------------------
3 files changed, 35 insertions(+), 30 deletions(-)
create mode 100644 recipes-networking/netcat/netcat-openbsd_1.89.bb
delete mode 100644 recipes-networking/netcat/openbsd-netcat_1.6.bb

diff --git a/recipes-extended/libvirt/libvirt_1.0.0.bb b/recipes-extended/libvirt/libvirt_1.0.0.bb
index 5374237..90d7dbb 100644
--- a/recipes-extended/libvirt/libvirt_1.0.0.bb
+++ b/recipes-extended/libvirt/libvirt_1.0.0.bb
@@ -11,7 +11,7 @@ DEPENDS = "bridge-utils gnutls libxml2 lvm2 avahi parted curl libpcap util-linux
# These might be included by PACKAGECONFIG
#RRECOMMENDS+= "polkit qemu yajl libnl lxc netcf"

-RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq openbsd-netcat"
+RDEPENDS_libvirt-libvirtd += "bridge-utils iptables pm-utils dnsmasq netcat-openbsd"
RDEPENDS_libvirt-libvirtd_append_x86-64 = " dmidecode"
RDEPENDS_libvirt-libvirtd_append_x86 = " dmidecode"

diff --git a/recipes-networking/netcat/netcat-openbsd_1.89.bb b/recipes-networking/netcat/netcat-openbsd_1.89.bb
new file mode 100644
index 0000000..60943a4
--- /dev/null
+++ b/recipes-networking/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "OpenBSD Netcat"
+HOMEPAGE = "http://ftp.debian.org"
+SECTION = "console/network"
+LICENSE = "BSD-3-Clause"
+PR = "r0"
+
+SRC_URI = "http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89.orig.tar.gz;name=netcat \
+ http://ftp.debian.org/debian/pool/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"
+inherit update-alternatives gettext
+
+do_configure[noexec] = "1"
+
+do_compile() {
+ cd ${S}
+ while read line; do patch -p1 <debian/patches/$line; done <debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+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"
--
1.7.1


Re: [PATCH] Update the netcat with debian patches to fix some error

David Nystr?m
 

On 01/05/2013 02:43 PM, lei.yang@... wrote:
From: Lei Yang <lei.yang@...>

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@...>
---
[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"


Re: [PATCH] Update the netcat with debian patches to fix some error

lei yang <yanglei.fage@...>
 

On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---

[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}.
Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c atomicio.o Makefile nc.1
netcat.c.orig openbsd-compat/ .pc/ socks.o
atomicio.h debian/ nc netcat.c
netcat.o patches/ socks.c



+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""

I assume this has been tested with package_rpm as well.

Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm




+}
+
+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"
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [PATCH] Update the netcat with debian patches to fix some error

David Nyström <david.nystrom@...>
 

On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---

[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}.
Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c atomicio.o Makefile nc.1
netcat.c.orig openbsd-compat/ .pc/ socks.o
atomicio.h debian/ nc netcat.c
netcat.o patches/ socks.c



+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""

I assume this has been tested with package_rpm as well.

Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm
Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.




+}
+
+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"
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [PATCH] Update the netcat with debian patches to fix some error

Bruce Ashfield
 




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


Re: [PATCH] Update the netcat with debian patches to fix some error

Lei Yang <yanglei.fage@...>
 

Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different source.

Lei


On 2013-1-6, at 2:44, Bruce Ashfield <bruce.ashfield@...> wrote:




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


Re: [PATCH] Update the netcat with debian patches to fix some error

Bruce Ashfield
 




On Sat, Jan 5, 2013 at 7:28 PM, Lei Yang <yanglei.fage@...> wrote:
Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different source.

That was understood, and what I meant by:

"If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking."

The solution is not to carry a similar netcat in meta-virt, but to have a single netcat source, which
is meta-virtualization.

There's no rush to merge this, there's no impending releases, so we should take our time and
unify the support, not create a very similar structure in meta-virt.

Cheers,

Bruce

 

Lei


On 2013-1-6, at 2:44, Bruce Ashfield <bruce.ashfield@...> wrote:




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


Re: [PATCH] Update the netcat with debian patches to fix some error

Lei Yang
 

On 01/06/2013 08:53 AM, Bruce Ashfield wrote:



On Sat, Jan 5, 2013 at 7:28 PM, Lei Yang <yanglei.fage@...> wrote:
Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different source.

That was understood, and what I meant by:

"If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking."

The solution is not to carry a similar netcat in meta-virt, but to have a single netcat source, which
is meta-virtualization.


I don't know I catch you or not

solution 1:
=======


create a bbappend in meta-virt. there are two issue
a. they have different licence, one is GPLv2 aother is BSD-3-Clause, I don't know if we are allowed to overwritte the LICENSE
b. and they have different PV history, one is 0.71, another is 0.89, so this can't be append

soulution 2:
========


seems you want something like this in meta-networing
[lyang0@ala-lpggp2 netcat]$ ls
netcat_0.7.1.bb    netcat-openbsd_1.89.bb netcat.inc

netcat.inc is something like,below other part(DESCRIPTION HOMEPAGE license SRC_URI) ...will be in there bb file, seems what they can share is little.

inherit autotools update-alternatives gettext

do_install_append() {
        mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
}

ALTERNATIVE_${PN} = "nc"
ALTERNATIVE_PRIORITY = "100"


By the way I don't know what is combo-layer tools

Lei





There's no rush to merge this, there's no impending releases, so we should take our time and
unify the support, not create a very similar structure in meta-virt.

Cheers,

Bruce

 

Lei


On 2013-1-6, at 2:44, Bruce Ashfield <bruce.ashfield@...> wrote:




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization


Re: [PATCH] Update the netcat with debian patches to fix some error

Bruce Ashfield
 




On Sat, Jan 5, 2013 at 9:03 PM, Lei Yang <lei.yang@...> wrote:
On 01/06/2013 08:53 AM, Bruce Ashfield wrote:



On Sat, Jan 5, 2013 at 7:28 PM, Lei Yang <yanglei.fage@...> wrote:
Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different source.

That was understood, and what I meant by:

"If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking."

The solution is not to carry a similar netcat in meta-virt, but to have a single netcat source, which
is meta-virtualization.


I don't know I catch you or not

solution 1:
=======


create a bbappend in meta-virt. there are two issue
a. they have different licence, one is GPLv2 aother is BSD-3-Clause, I don't know if we are allowed to overwritte the LICENSE
b. and they have different PV history, one is 0.71, another is 0.89, so this can't be append

soulution 2:
========


seems you want something like this in meta-networing
[lyang0@ala-lpggp2 netcat]$ ls
netcat_0.7.1.bb    netcat-openbsd_1.89.bb netcat.inc

netcat.inc is something like,below other part(DESCRIPTION HOMEPAGE license SRC_URI) ...will be in there bb file, seems what they can share is little.

inherit autotools update-alternatives gettext

do_install_append() {
        mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
}

ALTERNATIVE_${PN} = "nc"
ALTERNATIVE_PRIORITY = "100"

It's solution #2 that would be preferable. Since meta-networking is the provider of the current
netcat in the set of yocto layers, it makes sense to not expend time and effort supporting an
alternative in meta-virt, but to move the variant that is required into meta-networking.

It would be even better to break the requirement completely (by changing the tools that have
the BSP specific requirement). I haven't dug into it yet, is it arguments/syntax, or purely a 
licensing issue that creates the requirement ? Given your patch, I think it's the former, but
as I said, I haven't gone to look yet.

.. but breaking the dependency is much easier to say, than to do :)

The combo layer tools could come into play after we've got the BSD netcat support in 
meta-networking, and for some reason we can't depend on meta-networking and only need
the one package. The combo tools can pull that support of our meta-networking and place
it in meta-virt .. in a maintainable way.

Cheers,

Bruce



By the way I don't know what is combo-layer tools

Lei






There's no rush to merge this, there's no impending releases, so we should take our time and
unify the support, not create a very similar structure in meta-virt.

Cheers,

Bruce

 

Lei


On 2013-1-6, at 2:44, Bruce Ashfield <bruce.ashfield@...> wrote:




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization




--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


Re: [PATCH] Update the netcat with debian patches to fix some error

Bruce Ashfield
 




On Sat, Jan 5, 2013 at 10:00 PM, Bruce Ashfield <bruce.ashfield@...> wrote:



On Sat, Jan 5, 2013 at 9:03 PM, Lei Yang <lei.yang@...> wrote:
On 01/06/2013 08:53 AM, Bruce Ashfield wrote:



On Sat, Jan 5, 2013 at 7:28 PM, Lei Yang <yanglei.fage@...> wrote:
Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different source.

That was understood, and what I meant by:

"If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking."

The solution is not to carry a similar netcat in meta-virt, but to have a single netcat source, which
is meta-virtualization.


I don't know I catch you or not

solution 1:
=======


create a bbappend in meta-virt. there are two issue
a. they have different licence, one is GPLv2 aother is BSD-3-Clause, I don't know if we are allowed to overwritte the LICENSE
b. and they have different PV history, one is 0.71, another is 0.89, so this can't be append

soulution 2:
========


seems you want something like this in meta-networing
[lyang0@ala-lpggp2 netcat]$ ls
netcat_0.7.1.bb    netcat-openbsd_1.89.bb netcat.inc

netcat.inc is something like,below other part(DESCRIPTION HOMEPAGE license SRC_URI) ...will be in there bb file, seems what they can share is little.

inherit autotools update-alternatives gettext

do_install_append() {
        mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
}

ALTERNATIVE_${PN} = "nc"
ALTERNATIVE_PRIORITY = "100"

It's solution #2 that would be preferable. Since meta-networking is the provider of the current
netcat in the set of yocto layers, it makes sense to not expend time and effort supporting an
alternative in meta-virt, but to move the variant that is required into meta-networking.

It would be even better to break the requirement completely (by changing the tools that have
the BSP specific requirement). I haven't dug into it yet, is it arguments/syntax, or purely a 
licensing issue that creates the requirement ? Given your patch, I think it's the former, but
as I said, I haven't gone to look yet.

.. but breaking the dependency is much easier to say, than to do :)

The combo layer tools could come into play after we've got the BSD netcat support in 
meta-networking, and for some reason we can't depend on meta-networking and only need
the one package. The combo tools can pull that support of our meta-networking and place
it in meta-virt .. in a maintainable way.

And in case you haven't found it yet:


Cheers,

Bruce
 

Cheers,

Bruce



By the way I don't know what is combo-layer tools

Lei






There's no rush to merge this, there's no impending releases, so we should take our time and
unify the support, not create a very similar structure in meta-virt.

Cheers,

Bruce

 

Lei


On 2013-1-6, at 2:44, Bruce Ashfield <bruce.ashfield@...> wrote:




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization




--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


[meta-networking][PATCH] Add netcat-openbsd for virtualization (libvirt virt-test)

Lei Yang
 

From: Lei Yang <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

Lei

Signed-off-by: Lei Yang <lei.yang@...>
---
.../recipes-support/netcat/netcat-openbsd_1.89.bb | 29 ++++++++++++++++++++
meta-networking/recipes-support/netcat/netcat.inc | 6 ++++
.../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..9fe406c
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat-openbsd_1.89.bb
@@ -0,0 +1,29 @@
+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 <debian/patches/$line; done <debian/patches/series
+ pkgrel=4
+ oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 755 ${S}/nc ${D}${bindir}/nc.${BPN}
+}
diff --git a/meta-networking/recipes-support/netcat/netcat.inc b/meta-networking/recipes-support/netcat/netcat.inc
new file mode 100644
index 0000000..4098668
--- /dev/null
+++ b/meta-networking/recipes-support/netcat/netcat.inc
@@ -0,0 +1,6 @@
+SECTION = "console/network"
+inherit update-alternatives gettext
+
+ALTERNATIVE_${PN} = "nc"
+ALTERNATIVE_PRIORITY = "100"
+
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..e09202b 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"
--
1.7.1


Re: [PATCH] Update the netcat with debian patches to fix some error

Lei Yang
 

On 01/06/2013 11:37 AM, Bruce Ashfield wrote:



On Sat, Jan 5, 2013 at 10:00 PM, Bruce Ashfield <bruce.ashfield@...> wrote:



On Sat, Jan 5, 2013 at 9:03 PM, Lei Yang <lei.yang@...> wrote:
On 01/06/2013 08:53 AM, Bruce Ashfield wrote:



On Sat, Jan 5, 2013 at 7:28 PM, Lei Yang <yanglei.fage@...> wrote:
Hi Bruce 

I checked the netcat with my phone in meta-networking ,It's not the bsd netcat,in libvirt or my vert-test,we need to use bsd netcat,they are different source.

That was understood, and what I meant by:

"If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking."

The solution is not to carry a similar netcat in meta-virt, but to have a single netcat source, which
is meta-virtualization.


I don't know I catch you or not

solution 1:
=======


create a bbappend in meta-virt. there are two issue
a. they have different licence, one is GPLv2 aother is BSD-3-Clause, I don't know if we are allowed to overwritte the LICENSE
b. and they have different PV history, one is 0.71, another is 0.89, so this can't be append

soulution 2:
========


seems you want something like this in meta-networing
[lyang0@ala-lpggp2 netcat]$ ls
netcat_0.7.1.bb    netcat-openbsd_1.89.bb netcat.inc

netcat.inc is something like,below other part(DESCRIPTION HOMEPAGE license SRC_URI) ...will be in there bb file, seems what they can share is little.

inherit autotools update-alternatives gettext

do_install_append() {
        mv ${D}${bindir}/nc ${D}${bindir}/nc.${PN}
}

ALTERNATIVE_${PN} = "nc"
ALTERNATIVE_PRIORITY = "100"

It's solution #2 that would be preferable. Since meta-networking is the provider of the current
netcat in the set of yocto layers, it makes sense to not expend time and effort supporting an
alternative in meta-virt, but to move the variant that is required into meta-networking.

It would be even better to break the requirement completely (by changing the tools that have
the BSP specific requirement). I haven't dug into it yet, is it arguments/syntax, or purely a 
licensing issue that creates the requirement ? Given your patch, I think it's the former, but
as I said, I haven't gone to look yet.

.. but breaking the dependency is much easier to say, than to do :)

The combo layer tools could come into play after we've got the BSD netcat support in 
meta-networking, and for some reason we can't depend on meta-networking and only need
the one package. The combo tools can pull that support of our meta-networking and place
it in meta-virt .. in a maintainable way.

And in case you haven't found it yet:




Thanks to point this, I'm trying to learn it, I find if the meta-virtuallization is a repo it will init fail. or I miss something

lyang0@pek-lpgtest1:/buildarea1/lyang0/examples/meta-virtualization$ ~/combo-layer init -c conf/combo-layer.conf
[13:59:16] Repository already initialised, nothing to do.
lyang0@pek-lpgtest1:/buildarea1/lyang0/examples/meta-virtualization$ cat conf/combo-layer.conf
[meta-networking]
src_uri = git://github.com/openembedded/meta-oe.git
local_repo_dir = /buildarea1/lyang0/examples/meta-oe/meta-networking
dest_dir = /buildarea1/lyang0/examples/meta-virtualization
last_revision =
file_filter = recipes-support/netcat/netcat_0.7.1.bb

It seems the combo-layer is for user. if so, how user know this layer depend on another layer's bb?  or put a readme in this layer.

Lei


Cheers,

Bruce
 

Cheers,

Bruce



By the way I don't know what is combo-layer tools

Lei






There's no rush to merge this, there's no impending releases, so we should take our time and
unify the support, not create a very similar structure in meta-virt.

Cheers,

Bruce

 

Lei


On 2013-1-6, at 2:44, Bruce Ashfield <bruce.ashfield@...> wrote:




On Sat, Jan 5, 2013 at 9:46 AM, David Nyström <david.nystrom@...> wrote:


On 01/05/2013 03:26 PM, lei yang wrote:
On Sat, Jan 5, 2013 at 5:55 AM, David Nyström <david.c.nystrom@...> wrote:
On 01/05/2013 02:43 PM, lei.yang@... wrote:

From: Lei Yang <lei.yang@...>

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@...>
---


[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}.


Yes it needed, http://ftp.debian.org/debian/pool/main/n/netcat-openbsd/netcat-openbsd_1.89-4.diff.gz
will be download, and gunzip by bitbake automaticlly, then it find
.diff (or patch) it will automatically apply(before I thought only
.patch will be applied, now I find .diff will be applied ) then you
will see the debian/patches dir  created by .dff

logs:
lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ ls
build/netcat-openbsd-1.89-r0/netcat-openbsd-1.89.orig/
atomicio.c      atomicio.o      Makefile        nc.1
netcat.c.orig   openbsd-compat/ .pc/            socks.o
atomicio.h      debian/         nc              netcat.c
netcat.o        patches/        socks.c



+       pkgrel=4
+       oe_runmake CFLAGS="$CFLAGS -DDEBIAN_VERSION=\"\\\"${pkgrel}\\\"\""


I assume this has been tested with package_rpm as well.



Yes, I'm a tester .welcome any testing work to let me do freely

lyang0@pek-lpgtest1:/buildarea1/lyang0/kvm_rr$ cat
build/netcat-openbsd-1.89-r0/deploy-rpms/x86_64/netcat-openbsd-
netcat-openbsd-1.89-r0.x86_64.rpm
netcat-openbsd-dbg-1.89-r0.x86_64.rpm
netcat-openbsd-dev-1.89-r0.x86_64.rpm


Thanks Lei,
I'll merge this as soon as I can, I seem to be unable to push at the moment. I'll try to resolv this asap.



I think we should hold on this merge completely. netcat is already covered by meta-networking, so
we should be consolidating patches and support there.

If there are any specific meta-virt requirements for netcat, we should either use bbappends (and
depend on meta-networking, or use the combo-layer tools to pull the support directly) or better yet
get them merged into meta-networking.

Cheers,

Bruce
 



+}
+
+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"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization
_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization

_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"


_______________________________________________
meta-virtualization mailing list
meta-virtualization@...
https://lists.yoctoproject.org/listinfo/meta-virtualization




--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"



--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

121 - 140 of 7515