Skip to contentSkip to conversation

daq: add recipe

PATCH In review [email protected] 2 participants 5 messages Aug 30, 2013 – May 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 daq: add recipe

From: Chunrong Guo <[email protected]>

*The dump DAQ test the various inline mode features *snort depends daq

---
 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb      |   16 +++++++++++
 ...le-run-test-program-while-cross-compiling.patch |   29 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
 create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +16 -0
new file mode 100644
index 0000000..4c1be44
@@ -0,0 +1,16 @@
+DESCRIPTION = "The dump DAQ test the various inline mode features "
+HOMEPAGE = "http://www.snort.org"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
+
+PARALLEL_MAKE = ""
+
+DEPENDS = "libpcap libpcre "
+
+SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
+            file://disable-run-test-program-while-cross-compiling.patch "
+
+SRC_URI[md5sum] = "044aa3663d44580d005293eeb8ccf175"
+SRC_URI[sha256sum] = "ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d"
+
+inherit autotools
meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch new file +29 -0
new file mode 100644
index 0000000..12a6cba
@@ -0,0 +1,29 @@
+Upstream-Status:Inappropriate [embedded specific]
+
+fix the below error:
+configure: error: cannot run test program while cross compiling
+
+Signed-off-by: Chunrong Guo <[email protected]>
+
+--- a/m4/sf.m4old	2013-08-30 04:08:18.768409680 -0500
++++ b/m4/sf.m4	2013-08-30 04:09:24.591367890 -0500
+@@ -135,19 +135,6 @@
+         exit 1
+     fi
+     AC_MSG_CHECKING([for libpcap version >= $1])
+-    AC_RUN_IFELSE(
+-    [AC_LANG_PROGRAM(
+-    [[
+-    #include <pcap.h>
+-    #include <string.h>
+-    extern char pcap_version[];
+-    ]],
+-    [[
+-        if (strcmp(pcap_version, $1) < 0)
+-            return 1;
+-    ]])],
+-    [libpcap_version_1x="yes"],
+-    [libpcap_version_1x="no"])
+     if test "x$libpcap_version_1x" = "xno"; then
+         AC_MSG_RESULT(no)
+         echo
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 25 lines · On Fri, Aug 30, 2013 at 06:21:24PM +0800, [email protected] wrote:

From: Chunrong Guo <[email protected]>

*The dump DAQ test the various inline mode features *snort depends daq

---
 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb      |   16 +++++++++++
 ...le-run-test-program-while-cross-compiling.patch |   29 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
 create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +6 -0
new file mode 100644
index 0000000..4c1be44
@@ -0,0 +1,16 @@
+DESCRIPTION = "The dump DAQ test the various inline mode features "
+HOMEPAGE = "http://www.snort.org"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
+
+PARALLEL_MAKE = ""

meta-oe/recipes-connectivity/daq/daq_2.0.1.bb line 16

Quoted 10 lines
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +10 -0
+
+DEPENDS = "libpcap libpcre "
+
+SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
+            file://disable-run-test-program-while-cross-compiling.patch "
+
+SRC_URI[md5sum] = "044aa3663d44580d005293eeb8ccf175"
+SRC_URI[sha256sum] = "ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d"
+
+inherit autotools

I don't have more than build log because workspace is already gone, but qemuarm build fails:

ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
'common']
| DEBUG: Executing shell function do_install
| NOTE: make DESTDIR=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/image install

| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at

/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
NOTE: recipe daq-2.0.1-r0: task do_install: Failed
ERROR: Task 19484 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb, do_install) failed with exit code '1'

#2 lore raw
Quoted 56 lines · Martin Jansa
Quoted 25 lines · On Fri, Aug 30, 2013 at 06:21:24PM +0800, [email protected] wrote:

From: Chunrong Guo <[email protected]>

*The dump DAQ test the various inline mode features *snort depends daq

---
 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb      |   16 +++++++++++
 ...le-run-test-program-while-cross-compiling.patch |   29 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
 create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +6 -0
new file mode 100644
index 0000000..4c1be44
@@ -0,0 +1,16 @@
+DESCRIPTION = "The dump DAQ test the various inline mode features "
+HOMEPAGE = "http://www.snort.org"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
+
+PARALLEL_MAKE = ""

meta-oe/recipes-connectivity/daq/daq_2.0.1.bb line 16

Quoted 10 lines
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +10 -0
+
+DEPENDS = "libpcap libpcre "
+
+SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
+            file://disable-run-test-program-while-cross-compiling.patch "
+
+SRC_URI[md5sum] = "044aa3663d44580d005293eeb8ccf175"
+SRC_URI[sha256sum] = "ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d"
+
+inherit autotools

