From: Hongxu Jia <hongxu.jia@windriver.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>,
Saul Wold <saul.wold@intel.com>
Subject: Re: [PATCH 2/2] socat: enable ptest
Date: Thu, 13 Feb 2014 11:38:33 +0800 [thread overview]
Message-ID: <52FC3E39.8020601@windriver.com> (raw)
In-Reply-To: <CAMKF1spfiZ3298jFuL1k7V_pdnBpBVbvTvuk13R2yv_7TLLDeQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3548 bytes --]
On 02/13/2014 11:26 AM, Khem Raj wrote:
>
> -Khem
> On Feb 12, 2014 6:57 PM, "Hongxu Jia" <hongxu.jia@windriver.com
> <mailto:hongxu.jia@windriver.com>> wrote:
> >
> > Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com
> <mailto:hongxu.jia@windriver.com>>
> > ---
> > meta/recipes-connectivity/socat/socat/run-ptest | 5 +++++
> > meta/recipes-connectivity/socat/socat_1.7.2.3.bb
> <http://socat_1.7.2.3.bb> | 12 ++++++++++--
> > 2 files changed, 15 insertions(+), 2 deletions(-)
> > create mode 100644 meta/recipes-connectivity/socat/socat/run-ptest
> >
> > diff --git a/meta/recipes-connectivity/socat/socat/run-ptest
> b/meta/recipes-connectivity/socat/socat/run-ptest
> > new file mode 100644
> > index 0000000..1fffab1
> > --- /dev/null
> > +++ b/meta/recipes-connectivity/socat/socat/run-ptest
> > @@ -0,0 +1,5 @@
> > +#!/bin/bash
>
> is bash really needed ?
>
Yes, I am sure.
The socat's FAQ:
...
23 Q: I succeeded to configure and make socat, but ./test.sh says
something
24 like:
25 ./test.sh: No such file or directory
26
27 A: You need a bash shell, and its location must be correctly
specified in the
28 first line of test.sh, e.g. /usr/local/bin/bash instead of /bin/bash.
...
//Hongxu
> > +
> > +export SOCAT="/usr/bin/socat"
> > +
> > +./test.sh
> > diff --git a/meta/recipes-connectivity/socat/socat_1.7.2.3.bb
> <http://socat_1.7.2.3.bb>
> b/meta/recipes-connectivity/socat/socat_1.7.2.3.bb
> <http://socat_1.7.2.3.bb>
> > index 99060b1..2e763bb 100644
> > --- a/meta/recipes-connectivity/socat/socat_1.7.2.3.bb
> <http://socat_1.7.2.3.bb>
> > +++ b/meta/recipes-connectivity/socat/socat_1.7.2.3.bb
> <http://socat_1.7.2.3.bb>
> > @@ -7,6 +7,8 @@ SECTION = "console/network"
> >
> > DEPENDS = "openssl readline"
> >
> > +RDEPENDS_${PN}-ptest += "bash"
> > +
> > LICENSE = "GPL-2.0+-with-OpenSSL-exception"
> > LIC_FILES_CHKSUM =
> "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
> >
> file://README;beginline=252;endline=282;md5=79246f11a1db0b6ccec54d1fb711c01e"
> > @@ -14,7 +16,9 @@ LIC_FILES_CHKSUM =
> "file://COPYING;md5=18810669f13b87348459e611d31ab760 \
> >
> > SRC_URI =
> "http://www.dest-unreach.org/socat/download/socat-${PV}.tar.bz2
> <http://www.dest-unreach.org/socat/download/socat-$%7BPV%7D.tar.bz2> \
> > file://compile.patch \
> > - file://fix-xxx_SHIFT-autoheader.patch"
> > + file://fix-xxx_SHIFT-autoheader.patch \
> > + file://run-ptest \
> > +"
> >
> > SRC_URI[md5sum] = "75008d8baf7c6c9e27aa7afb34a622de"
> > SRC_URI[sha256sum] =
> "0598ac54af7b138cda9e3c141bcf0cc63eeb2ab31f468a772dc3f7eb3896aad0"
> > @@ -27,7 +31,7 @@ EXTRA_OECONF += "ac_cv_have_z_modifier=yes
> sc_cv_sys_crdly_shift=9 \
> > ac_cv_ispeed_offset=13 \
> > "
> >
> > -inherit autotools
> > +inherit autotools ptest
> >
> > do_configure_prepend() {
> > sed '/AC_DEFINE_UNQUOTED(ISPEED_OFFSET/a\AC_DEFINE(OSPEED_OFFSET,\
> > @@ -38,3 +42,7 @@ do_install_prepend () {
> > mkdir -p ${D}${bindir}
> > install -d ${D}${bindir} ${D}${mandir}/man1
> > }
> > +
> > +do_install_ptest() {
> > + cp -r ${S}/*.sh ${D}${PTEST_PATH}
> > +}
> > --
> > 1.8.1.2
> >
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> <mailto:Openembedded-core@lists.openembedded.org>
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 6460 bytes --]
next prev parent reply other threads:[~2014-02-13 3:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 2:54 [PATCH 0/2] socat: upgrade to 1.7.2.3 and enable ptest Hongxu Jia
2014-02-13 2:54 ` [PATCH 1/2] socat: upgrade to 1.7.2.3 Hongxu Jia
2014-02-13 2:54 ` [PATCH 2/2] socat: enable ptest Hongxu Jia
2014-02-13 3:26 ` Khem Raj
2014-02-13 3:38 ` Hongxu Jia [this message]
2014-02-13 3:48 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52FC3E39.8020601@windriver.com \
--to=hongxu.jia@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
--cc=saul.wold@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox