Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer via buildroot <buildroot@buildroot.org>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: buildroot@busybox.net
Subject: Re: [Buildroot] [PATCH v1 8/8] package/openssl: move libopenssl/libressl source statemetns outside of the choice
Date: Wed, 8 May 2024 17:07:18 +0200	[thread overview]
Message-ID: <20240508170718.6e5c9cc8@gmx.net> (raw)
In-Reply-To: <Zjk5YgT6u3PT_rIe@landeda>

Hello Yann,

On Mon, 6 May 2024 22:11:14 +0200, "Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> > https://lists.buildroot.org/mailman/listinfo/buildroot
>
> Peter, All,
>
> On 2024-05-06 16:45 +0200, Peter Seiderer via buildroot spake thusly:
> > Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> > ---
> > Notes/ToDo:
> > - with this solution the external support needs to be splitted into
> >   two imports/lines...
>
> NMot sure I understand wht you meant here...

Short/compressed note (and not clear), but see below...

>
> > ---
> >  package/openssl/Config.in | 7 +++----
> >  1 file changed, 3 insertions(+), 4 deletions(-)
> >
> > diff --git a/package/openssl/Config.in b/package/openssl/Config.in
> > index 3d14988d99..fcf996f03f 100644
> > --- a/package/openssl/Config.in
> > +++ b/package/openssl/Config.in
> > @@ -28,8 +28,6 @@ config BR2_PACKAGE_LIBOPENSSL
> >
> >  	  Note: Some helper scripts need perl.
> >
> > -source "package/libopenssl/Config.in"
> > -
> >  config BR2_PACKAGE_LIBRESSL
> >  	bool "libressl"
> >  	depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
> > @@ -44,13 +42,14 @@ config BR2_PACKAGE_LIBRESSL
> >
> >  	  http://www.libressl.org/
> >
> > -source "package/libressl/Config.in"
> > -
> >  # openssl from br2-external trees, if any
> >  source "$(BASE_DIR)/.br2-external.in.openssl"
>
> This leaves one 'source' statement in te choice, which is no longer
> accepted, AFAIU.

'source' is accepted here, but not with all possible content...

>
> >  endchoice
> >
> > +source "package/libopenssl/Config.in"
> > +source "package/libressl/Config.in"
>
> I think the best solution is to move the if-endif conditional block out
> of package/libopenssl/Config.in back into package/openssl/Config.in, and
> add a new choice entry, so that basically we end up with something lie;
>
>     choice
>         bool "ssl library"
>
>     config BR2_PACKAGE_LIBOPENSSL
>         bool "openssl"
>
>     config BR2_PACKAGE_LIBRESSL
>         bool "libressl"
>
>     config BR2_PACKAGE_OPENSSL_EXTERNAL
>         bool "from an external tree"
>         depends on $BR2_EXTERNAL != ""  # Or something along those lines, adapt
>
>     endchoice
>
>     if BR2_PACKAGE_LIBOPENSSL
>     source "package/libopenssl/Config.in"
>     endif
>
>     if BR2_PACKAGE_LIBRESSL
>     source "package/libressl/Config.in"
>     endif
>
>     if BR2_PACKAGE_OPENSSL_EXTERNAL
>     source "$(BASE_DIR)/.br2-external.in.openssl"
>     endif

Will test the proposed solution the next days..., alternative solution would be:

     choice
         bool "ssl library"

     config BR2_PACKAGE_LIBOPENSSL
         bool "openssl"

     config BR2_PACKAGE_LIBRESSL
         bool "libressl"

     source "$(BASE_DIR)/.br2-external.in.openssl-choice"

     endchoice

     source "package/libopenssl/Config.in"
     source "package/libressl/Config.in"
     source "$(BASE_DIR)/.br2-external.in.openssl"

Splitting the external content into two files (two lines), keeping the 'source'
of the empty files as default (the first with the choice content, the second
with the regarding configuration entries)...

But either way the content of '.br2-external.in.openssl' needs to be
changed/adjusted...

Regards,
Peter


>
> Basically, that would make for an uglier state, but that's the best we
> can do given the new limitsations introduced by upstream kconfig...
>
> Thoughts?
>
> Regards,
> Yann E. MORIN.
>
> >  config BR2_PACKAGE_HAS_OPENSSL
> >  	bool
> >
> > --
> > 2.44.0
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot@buildroot.org
> > https://lists.buildroot.org/mailman/listinfo/buildroot
>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-05-08 15:07 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 14:45 [Buildroot] [PATCH v1 0/8] support/kconfig: bump to linux-v6.9-rc5 version Peter Seiderer via buildroot
2024-05-06 14:45 ` [Buildroot] [PATCH v1 1/8] boot/barebox/Config.in: source argument needs quotation marks Peter Seiderer via buildroot
2024-05-26 20:45   ` Peter Korsgaard
2024-05-06 14:45 ` [Buildroot] [PATCH v1 2/8] package/cmocka/Config.in: bool " Peter Seiderer via buildroot
2024-05-26 20:46   ` Peter Korsgaard
2024-05-06 14:45 ` [Buildroot] [PATCH v1 3/8] package/dovecot/Config.in: source " Peter Seiderer via buildroot
2024-05-26 20:46   ` Peter Korsgaard
2024-05-06 14:45 ` [Buildroot] [PATCH v1 4/8] package/python-pydal/Config.in: bool " Peter Seiderer via buildroot
2024-05-26 20:45   ` Peter Korsgaard
2024-05-06 14:45 ` [Buildroot] [PATCH v1 5/8] package/x11r7/Config.in: source " Peter Seiderer via buildroot
2024-05-26 20:46   ` Peter Korsgaard
2024-05-06 14:45 ` [Buildroot] [PATCH v1 6/8] support/kconfig: bump to linux-v6.9-rc5 version Peter Seiderer via buildroot
2024-05-08 21:41   ` Petr Vorel
2024-05-08 21:54     ` Peter Seiderer via buildroot
2024-05-09 10:51       ` Yann E. MORIN
2024-05-06 14:45 ` [Buildroot] [PATCH v1 7/8] support/kconfig: reference environment variables directly (remove 'option env=') Peter Seiderer via buildroot
2024-05-06 19:06   ` Thomas Petazzoni via buildroot
2024-05-08 14:53     ` Peter Seiderer via buildroot
2024-05-08 19:18       ` Yann E. MORIN
2024-05-06 14:45 ` [Buildroot] [PATCH v1 8/8] package/openssl: move libopenssl/libressl source statemetns outside of the choice Peter Seiderer via buildroot
2024-05-06 20:11   ` Yann E. MORIN
2024-05-08 15:07     ` Peter Seiderer via buildroot [this message]
2024-05-08 18:57       ` Yann E. MORIN
2024-05-06 19:04 ` [Buildroot] [PATCH v1 0/8] support/kconfig: bump to linux-v6.9-rc5 version Thomas Petazzoni via buildroot
2024-05-06 20:19   ` Yann E. MORIN
2024-05-06 20:21     ` Thomas Petazzoni via buildroot
2024-05-08 15:21     ` Peter Seiderer via buildroot
2024-05-08 19:08       ` Yann E. MORIN
2024-05-08 15:16   ` Peter Seiderer via buildroot
2025-05-18 14:55 ` Thomas Petazzoni via buildroot
2025-05-21  7:40   ` Peter Seiderer via buildroot

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=20240508170718.6e5c9cc8@gmx.net \
    --to=buildroot@buildroot.org \
    --cc=buildroot@busybox.net \
    --cc=ps.report@gmx.net \
    --cc=yann.morin.1998@free.fr \
    /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