* [Buildroot] [PATCH 1/1] package/systemd: fix build with openssl and gnutls
@ 2021-12-30 9:44 Fabrice Fontaine
2021-12-30 12:27 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-12-30 9:44 UTC (permalink / raw)
To: buildroot; +Cc: Norbert Lange, Yann E . MORIN, Fabrice Fontaine
Combination of cryptolib=openssl and dns-over-tls=gnutls is disallowed
since version 250 and
https://github.com/systemd/systemd/commit/e37ad765c86d2a763a2d655068dfe59789f18e3e
resulting in the following build failure since commit
e9fb26cbb8dafd28f50a912bcaddb1056769ec17:
../output-1/build/systemd-250/meson.build:1482:16: ERROR: Problem encountered: Sorry, -Ddns-over-tls=gnutls is not supported when openssl is used as the cryptolib
Fixes:
- http://autobuild.buildroot.org/results/2fcd4ad64b32cc4835866c9d99e05ab8c9bc794a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/systemd/systemd.mk | 38 ++++++++++++++++++--------------------
1 file changed, 18 insertions(+), 20 deletions(-)
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 3b0356ac9a..0b52cc47d1 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -115,13 +115,6 @@ else
SYSTEMD_CONF_OPTS += -Delfutils=false
endif
-ifeq ($(BR2_PACKAGE_GNUTLS),y)
-SYSTEMD_DEPENDENCIES += gnutls
-SYSTEMD_CONF_OPTS += -Dgnutls=true
-else
-SYSTEMD_CONF_OPTS += -Dgnutls=false
-endif
-
ifeq ($(BR2_PACKAGE_IPTABLES),y)
SYSTEMD_DEPENDENCIES += iptables
SYSTEMD_CONF_OPTS += -Dlibiptc=true
@@ -230,13 +223,6 @@ else
SYSTEMD_CONF_OPTS += -Dp11kit=false
endif
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SYSTEMD_DEPENDENCIES += openssl
-SYSTEMD_CONF_OPTS += -Dopenssl=true
-else
-SYSTEMD_CONF_OPTS += -Dopenssl=false
-endif
-
ifeq ($(BR2_PACKAGE_PCRE2),y)
SYSTEMD_DEPENDENCIES += pcre2
SYSTEMD_CONF_OPTS += -Dpcre2=true
@@ -491,14 +477,26 @@ else
SYSTEMD_CONF_OPTS += -Dnss-resolve=false -Dresolve=false
endif
-ifeq ($(BR2_PACKAGE_GNUTLS),y)
-SYSTEMD_CONF_OPTS += -Ddns-over-tls=gnutls -Ddefault-dns-over-tls=opportunistic
-SYSTEMD_DEPENDENCIES += gnutls
-else ifeq ($(BR2_PACKAGE_OPENSSL),y)
-SYSTEMD_CONF_OPTS += -Ddns-over-tls=openssl -Ddefault-dns-over-tls=opportunistic
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+SYSTEMD_CONF_OPTS += \
+ -Dgnutls=false \
+ -Dopenssl=true \
+ -Ddns-over-tls=openssl \
+ -Ddefault-dns-over-tls=opportunistic
SYSTEMD_DEPENDENCIES += openssl
+else ifeq ($(BR2_PACKAGE_GNUTLS),y)
+SYSTEMD_CONF_OPTS += \
+ -Dgnutls=true \
+ -Dopenssl=false \
+ -Ddns-over-tls=gnutls \
+ -Ddefault-dns-over-tls=opportunistic
+SYSTEMD_DEPENDENCIES += gnutls
else
-SYSTEMD_CONF_OPTS += -Ddns-over-tls=false -Ddefault-dns-over-tls=no
+SYSTEMD_CONF_OPTS += \
+ -Dgnutls=false \
+ -Dopenssl=false \
+ -Ddns-over-tls=false \
+ -Ddefault-dns-over-tls=no
endif
ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/systemd: fix build with openssl and gnutls
2021-12-30 9:44 [Buildroot] [PATCH 1/1] package/systemd: fix build with openssl and gnutls Fabrice Fontaine
@ 2021-12-30 12:27 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-12-30 12:27 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Norbert Lange, Yann E . MORIN, buildroot
On Thu, 30 Dec 2021 10:44:43 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Combination of cryptolib=openssl and dns-over-tls=gnutls is disallowed
> since version 250 and
> https://github.com/systemd/systemd/commit/e37ad765c86d2a763a2d655068dfe59789f18e3e
> resulting in the following build failure since commit
> e9fb26cbb8dafd28f50a912bcaddb1056769ec17:
>
> ../output-1/build/systemd-250/meson.build:1482:16: ERROR: Problem encountered: Sorry, -Ddns-over-tls=gnutls is not supported when openssl is used as the cryptolib
>
> Fixes:
> - http://autobuild.buildroot.org/results/2fcd4ad64b32cc4835866c9d99e05ab8c9bc794a
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/systemd/systemd.mk | 38 ++++++++++++++++++--------------------
> 1 file changed, 18 insertions(+), 20 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-30 12:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-30 9:44 [Buildroot] [PATCH 1/1] package/systemd: fix build with openssl and gnutls Fabrice Fontaine
2021-12-30 12:27 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox