All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/systemd: remove SysV and utmp compatibility feature
@ 2020-07-17 23:43 Norbert Lange
  2020-07-18 20:43 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Norbert Lange @ 2020-07-17 23:43 UTC (permalink / raw)
  To: buildroot

Systemd enabled compatibility with SysV services and utmp
by default, none of which is needed for buildroot as the packages
will install only the files for the chosen init system.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
---
v1->v2:
-   Just disable those options as implied by Thomas Petazzoni
---
 package/systemd/systemd.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 9ca9b8ae0a..f1795f476f 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -22,6 +22,9 @@ SYSTEMD_PROVIDES = udev
 
 SYSTEMD_CONF_OPTS += \
 	-Drootlibdir='/usr/lib' \
+	-Dsysvinit-path= \
+	-Dsysvrcnd-path= \
+	-Dutmp=false \
 	-Dblkid=true \
 	-Dman=false \
 	-Dima=false \
-- 
2.27.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH v2 1/1] package/systemd: remove SysV and utmp compatibility feature
  2020-07-17 23:43 [Buildroot] [PATCH v2 1/1] package/systemd: remove SysV and utmp compatibility feature Norbert Lange
@ 2020-07-18 20:43 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2020-07-18 20:43 UTC (permalink / raw)
  To: buildroot

Norbert, All,

On 2020-07-18 01:43 +0200, Norbert Lange spake thusly:
> Systemd enabled compatibility with SysV services and utmp
> by default, none of which is needed for buildroot as the packages
> will install only the files for the chosen init system.

At first, I thought that we may want users to be able to use their dusty
init script, carefully crafted over decades of patient tweaking and
twitching, especially fr out-of-tree packages (br2-extermal).

However, it turns out that this is not possible: systemd requires both
/etc/init.d *and* /etc/rc.d to exist to provide SysV emulation. And as
Thomas said, /etc/rc.d does not exist in Buildroot.

As such, SysV support has never been functional in Buildroot, and we
can't easily make it so.

So, applied to master.

However, this patch again does too many things: disable sysv support and
disable utmp support.

I've split the two in two commits, expanded the two comit logs, and
applied to master. Thanks.

Regards,
Yann E. MORIN.

> Signed-off-by: Norbert Lange <nolange79@gmail.com>
> ---
> v1->v2:
> -   Just disable those options as implied by Thomas Petazzoni
> ---
>  package/systemd/systemd.mk | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index 9ca9b8ae0a..f1795f476f 100644
> --- a/package/systemd/systemd.mk
> +++ b/package/systemd/systemd.mk
> @@ -22,6 +22,9 @@ SYSTEMD_PROVIDES = udev
>  
>  SYSTEMD_CONF_OPTS += \
>  	-Drootlibdir='/usr/lib' \
> +	-Dsysvinit-path= \
> +	-Dsysvrcnd-path= \
> +	-Dutmp=false \
>  	-Dblkid=true \
>  	-Dman=false \
>  	-Dima=false \
> -- 
> 2.27.0
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-18 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 23:43 [Buildroot] [PATCH v2 1/1] package/systemd: remove SysV and utmp compatibility feature Norbert Lange
2020-07-18 20:43 ` Yann E. MORIN

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.