Patchwork [meta-oe,V4] daq: add recipe

login
register
mail settings
Submitter chunrong guo
Date Aug. 30, 2013, 10:21 a.m.
Message ID <1377858084-31009-1-git-send-email-b40290@freescale.com>
Download mbox | patch
Permalink /patch/57135/
State Accepted, archived
Commit 8ef842b8ad2ede706110afe83171876122651ec6
Headers show

Comments

chunrong guo - Aug. 30, 2013, 10:21 a.m.
From: Chunrong Guo <B40290@freescale.com>

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

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 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
Martin Jansa - Sept. 4, 2013, 12:49 p.m.
On Fri, Aug 30, 2013 at 06:21:24PM +0800, b40290@freescale.com wrote:
> From: Chunrong Guo <B40290@freescale.com>
> 
>    *The dump DAQ test the various inline mode features
>    *snort depends daq
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  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
> 
> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
> new file mode 100644
> index 0000000..4c1be44
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
> @@ -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

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'
Martin Jansa - March 24, 2014, 3:08 p.m.
On Wed, Sep 04, 2013 at 02:49:20PM +0200, Martin Jansa wrote:
> On Fri, Aug 30, 2013 at 06:21:24PM +0800, b40290@freescale.com wrote:
> > From: Chunrong Guo <B40290@freescale.com>
> > 
> >    *The dump DAQ test the various inline mode features
> >    *snort depends daq
> > 
> > Signed-off-by: Chunrong Guo <B40290@freescale.com>
> > ---
> >  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
> > 
> > diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
> > new file mode 100644
> > index 0000000..4c1be44
> > --- /dev/null
> > +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
> > @@ -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
> 
> 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'

Can we fix this please?
chunrong guo - March 28, 2014, 9:41 a.m.
Hello,
 I update daq to 2.0.2.

I  can not reproduce this issue .

Thanks

chunrong


-----Original Message-----
From: openembedded-devel-bounces@lists.openembedded.org [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf Of Martin Jansa
Sent: Monday, March 24, 2014 11:09 PM
To: openembedded-devel@lists.openembedded.org
Subject: Re: [oe] [meta-oe][PATCH V4 ] daq: add recipe

On Wed, Sep 04, 2013 at 02:49:20PM +0200, Martin Jansa wrote:
> On Fri, Aug 30, 2013 at 06:21:24PM +0800, b40290@freescale.com wrote:
> > From: Chunrong Guo <B40290@freescale.com>
> > 
> >    *The dump DAQ test the various inline mode features
> >    *snort depends daq
> > 
> > Signed-off-by: Chunrong Guo <B40290@freescale.com>
> > ---
> >  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
> > 
> > diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb 
> > b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
> > new file mode 100644
> > index 0000000..4c1be44
> > --- /dev/null
> > +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
> > @@ -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
> 
> 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
> /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?

Patch

diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
new file mode 100644
index 0000000..4c1be44
--- /dev/null
+++ b/meta-oe/recipes-connectivity/daq/daq_2.0.1.bb
@@ -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
diff --git a/meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch b/meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch
new file mode 100644
index 0000000..12a6cba
--- /dev/null
+++ b/meta-oe/recipes-connectivity/daq/files/disable-run-test-program-while-cross-compiling.patch
@@ -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 <B40290@freescale.com>
+
+--- 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