linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
To: linux-media@vger.kernel.org
Cc: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
Subject: Re: [PATCH v4l-utils v2 1/2] configure.ac: autodetect availability of systemd
Date: Fri, 26 Mar 2021 09:16:37 +0100	[thread overview]
Message-ID: <6rblb62uu2.fsf@pengutronix.de> (raw)
In-Reply-To: <20210304132340.17069-1-u.oelmann@pengutronix.de>

Gentle ping!

There is series [1] ("Add support for meson building") which is
currently discussed. If you want me to take that into account and extend
my patches to meson, as well, I could readily do that in a v3.

Best regards
Ulrich


[1] https://patchwork.linuxtv.org/project/linux-media/list/?series=4887

On Thu, Mar 04 2021 at 14:23 +0100, Ulrich Ölmann <u.oelmann@pengutronix.de> wrote:
> Import systemd's official suggestion [1] how this should be handled in packages
> using autoconf. A side effect of this is the removal of the hardcoded fallback
> path "/lib/systemd/system" which leaks build host information when cross
> compiling v4l-utils and therefore defeats reproducible builds.
>
> [1] https://www.freedesktop.org/software/systemd/man/daemon.html#Installing%20systemd%20Service%20Files
>
> Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
> ---
> v1 --> v2:
>   - fixed autodetection
>   - extended commit message
>
>  configure.ac | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index 727730c5ccf4..8470116df4b1 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -388,7 +388,15 @@ AC_ARG_WITH(udevdir,
>  AC_ARG_WITH(systemdsystemunitdir,
>  	AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [set systemd system unit directory]),
>  	[],
> -	[with_systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd || echo /lib/systemd/system`])
> +	[with_systemdsystemunitdir=auto])
> +AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"],
> +      [def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
> +       AS_IF([test "x$def_systemdsystemunitdir" = "x"],
> +             [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
> +                    [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
> +              with_systemdsystemunitdir=no],
> +             [with_systemdsystemunitdir="$def_systemdsystemunitdir"])])
> +AM_CONDITIONAL([HAVE_SYSTEMD], [test "x$with_systemdsystemunitdir" != "xno"])
>  
>  # Generic check: works with most distributions
>  def_gconv_dir=`for i in /lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib; do if @<:@ -d \$i/gconv @:>@; then echo \$i/gconv; break; fi; done`
-- 
Pengutronix e.K.                           | Ulrich Ölmann               |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  parent reply	other threads:[~2021-03-26  8:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 13:23 [PATCH v4l-utils v2 1/2] configure.ac: autodetect availability of systemd Ulrich Ölmann
2021-03-04 13:23 ` [PATCH v4l-utils v2 2/2] keytable: restrict installation of 50-rc_keymap.conf Ulrich Ölmann
2021-03-26  8:16 ` Ulrich Ölmann [this message]
2021-04-06  7:53   ` [PATCH v4l-utils v2 1/2] configure.ac: autodetect availability of systemd Ulrich Ölmann
2021-04-09 12:36     ` Sean Young

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=6rblb62uu2.fsf@pengutronix.de \
    --to=u.oelmann@pengutronix.de \
    --cc=linux-media@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).