From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Mykola Kvach <xakep.amatop@gmail.com>
Cc: xen-devel@lists.xenproject.org,
Mykola Kvach <mykola_kvach@epam.com>,
Anthony PERARD <anthony.perard@vates.tech>
Subject: Re: [PATCH] systemd: default system-sleep dir without pkg-config
Date: Fri, 5 Dec 2025 14:57:20 +0100 [thread overview]
Message-ID: <aTLkwMpxchYSMnyT@mail-itl> (raw)
In-Reply-To: <f03c8a2fe81527841966ed6c8ed603d1d90ee5c4.1764940296.git.mykola_kvach@epam.com>
[-- Attachment #1: Type: text/plain, Size: 1864 bytes --]
On Fri, Dec 05, 2025 at 03:13:32PM +0200, Mykola Kvach wrote:
> From: Mykola Kvach <mykola_kvach@epam.com>
>
> Using PKG_CHECK_VAR() to obtain SYSTEMD_SLEEP_DIR reintroduced a build-time
> dependency on systemd-devel. This breaks --enable-systemd builds that only
> need the initscripts.
>
> Use the same defaulting scheme as other systemd paths: if SYSTEMD_SLEEP_DIR
> isn't provided, set it to "$(prefix)/lib/systemd/system-sleep/".
>
> Fixes: e54a6cd6a1f3 ("systemd: Add hooks to stop/start xen-watchdog on suspend/resume")
> Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
> ---
> Build in which the regression was detected:
> https://gitlab.com/xen-project/people/marmarek/xen/-/jobs/10959608099
Requires re-running autoconf, otherwise still fails:
https://gitlab.com/xen-project/people/marmarek/xen/-/jobs/12336879267
With autoconf:
https://gitlab.com/xen-project/people/marmarek/xen/-/pipelines/2198372475
It's better now, so:
Reviewed-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
But unconditional --enable-systemd uncovered other issues (not related
to the configure change).
> ---
> m4/systemd.m4 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/m4/systemd.m4 b/m4/systemd.m4
> index c47a25ef93..ee684d3391 100644
> --- a/m4/systemd.m4
> +++ b/m4/systemd.m4
> @@ -77,7 +77,7 @@ AC_DEFUN([AX_CHECK_SYSTEMD_LIBS], [
> ], [])
>
> AS_IF([test "x$SYSTEMD_SLEEP_DIR" = x], [
> - PKG_CHECK_VAR([SYSTEMD_SLEEP_DIR], [systemd], [systemdsleepdir])
> + SYSTEMD_SLEEP_DIR="\$(prefix)/lib/systemd/system-sleep/"
> ], [])
>
> AS_IF([test "x$SYSTEMD_SLEEP_DIR" = x], [
> --
> 2.43.0
>
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2025-12-05 13:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-05 13:13 [PATCH] systemd: default system-sleep dir without pkg-config Mykola Kvach
2025-12-05 13:57 ` Marek Marczykowski-Górecki [this message]
2025-12-05 14:54 ` Mykola Kvach
2025-12-05 14:57 ` Andrew Cooper
2025-12-05 16:16 ` Mykola Kvach
2025-12-05 15:05 ` Andrew Cooper
2025-12-05 15:27 ` Mykola Kvach
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=aTLkwMpxchYSMnyT@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=anthony.perard@vates.tech \
--cc=mykola_kvach@epam.com \
--cc=xakep.amatop@gmail.com \
--cc=xen-devel@lists.xenproject.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 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.