Patchwork nmap: use native python and add python dependence

login
register
mail settings
Submitter yanjun.zhu
Date Feb. 19, 2014, 2:35 a.m.
Message ID <1392777327-12786-1-git-send-email-yanjun.zhu@windriver.com>
Download mbox | patch
Permalink /patch/66945/
State New
Headers show

Comments

yanjun.zhu - Feb. 19, 2014, 2:35 a.m.
---
 recipes-security/nmap/nmap_6.25.bb |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
Khem Raj - Feb. 19, 2014, 2:40 a.m.
On Feb 18, 2014, at 6:35 PM, Zhu Yanjun <yanjun.zhu@windriver.com> wrote:

> +export BUILD_SYS
> +export HOST_SYS
> +export STAGING_LIBDIR
> +export STAGING_INCDIR
> +

why are these needed ?
Randy MacLeod - Feb. 19, 2014, 3:39 a.m.
On 14-02-18 09:40 PM, Khem Raj wrote:
>
> On Feb 18, 2014, at 6:35 PM, Zhu Yanjun <yanjun.zhu@windriver.com> wrote:
>
>> +export BUILD_SYS
>> +export HOST_SYS
>> +export STAGING_LIBDIR
>> +export STAGING_INCDIR
>> +
>
> why are these needed ?

Also, meta-security recipes are discussed on:
   yocto@yoctoproject.org
not the oe-core list.

../Randy
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>

Patch

diff --git a/recipes-security/nmap/nmap_6.25.bb b/recipes-security/nmap/nmap_6.25.bb
index aff5c63..8d7e853 100644
--- a/recipes-security/nmap/nmap_6.25.bb
+++ b/recipes-security/nmap/nmap_6.25.bb
@@ -11,12 +11,17 @@  SRC_URI = "http://nmap.org/dist/${PN}-${PV}.tar.bz2 \
 SRC_URI[md5sum] = "fcc80f94ff3adcb11eedf91092ea6f5e"
 SRC_URI[sha256sum] = "3349cc6d36b86b95ca2b8075d16615a3a598cef494920d6652f9a8bf9f7660b5"
 
-inherit autotools
+inherit autotools pythonnative
 
-DEPENDS = "libpcap"
+DEPENDS = "libpcap python"
 
 EXTRA_OECONF = "--without-liblua --without-zenmap --without-subversion --with-pcap=linux"
 
+export BUILD_SYS
+export HOST_SYS
+export STAGING_LIBDIR
+export STAGING_INCDIR
+
 do_configure() {
     autoconf
     oe_runconf