All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 6/7] systemd: add optional dependency on libidn2
Date: Sun, 20 May 2018 16:16:32 +0200	[thread overview]
Message-ID: <20180520161632.0fe82ac8@windsurf> (raw)
In-Reply-To: <20180501204038.20000-6-fontaine.fabrice@gmail.com>

Hello,

On Tue,  1 May 2018 22:40:37 +0200, Fabrice Fontaine wrote:

> +# Both options can't be selected at the same time so prefer libidn2
> +ifeq ($(BR2_PACKAGE_LIBIDN2),y)
> +SYSTEMD_DEPENDENCIES += libidn2
> +SYSTEMD_CONF_OPTS += -Dlibidn2=true
> +else
> +SYSTEMD_CONF_OPTS += -Dlibidn2=false
>  ifeq ($(BR2_PACKAGE_LIBIDN),y)
>  SYSTEMD_DEPENDENCIES += libidn
>  SYSTEMD_CONF_OPTS += -Dlibidn=true
>  else
>  SYSTEMD_CONF_OPTS += -Dlibidn=false
>  endif
> +endif

This was a bit complicated so I've replaced with:

# Both options can't be selected at the same time so prefer libidn2
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
SYSTEMD_DEPENDENCIES += libidn2
SYSTEMD_CONF_OPTS += -Dlibidn2=true -Dlibidn=false
else ifeq ($(BR2_PACKAGE_LIBIDN),y)
SYSTEMD_DEPENDENCIES += libidn
SYSTEMD_CONF_OPTS += -Dlibidn=true -Dlibidn2=false
else
SYSTEMD_CONF_OPTS += -Dlibidn=false -Dlibidn2=true
endif

which I believe is simpler and more in line with what we do in
Buildroot usually.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-05-20 14:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-01 20:40 [Buildroot] [PATCH 1/7] libidn2: new package Fabrice Fontaine
2018-05-01 20:40 ` [Buildroot] [PATCH 2/7] libcurl: replace libidn by libidn2 Fabrice Fontaine
2018-05-01 20:40 ` [Buildroot] [PATCH 3/7] wget: add optional dependency for libidn2 Fabrice Fontaine
2018-05-01 20:40 ` [Buildroot] [PATCH 4/7] gnutls: add optional libidn2 support Fabrice Fontaine
2018-05-01 20:40 ` [Buildroot] [PATCH 5/6] lftp: switch from libidn to libidn2 Fabrice Fontaine
2018-05-01 20:40 ` [Buildroot] [PATCH 6/7] systemd: add optional dependency on libidn2 Fabrice Fontaine
2018-05-20 14:16   ` Thomas Petazzoni [this message]
2018-05-01 20:40 ` [Buildroot] [PATCH 7/7] whois: add libidn2 support Fabrice Fontaine
2018-05-02 21:51 ` [Buildroot] [PATCH 1/7] libidn2: new package Arnout Vandecappelle
2018-05-03 10:13   ` Fabrice Fontaine
2018-05-20 14:15 ` Thomas Petazzoni

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=20180520161632.0fe82ac8@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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.