* [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host
@ 2024-11-06 10:02 Anssi Hannula via buildroot
2024-11-14 21:04 ` Petr Vorel
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Anssi Hannula via buildroot @ 2024-11-06 10:02 UTC (permalink / raw)
To: buildroot; +Cc: Petr Vorel, Giulio Benetti
nfs-utils configure script uses "systemd-escape" to determine the
rpc_pipefs mount point unit name in the non-default case.
If the host build system has no systemd this will silently result in an
empty name, causing rpc_pipefs.target to incorrectly depend on ".mount".
Fix that by depending on host-systemd for build.
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
---
package/nfs-utils/nfs-utils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
index b757e3e51d..9ea3bae79d 100644
--- a/package/nfs-utils/nfs-utils.mk
+++ b/package/nfs-utils/nfs-utils.mk
@@ -79,7 +79,7 @@ NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
ifeq ($(BR2_INIT_SYSTEMD),y)
NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system
-NFS_UTILS_DEPENDENCIES += systemd
+NFS_UTILS_DEPENDENCIES += systemd host-systemd
else
NFS_UTILS_CONF_OPTS += --without-systemd
endif
--
2.46.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host
2024-11-06 10:02 [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host Anssi Hannula via buildroot
@ 2024-11-14 21:04 ` Petr Vorel
2024-12-04 20:29 ` Arnout Vandecappelle via buildroot
2024-11-14 21:42 ` Petr Vorel
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Petr Vorel @ 2024-11-14 21:04 UTC (permalink / raw)
To: Anssi Hannula; +Cc: Yann E. MORIN, Giulio Benetti, Thomas Petazzoni, buildroot
Hi Anssi, all,
> nfs-utils configure script uses "systemd-escape" to determine the
> rpc_pipefs mount point unit name in the non-default case.
> If the host build system has no systemd this will silently result in an
> empty name, causing rpc_pipefs.target to incorrectly depend on ".mount".
> Fix that by depending on host-systemd for build.
> Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
> ---
> package/nfs-utils/nfs-utils.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
> index b757e3e51d..9ea3bae79d 100644
> --- a/package/nfs-utils/nfs-utils.mk
> +++ b/package/nfs-utils/nfs-utils.mk
> @@ -79,7 +79,7 @@ NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
> ifeq ($(BR2_INIT_SYSTEMD),y)
> NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system
> -NFS_UTILS_DEPENDENCIES += systemd
> +NFS_UTILS_DEPENDENCIES += systemd host-systemd
Given that majority of the developers use Buildroot with Linux distro with
systemd I'm not happy about all of then need to build host-systemd.
Is there any better solution for this? If not let's fix the problem with
accepting the dependency.
Acked-by: Petr Vorel <petr.vorel@gmail.com>
Kind regards,
Petr
> else
> NFS_UTILS_CONF_OPTS += --without-systemd
> endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host
2024-11-06 10:02 [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host Anssi Hannula via buildroot
2024-11-14 21:04 ` Petr Vorel
@ 2024-11-14 21:42 ` Petr Vorel
2024-12-04 20:31 ` Arnout Vandecappelle via buildroot
2024-12-06 22:25 ` Peter Korsgaard
3 siblings, 0 replies; 6+ messages in thread
From: Petr Vorel @ 2024-11-14 21:42 UTC (permalink / raw)
To: Anssi Hannula; +Cc: buildroot, Giulio Benetti
Hi Anssi,
> nfs-utils configure script uses "systemd-escape" to determine the
> rpc_pipefs mount point unit name in the non-default case.
> If the host build system has no systemd this will silently result in an
> empty name, causing rpc_pipefs.target to incorrectly depend on ".mount".
> Fix that by depending on host-systemd for build.
I dared to send a patch upstream to detect systemd-escape. Feel free to put
there more info (I wonder what distro you use for development).
https://lore.kernel.org/linux-nfs/20241114214044.1099257-1-petr.vorel@gmail.com/T/#u
Kind regards,
Petr
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host
2024-11-14 21:04 ` Petr Vorel
@ 2024-12-04 20:29 ` Arnout Vandecappelle via buildroot
0 siblings, 0 replies; 6+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2024-12-04 20:29 UTC (permalink / raw)
To: Petr Vorel, Anssi Hannula
Cc: Yann E. MORIN, Giulio Benetti, Thomas Petazzoni, buildroot
On 14/11/2024 22:04, Petr Vorel wrote:
> Hi Anssi, all,
>
>> nfs-utils configure script uses "systemd-escape" to determine the
>> rpc_pipefs mount point unit name in the non-default case.
>
>> If the host build system has no systemd this will silently result in an
>> empty name, causing rpc_pipefs.target to incorrectly depend on ".mount".
>
>> Fix that by depending on host-systemd for build.
>
>> Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
>> ---
>> package/nfs-utils/nfs-utils.mk | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>> diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
>> index b757e3e51d..9ea3bae79d 100644
>> --- a/package/nfs-utils/nfs-utils.mk
>> +++ b/package/nfs-utils/nfs-utils.mk
>> @@ -79,7 +79,7 @@ NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
>
>> ifeq ($(BR2_INIT_SYSTEMD),y)
>> NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system
>> -NFS_UTILS_DEPENDENCIES += systemd
>> +NFS_UTILS_DEPENDENCIES += systemd host-systemd
>
> Given that majority of the developers use Buildroot with Linux distro with
> systemd I'm not happy about all of then need to build host-systemd.
Since systemd typically has a lot of dependencies (including host-python3),
and a large part of them are also needed for host-systemd, and the build time of
host-systemd is only about a minute, I don't think this is such a big deal.
Regards,
Arnout
>
> Is there any better solution for this? If not let's fix the problem with
> accepting the dependency.
>
> Acked-by: Petr Vorel <petr.vorel@gmail.com>
>
> Kind regards,
> Petr
>
>> else
>> NFS_UTILS_CONF_OPTS += --without-systemd
>> endif
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host
2024-11-06 10:02 [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host Anssi Hannula via buildroot
2024-11-14 21:04 ` Petr Vorel
2024-11-14 21:42 ` Petr Vorel
@ 2024-12-04 20:31 ` Arnout Vandecappelle via buildroot
2024-12-06 22:25 ` Peter Korsgaard
3 siblings, 0 replies; 6+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2024-12-04 20:31 UTC (permalink / raw)
To: Anssi Hannula, buildroot; +Cc: Petr Vorel, Giulio Benetti
On 06/11/2024 11:02, Anssi Hannula via buildroot wrote:
> nfs-utils configure script uses "systemd-escape" to determine the
> rpc_pipefs mount point unit name in the non-default case.
>
> If the host build system has no systemd this will silently result in an
> empty name, causing rpc_pipefs.target to incorrectly depend on ".mount".
>
> Fix that by depending on host-systemd for build.
>
> Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/nfs-utils/nfs-utils.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/nfs-utils/nfs-utils.mk b/package/nfs-utils/nfs-utils.mk
> index b757e3e51d..9ea3bae79d 100644
> --- a/package/nfs-utils/nfs-utils.mk
> +++ b/package/nfs-utils/nfs-utils.mk
> @@ -79,7 +79,7 @@ NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
>
> ifeq ($(BR2_INIT_SYSTEMD),y)
> NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system
> -NFS_UTILS_DEPENDENCIES += systemd
> +NFS_UTILS_DEPENDENCIES += systemd host-systemd
> else
> NFS_UTILS_CONF_OPTS += --without-systemd
> endif
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host
2024-11-06 10:02 [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host Anssi Hannula via buildroot
` (2 preceding siblings ...)
2024-12-04 20:31 ` Arnout Vandecappelle via buildroot
@ 2024-12-06 22:25 ` Peter Korsgaard
3 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2024-12-06 22:25 UTC (permalink / raw)
To: Anssi Hannula via buildroot; +Cc: Anssi Hannula, Petr Vorel, Giulio Benetti
>>>>> "Anssi" == Anssi Hannula via buildroot <buildroot@buildroot.org> writes:
> nfs-utils configure script uses "systemd-escape" to determine the
> rpc_pipefs mount point unit name in the non-default case.
> If the host build system has no systemd this will silently result in an
> empty name, causing rpc_pipefs.target to incorrectly depend on ".mount".
> Fix that by depending on host-systemd for build.
> Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Committed to 2024.02.x and 2024.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-12-06 22:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 10:02 [Buildroot] [PATCH 1/1] package/nfs-utils: fix unit dependencies without systemd on build host Anssi Hannula via buildroot
2024-11-14 21:04 ` Petr Vorel
2024-12-04 20:29 ` Arnout Vandecappelle via buildroot
2024-11-14 21:42 ` Petr Vorel
2024-12-04 20:31 ` Arnout Vandecappelle via buildroot
2024-12-06 22:25 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox