From: Peter Korsgaard <peter@korsgaard.com>
To: Julien Olivain <ju.o@free.fr>
Cc: buildroot@buildroot.org, Heiko Thiery <heiko.thiery@gmail.com>,
Andrey Yurovsky <yurovsky@gmail.com>
Subject: Re: [Buildroot] [PATCH] package/rauc: needs libopenssl, not libressl
Date: Sun, 16 Mar 2025 20:44:55 +0100 [thread overview]
Message-ID: <87h63s4v60.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <d3fa638db3bf0ad03f5f9d345011c2eb@free.fr> (Julien Olivain's message of "Sun, 16 Mar 2025 11:54:35 +0100")
>>>>> "Julien" == Julien Olivain <ju.o@free.fr> writes:
> Hi Peter,
> On 16/03/2025 08:57, Peter Korsgaard wrote:
>> Fixes
>> http://autobuild.buildroot.net/results/6efc1275d3aac9f0a4c000f3d0911b5a880e495d/
>> Rauc uses X509_PURPOSE_get_by_id() since rauc-1.3 with commit
>> 375dbb16dd94
>> ("src/signature: add support for codesigning certificate purpose"):
>> ../src/signature.c: In function 'signature_init':
>> ../src/signature.c:97:13: warning: implicit declaration of function
>> 'X509_PURPOSE_get_by_id'; did you mean 'X509_PURPOSE_get_id'?
>> [-Wimplicit-function-declaration]
>> 97 | if (X509_PURPOSE_get_by_id(id) >= 0) {
>> Which is not provided by LibreSSL:
>> nm -D target/usr/lib/libcrypto.so | grep X509_PURPOSE_
>> 00000000001377b0 T X509_PURPOSE_get0
>> 0000000000137850 T X509_PURPOSE_get0_name
>> 0000000000137860 T X509_PURPOSE_get0_sname
>> 00000000001377d0 T X509_PURPOSE_get_by_sname
>> 00000000001377a0 T X509_PURPOSE_get_count
>> 0000000000137840 T X509_PURPOSE_get_id
>> So force the use of libopenssl.
>> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
>> ---
>> package/rauc/Config.in | 1 +
>> 1 file changed, 1 insertion(+)
>> diff --git a/package/rauc/Config.in b/package/rauc/Config.in
>> index af0b99c36b..701ffef76b 100644
>> --- a/package/rauc/Config.in
>> +++ b/package/rauc/Config.in
>> @@ -5,6 +5,7 @@ config BR2_PACKAGE_RAUC
>> depends on BR2_USE_WCHAR # glib2
>> select BR2_PACKAGE_LIBGLIB2
>> select BR2_PACKAGE_OPENSSL
>> + select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL # uses
>> X509_PURPOSE_get_by_id
> If we force libopenssl here...
>> # uses ENGINE_* API
>> select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL
> ^~~~~~~~~~~~~~~~~~~~~~~~~
> ...should we also remove the "if" condition here?
Ahh yes, we can.
Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-03-16 19:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-16 7:57 [Buildroot] [PATCH] package/rauc: needs libopenssl, not libressl Peter Korsgaard
2025-03-16 10:54 ` Julien Olivain
2025-03-16 19:44 ` Peter Korsgaard [this message]
2025-03-24 16:21 ` 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=87h63s4v60.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=heiko.thiery@gmail.com \
--cc=ju.o@free.fr \
--cc=yurovsky@gmail.com \
/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.