package/rauc: needs libopenssl, not libressl
PATCH 1/1 package/rauc: needs libopenssl, not libressl
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.
--- package/rauc/Config.in | 1 + 1 file changed, 1 insertion(+)
package/rauc/Config.in +1 -0
@@ -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 # uses ENGINE_* API select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_SQUASHFS # run-time dependency
Signature · 6 lines
2.39.5 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Peter,
Quoted 35 lines · Peter Korsgaard
Fixes http://autobuild.buildroot.net/results/6efc1275d3aac9f0a4c000f3d0911b5a880e495d/
Rauc uses
X509_PURPOSE_get_by_id()since rauc-1.3 with commit375dbb16dd94("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_00000000001377b0TX509_PURPOSE_get00000000000137850 TX509_PURPOSE_get0_name0000000000137860 TX509_PURPOSE_get0_sname00000000001377d0TX509_PURPOSE_get_by_sname00000000001377a0TX509_PURPOSE_get_count0000000000137840 TX509_PURPOSE_get_idSo force the use of libopenssl.
Signed-off-by Peter Korsgaard <[email protected]>--- package/rauc/Config.in | 1 + 1 file changed, 1 insertion(+)package/rauc/Config.in +1
-0@@ -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
Quoted 1 line
X509_PURPOSE_get_by_id
If we force libopenssl here...
package/rauc/Config.in config BR2_PACKAGE_RAUC · line 10
Quoted 2 lines
package/rauc/Config.in +0
-0# uses ENGINE_* API select BR2_PACKAGE_LIBOPENSSL_ENGINES if BR2_PACKAGE_LIBOPENSSL
^~~~~~~~~~~~~~~~~~~~~~~~~
...should we also remove the "if" condition here?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 40 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Julien" == Julien Olivain <[email protected]> writes:
Hi Peter,
Quoted 32 lines · Peter Korsgaard
Fixes
http://autobuild.buildroot.net/results/6efc1275d3aac9f0a4c000f3d0911b5a880e495d/
Rauc usesX509_PURPOSE_get_by_id()since rauc-1.3 with commit375dbb16dd94
("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 | grepX509_PURPOSE_00000000001377b0TX509_PURPOSE_get0
0000000000137850 TX509_PURPOSE_get0_name0000000000137860 TX509_PURPOSE_get0_sname00000000001377d0TX509_PURPOSE_get_by_sname00000000001377a0TX509_PURPOSE_get_count0000000000137840 TX509_PURPOSE_get_id
So force the use of libopenssl.Signed-off-by Peter Korsgaard <[email protected]>---
package/rauc/Config.in | 1 +1 file changed, 1 insertion(+)package/rauc/Config.in +0
-0@@ -5,6 +5,7 @@ config BR2_PACKAGE_RAUCdepends on
BR2_USE_WCHAR# glib2 selectBR2_PACKAGE_LIBGLIB2selectBR2_PACKAGE_OPENSSLpackage/rauc/Config.in +1
-0+ select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL # usesQuoted 1 line
X509_PURPOSE_get_by_idIf we force libopenssl here...
Quoted 4 lines
Quoted 2 lines
# 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.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 41 lines
Quoted 40 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"Peter" == Peter Korsgaard <[email protected]> writes:
"Julien" == Julien Olivain <[email protected]> writes:
Hi Peter,
Quoted 32 lines · Peter Korsgaard
Fixes
http://autobuild.buildroot.net/results/6efc1275d3aac9f0a4c000f3d0911b5a880e495d/
Rauc usesX509_PURPOSE_get_by_id()since rauc-1.3 with commit375dbb16dd94
("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 | grepX509_PURPOSE_00000000001377b0TX509_PURPOSE_get0
0000000000137850 TX509_PURPOSE_get0_name0000000000137860 TX509_PURPOSE_get0_sname00000000001377d0TX509_PURPOSE_get_by_sname00000000001377a0TX509_PURPOSE_get_count0000000000137840 TX509_PURPOSE_get_id
So force the use of libopenssl.Signed-off-by Peter Korsgaard <[email protected]>---
package/rauc/Config.in | 1 +1 file changed, 1 insertion(+)package/rauc/Config.in +0
-0@@ -5,6 +5,7 @@ config BR2_PACKAGE_RAUCdepends on
BR2_USE_WCHAR# glib2 selectBR2_PACKAGE_LIBGLIB2selectBR2_PACKAGE_OPENSSLpackage/rauc/Config.in +1
-0+ select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL # usesQuoted 1 line
X509_PURPOSE_get_by_idIf we force libopenssl here...
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
# 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.
Committed to 2024.11.x, thanks. The function was dropped (by accident?) by libressl 3.9, so 2024.02.x is not affected.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot