All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Quentin Schulz" <quentin.schulz@streamunlimited.com>
To: gary@missionsecure.com
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto] Help creating zeek recipe #yocto
Date: Mon, 6 Jul 2020 10:51:46 +0200	[thread overview]
Message-ID: <20200706085146.hyrjcozgvxmuvj45@qschulz> (raw)
In-Reply-To: <cqNm.1593811360865000924.aM66@lists.yoctoproject.org>

Hi Gary,

On Fri, Jul 03, 2020 at 02:22:40PM -0700, gary via lists.yoctoproject.org wrote:
> I would like to create a recipe for zeek (a network security monitoring tool, https://zeek.org/). It fails while compiling because it cannot find a executable that it needs to install called binpac.  binpac is included in the zeek repo and is normally built as part of the zeek build.  I've created a recipe for binpac and included the native class and included binpac-native in the zeek recipe.  The binpac-native builds.
> 
> binpac_git.bb
> 
> SUMMARY = "BinPAC is a high level language for describing protocol parsers and generates C++ code."
> HOMEPAGE = "https://github.com/zeek/binpac"
> 
> LICENSE = "Unknown"
> LIC_FILES_CHKSUM = "file://COPYING;md5=5139995cafc8b5273b85dd8bab509855"
> 
> SRC_URI = "git://git@github.com/zeek/binpac.git;protocol=ssh"
> 
> # Modify these as desired
> PV = "0.55-8+git${SRCPV}"
> SRCREV = "9c3211ff121ddc677d0ed8bd3a85783f87921cce"
> 
> BBCLASSEXTEND = "native"
> 
> DEPENDS += "bison-native \
> flex-native \
> "
> S = "${WORKDIR}/git"
> 
> inherit distutils
> 

I'm not sure setup.py is supported for the project as it's empty? So
distutils does not look correct to me.

You have a makefile (inherit no classes, that;s the default) or
Cmakelists (inherit cmake) or ./configure (inherit autotools, though it
expects a configure.ac and not a configure directly).

Then, what you want to check is that your binpac binary is installed in
${WORKDIR}/sysroot-dirs. If it's not, you've to find where the binary is
installed (if it is) and fix the Cmake/autotools scripts to install in
the correct directory (one of the directories in STAGING_DIRS as a
"subdirectory" of ${D}) or add said directory to the ones installed in
other recipes' sysroot (STAGING_DIRS).

Quentin

      reply	other threads:[~2020-07-06  8:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-03 21:22 Help creating zeek recipe #yocto gary
2020-07-06  8:51 ` Quentin Schulz [this message]

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=20200706085146.hyrjcozgvxmuvj45@qschulz \
    --to=quentin.schulz@streamunlimited.com \
    --cc=gary@missionsecure.com \
    --cc=yocto@lists.yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.