Skip to contentSkip to conversation

package/systemd: doesn't build with libressl

PATCH Applied Fabrice Fontaine 3 participants 3 messages Apr 7, 2022 – May 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/systemd: doesn't build with libressl

systemd doesn't plan to fix the following build failure with libressl
(https://github.com/systemd/systemd/issues/14928) and ED25519 support is still not available in libressl
(https://github.com/libressl-portable/portable/issues/393 opened for more than 3 years):

../src/home/homed-manager.c: In function ‘manager_generate_key_pair’:
../src/home/homed-manager.c:1393:35: error: ‘EVP_PKEY_ED25519’ undeclared (first use in this function); did you mean ‘EVP_PKEY_DSA1’?

 1393 |         ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_ED25519, NULL);
      |                                   ^~~~~~~~~~~~~~~~
      |                                   EVP_PKEY_DSA1

Fixes:
- http://autobuild.buildroot.org/results/47f31b36f123c4be4661f4fde2d1f7385c5d0ed5

---
 package/systemd/Config.in  | 2 ++
 package/systemd/systemd.mk | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
package/systemd/Config.in +2 -0
index cc0736561e..00c817172d 100644
@@ -234,6 +234,7 @@ config BR2_PACKAGE_SYSTEMD_HOMED
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # fscrypt_key
 	select BR2_PACKAGE_CRYPTSETUP
 	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
 	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
 	help
 	  systemd-homed is a system service that may be used to create,
@@ -412,6 +413,7 @@ config BR2_PACKAGE_SYSTEMD_RANDOMSEED
 config BR2_PACKAGE_SYSTEMD_REPART
 	bool "enable repart support"
 	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
 	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
 	help
 	  systemd-repart grows and adds partitions to a partition table,
package/systemd/systemd.mk +1 -1
index 9feed9c084..58a1376b51 100644
@@ -498,7 +498,7 @@ else
 SYSTEMD_CONF_OPTS += -Dnss-resolve=false -Dresolve=false
 endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
 SYSTEMD_CONF_OPTS += \
 	-Dgnutls=false \
 	-Dopenssl=true \
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 8 lines · Fabrice Fontaine

systemd doesn't plan to fix the following build failure with libressl
(https://github.com/systemd/systemd/issues/14928) and ED25519 support is still not available in libressl
(https://github.com/libressl-portable/portable/issues/393 opened for more than 3 years):

../src/home/homed-manager.c: In function ‘manager_generate_key_pair’:
../src/home/homed-manager.c:1393:35: error: ‘EVP_PKEY_ED25519’ undeclared (first use in this function); did you mean ‘EVP_PKEY_DSA1’?

Quoted 8 lines
  1393 |         ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_ED25519, NULL);
       |                                   ^~~~~~~~~~~~~~~~
       |                                   EVP_PKEY_DSA1

Fixes:
- http://autobuild.buildroot.org/results/47f31b36f123c4be4661f4fde2d1f7385c5d0ed5

Applied to master, thanks.

Regards,
Arnout

Quoted 30 lines
---
  package/systemd/Config.in  | 2 ++
  package/systemd/systemd.mk | 2 +-
  2 files changed, 3 insertions(+), 1 deletion(-)
package/systemd/Config.in +2 -0
index cc0736561e..00c817172d 100644
@@ -234,6 +234,7 @@ config BR2_PACKAGE_SYSTEMD_HOMED
  	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12 # fscrypt_key
  	select BR2_PACKAGE_CRYPTSETUP
  	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
  	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
  	help
  	  systemd-homed is a system service that may be used to create,
@@ -412,6 +413,7 @@ config BR2_PACKAGE_SYSTEMD_RANDOMSEED
  config BR2_PACKAGE_SYSTEMD_REPART
  	bool "enable repart support"
  	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
  	select BR2_PACKAGE_UTIL_LINUX_LIBFDISK
  	help
  	  systemd-repart grows and adds partitions to a partition table,
package/systemd/systemd.mk +0 -0
index 9feed9c084..58a1376b51 100644

package/systemd/systemd.mk else · line 504

Quoted 8 lines
package/systemd/systemd.mk +1 -1
@@ -498,7 +498,7 @@ else
  SYSTEMD_CONF_OPTS += -Dnss-resolve=false -Dresolve=false
  endif
 
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
  SYSTEMD_CONF_OPTS += \
  	-Dgnutls=false \
  	-Dopenssl=true \

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Fabrice Fontaine
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

systemd doesn't plan to fix the following build failure with libressl
(https://github.com/systemd/systemd/issues/14928) and ED25519 support is still not available in libressl
(https://github.com/libressl-portable/portable/issues/393 opened for more than 3 years):

../src/home/homed-manager.c: In function ‘manager_generate_key_pair’:
../src/home/homed-manager.c:1393:35: error: ‘EVP_PKEY_ED25519’ undeclared (first use in this function); did you mean ‘EVP_PKEY_DSA1’?

Quoted 8 lines
 1393 |         ctx = EVP_PKEY_CTX_new_id(EVP_PKEY_ED25519, NULL);
      |                                   ^~~~~~~~~~~~~~~~
      |                                   EVP_PKEY_DSA1

Fixes:
- http://autobuild.buildroot.org/results/47f31b36f123c4be4661f4fde2d1f7385c5d0ed5

Committed to 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot