Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/libnids: new package
Date: Tue, 23 Jun 2020 14:26:46 +0200	[thread overview]
Message-ID: <20200623142646.5d4bd105@windsurf.home> (raw)
In-Reply-To: <CAJe0E3fg1O2n7ucLS71ZMoOrnxmSs_52KWAa_CgWhFrFMo0mnw@mail.gmail.com>

On Tue, 23 Jun 2020 14:14:20 +0200
Guillaume Bres <guillaume.bressaix@gmail.com> wrote:

> Trying to build libnids with libnet:
> 
>    - libnet does not have a pkg-config description file, so what I
>    previously said/thought cannot apply

Gah.

>    - unfortunately because of that, removing --disable-libnet option from
>    configure, has LNETLIB & LNET_CFLAGS pointing to /usr/include

Right.

>    - they have a --with-libnet option, I tried something like
>    --with-libnet=$(STAGING_DIR), but they look for a very specific combination
> 
>      if test -f $withval/include/libnet.h -a -f $withval/lib/libnet.a -a -f
> > $withval/libnet-config ; then  (line 133 in $libnids/configure.in)

Their handling of the --with-libXXX value is completely non-standard.
They expect it to be pointed to the *build* directory of the library,
and not to a sysroot where it has been installed. I had the same issue
with libpcap, which is why I switched to using pkg-config.

>    - $withval/include/libnet.h exists, we have a $withval/lib/libnet.la but
>    that is not exactly what they want, $withval/libnet-config does not exist
>    - so at the moment I am not able to submit anything further about this
>    topic, because of the combination of files they look for. I don't think
>    messing with $libnids/configure.in is an option either, that would be
>    too dirty

Well, we already mess with the configure.in script: see my patch 0001
that changes the configure.in script to add support for using
pkg-config to check for libpcap's availability.

>    - I am not familiar with pkg-config at the moment, I don't know if we
>    can "activate libnet.pc" and have pkg-config look for it

If you don't need libnet support as you're saying at the beginning of
this e-mail, then we can simply keep the --disable-libnet and that's it.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2020-06-23 12:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-22 10:53 [Buildroot] [PATCH 1/1] package/libnids: new package Guillaume W. Bres
2020-06-22 20:27 ` Thomas Petazzoni
2020-06-23  9:01   ` Guillaume Bres
2020-06-23  9:07     ` Guillaume Bres
2020-06-23 12:14       ` Guillaume Bres
2020-06-23 12:26         ` Thomas Petazzoni [this message]
2020-06-23 12:24     ` Thomas Petazzoni

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=20200623142646.5d4bd105@windsurf.home \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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