I don't have more than build log because workspace is already gone, but qemuarm build fails:

ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
'common']
| DEBUG: Executing shell function do_install
| NOTE: make DESTDIR=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/image install

| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at
Quoted 5 lines

/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
NOTE: recipe daq-2.0.1-r0: task do_install: Failed
ERROR: Task 19484 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb, do_install) failed with exit code '1'

Can we fix this please?

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

Hello,
I update daq to 2.0.2.

I can not reproduce this issue .

Thanks

chunrong

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Martin Jansa
Sent: Monday, March 24, 2014 11:09 PM
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH V4 ] daq: add recipe

Quoted 62 lines · Martin Jansa
Quoted 28 lines · On Fri, Aug 30, 2013 at 06:21:24PM +0800, [email protected] wrote:

From: Chunrong Guo <[email protected]>

*The dump DAQ test the various inline mode features *snort depends daq

---
 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb      |   16 +++++++++++
 ...le-run-test-program-while-cross-compiling.patch |   29 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)  create mode 
100644 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
 create mode 100644 

meta-oe/recipes-connectivity/daq/files/disable-run-test-program-whil e-cross-compiling.patch

meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +6 -0
new file mode 100644
index 0000000..4c1be44
@@ -0,0 +1,16 @@
+DESCRIPTION = "The dump DAQ test the various inline mode features "
+HOMEPAGE = "http://www.snort.org"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
+
+PARALLEL_MAKE = ""

meta-oe/recipes-connectivity/daq/daq_2.0.1.bb line 16

Quoted 10 lines
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +10 -0
+
+DEPENDS = "libpcap libpcre "
+
+SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
+            file://disable-run-test-program-while-cross-compiling.patch "
+
+SRC_URI[md5sum] = "044aa3663d44580d005293eeb8ccf175"
+SRC_URI[sha256sum] = "ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d"
+
+inherit autotools

I don't have more than build log because workspace is already gone, but qemuarm build fails:

ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe -linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe -linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_install
| NOTE: make DESTDIR=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/ar mv5te-oe-linux-gnueabi/daq/2.0.1-r0/image
install

| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at
Quoted 7 lines

/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe -linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
NOTE: recipe daq-2.0.1-r0: task do_install: Failed
ERROR: Task 19484 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe /recipes-connectivity/daq/daq_2.0.1.bb,
do_install) failed with exit code '1'

Can we fix this please?

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#4 lore raw
In reply to Martin Jansa
Quoted 63 lines · Martin Jansa
Quoted 56 lines · Martin Jansa
Quoted 25 lines · On Fri, Aug 30, 2013 at 06:21:24PM +0800, [email protected] wrote:

From: Chunrong Guo <[email protected]>

*The dump DAQ test the various inline mode features *snort depends daq

---
 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb      |   16 +++++++++++
 ...le-run-test-program-while-cross-compiling.patch |   29 ++++++++++++++++++++
 2 files changed, 45 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
 create mode 100644 meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +6 -0
new file mode 100644
index 0000000..4c1be44
@@ -0,0 +1,16 @@
+DESCRIPTION = "The dump DAQ test the various inline mode features "
+HOMEPAGE = "http://www.snort.org"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
+
+PARALLEL_MAKE = ""

meta-oe/recipes-connectivity/daq/daq_2.0.1.bb line 16

Quoted 10 lines
meta-oe/recipes-connectivity/daq/daq_2.0.1.bb new file +10 -0
+
+DEPENDS = "libpcap libpcre "
+
+SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
+            file://disable-run-test-program-while-cross-compiling.patch "
+
+SRC_URI[md5sum] = "044aa3663d44580d005293eeb8ccf175"
+SRC_URI[sha256sum] = "ebba87c2ec76ac65d2980934423b0597909caead3a86ce5d1ba1ea6ce518ec6d"
+
+inherit autotools

I don't have more than build log because workspace is already gone, but qemuarm build fails:

ERROR: Function failed: do_install (log file is located at /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
ERROR: Logfile of failure stored in:
/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742 Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common',
'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi',
'common']
| DEBUG: Executing shell function do_install
| NOTE: make DESTDIR=/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/image install

| make: *** No rule to make target `install'.  Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at
Quoted 5 lines

/home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/armv5te-oe-linux-gnueabi/daq/2.0.1-r0/temp/log.do_install.4742)
NOTE: recipe daq-2.0.1-r0: task do_install: Failed
ERROR: Task 19484 (/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb, do_install) failed with exit code '1'

Quoted 1 line

Can we fix this please?

ping^4 and PNBLACKLIST is on the way..

here is also couple of auto-detected dependencies

daq/daq/latest lost dependency on libdnet libmnl libnetfilter-queue libnfnetlink

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]