All of 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/capnproto: add openssl optional dependency
Date: Thu, 13 Aug 2020 23:23:26 +0200	[thread overview]
Message-ID: <20200813232326.0ea90e56@windsurf.home> (raw)
In-Reply-To: <20200809165215.GB13263@scaer>

On Sun, 9 Aug 2020 18:52:15 +0200
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> So, I got the answer, at least partially:
> 
>   - the code snippet above is only executed when auto-detection is done
> 
>     - before this patch, it would alwasys fail in static builds, so
>       capnproto would always be built without ssl/tls support, and a
>       shared build would depend on the build ordering;
> 
>     - with this patch, we explicitly enable or disable openssl support,
>       so the code snippet is not executed.
> 
>   - the dependency on openssl is only used to build a library, that is
>     not used to link an executable in capnproto, and does not seem to be
>     used by of our in-tree packages that use capnproto.
> 
> And indeed, the link forget -lz )indentation mine):
> 
>     /bin/bash ./libtool --tag=CXX \
>         --mode=link /home/ymorin/dev/buildroot/O/host/bin/arm-linux-g++ \
>         [...] \
>         -DKJ_HAS_OPENSSL \
>         -o libkj-tls.la \
>         [...] \
>         -lssl -lcrypto -latomic
> 
> so indeed, no -lz.
> 
> Furthermre, capnproto does install a bunch of .pc file, but installs
> none for libkj-tls. And none of the .pc files insalled ever reference
> libkj-tls or ssl or crypto.
> 
> That's why we have no build failure in our autobuilders.
> 
> Yet, I wonder how openssl support works in capnproto, and if this patch
> ever makes sense in the context of Buildroot...

Thanks for the exhaustive research! I think we should not only look at
packages that are in Buildroot: people may be having their own custom
stuff that links against libkj-tls, so overall I think the patch makes
sense. There is something that optionally links against OpenSSL in
capnproto, so we should have an optional dependency on OpenSSL.

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

  reply	other threads:[~2020-08-13 21:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-27 12:41 [Buildroot] [PATCH 1/1] package/capnproto: add openssl optional dependency Fabrice Fontaine
2020-07-27 12:51 ` Yann E. MORIN
2020-08-08 21:40   ` Thomas Petazzoni
2020-08-09 16:52     ` Yann E. MORIN
2020-08-13 21:23       ` Thomas Petazzoni [this message]
2020-07-28  6:41 ` Koen Martens
2020-08-28 16:28 ` Peter Korsgaard

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=20200813232326.0ea90e56@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 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.