All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services
@ 2022-06-03 16:35 Paulo Neves
  2022-06-03 16:35 ` [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Paulo Neves @ 2022-06-03 16:35 UTC (permalink / raw)
  To: yocto; +Cc: Paulo Neves

State that SYSTEMD_SERVICE allows for multiple space
separated systemd services
---
 documentation/ref-manual/variables.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 367b4674e..ed52c3508 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7656,6 +7656,8 @@ system and gives an overview of their function and contents.
       When inheriting the :ref:`systemd <ref-classes-systemd>` class,
       this variable specifies the systemd service name for a package.
 
+      Multiple services can be specified with each one separated by a space.
+
       When you specify this file in your recipe, use a package name
       override to indicate the package to which the value applies. Here is
       an example from the connman recipe::
-- 
2.25.1



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

* [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES
  2022-06-03 16:35 [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Paulo Neves
@ 2022-06-03 16:35 ` Paulo Neves
  2022-06-06 16:37   ` [yocto] " Michael Opdenacker
  2022-06-06 16:35 ` [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Michael Opdenacker
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Paulo Neves @ 2022-06-03 16:35 UTC (permalink / raw)
  To: yocto; +Cc: Paulo Neves

Add detail that package overrides are only available if
specified in SYSTEMD_PACKAGES.
---
 documentation/ref-manual/variables.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index ed52c3508..6e2919474 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7664,6 +7664,10 @@ system and gives an overview of their function and contents.
 
          SYSTEMD_SERVICE:${PN} = "connman.service"
 
+      The package overrides that can be specified are directly related to the value of
+      term: SYSTEMD_PACKAGES. Overrides not included in term: SYSTEMD_PACKAGES
+      will be silently ignored.
+
    :term:`SYSVINIT_ENABLED_GETTYS`
       When using
       :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
-- 
2.25.1



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

* Re: [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services
  2022-06-03 16:35 [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Paulo Neves
  2022-06-03 16:35 ` [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
@ 2022-06-06 16:35 ` Michael Opdenacker
  2022-06-06 16:47 ` Michael Opdenacker
  2022-06-07  8:42 ` [PATCH v2 " Paulo Neves
  3 siblings, 0 replies; 12+ messages in thread
From: Michael Opdenacker @ 2022-06-06 16:35 UTC (permalink / raw)
  To: Paulo Neves, yocto; +Cc: YP docs mailing list

Hi Paulo

Thanks for the patches!

On 6/3/22 18:35, Paulo Neves wrote:
> State that SYSTEMD_SERVICE allows for multiple space
> separated systemd services
> ---
>  documentation/ref-manual/variables.rst | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index 367b4674e..ed52c3508 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -7656,6 +7656,8 @@ system and gives an overview of their function and contents.
>        When inheriting the :ref:`systemd <ref-classes-systemd>` class,
>        this variable specifies the systemd service name for a package.
>  
> +      Multiple services can be specified with each one separated by a space.


I'd propose a slightly simpler sentence:
"... can be specified, each one separated ..."

Would you mind sending the patch again to docs@lists.yoctoproject.org,
and this time with "Signed-off-by" information (from "git commit -s"),
please?
I was going to accept your patch directly, but this is required.

Thanks in advance
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [yocto] [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES
  2022-06-03 16:35 ` [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
@ 2022-06-06 16:37   ` Michael Opdenacker
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Opdenacker @ 2022-06-06 16:37 UTC (permalink / raw)
  To: Paulo Neves, yocto; +Cc: YP docs mailing list

Hi again Paulo,

On 6/3/22 18:35, Paulo Neves wrote:
> Add detail that package overrides are only available if
> specified in SYSTEMD_PACKAGES.
> ---
>  documentation/ref-manual/variables.rst | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index ed52c3508..6e2919474 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -7664,6 +7664,10 @@ system and gives an overview of their function and contents.
>  
>           SYSTEMD_SERVICE:${PN} = "connman.service"
>  
> +      The package overrides that can be specified are directly related to the value of
> +      term: SYSTEMD_PACKAGES. Overrides not included in term: SYSTEMD_PACKAGES
> +      will be silently ignored.


You should use instead:
:term:`SYSTEMD_PACKAGES`

Would you mind sending an update to docs@lists.yoctoproject.org with
your "Signed-off-by" information, please?

Thanks in advance
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services
  2022-06-03 16:35 [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Paulo Neves
  2022-06-03 16:35 ` [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
  2022-06-06 16:35 ` [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Michael Opdenacker
@ 2022-06-06 16:47 ` Michael Opdenacker
  2022-06-07  8:33   ` Paulo Neves
  2022-06-07  8:42 ` [PATCH v2 " Paulo Neves
  3 siblings, 1 reply; 12+ messages in thread
From: Michael Opdenacker @ 2022-06-06 16:47 UTC (permalink / raw)
  To: Paulo Neves, yocto

Hi again Paulo and developers,

On 6/3/22 18:35, Paulo Neves wrote:
> State that SYSTEMD_SERVICE allows for multiple space
> separated systemd services
> ---
>  documentation/ref-manual/variables.rst | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index 367b4674e..ed52c3508 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -7656,6 +7656,8 @@ system and gives an overview of their function and contents.
>        When inheriting the :ref:`systemd <ref-classes-systemd>` class,
>        this variable specifies the systemd service name for a package.
>  
> +      Multiple services can be specified with each one separated by a space.


Wouldn't it make more sense to call the variable "SYSTEMD_SERVICES" instead?
We could add a new variable and deprecate the old one.

What do you think? Would it be worth the trouble?

Cheers
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services
  2022-06-06 16:47 ` Michael Opdenacker
@ 2022-06-07  8:33   ` Paulo Neves
  2022-06-07  9:30     ` Michael Opdenacker
  0 siblings, 1 reply; 12+ messages in thread
From: Paulo Neves @ 2022-06-07  8:33 UTC (permalink / raw)
  To: Michael Opdenacker, yocto

I think so, given we have a deprecation mechanism enforced in code.
The confusion definitely came up, and this is why a documentation 
clarification was needed.

Paulo Neves

On 6/6/22 18:47, Michael Opdenacker wrote:
> Hi again Paulo and developers,
>
> On 6/3/22 18:35, Paulo Neves wrote:
>> State that SYSTEMD_SERVICE allows for multiple space
>> separated systemd services
>> ---
>>   documentation/ref-manual/variables.rst | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
>> index 367b4674e..ed52c3508 100644
>> --- a/documentation/ref-manual/variables.rst
>> +++ b/documentation/ref-manual/variables.rst
>> @@ -7656,6 +7656,8 @@ system and gives an overview of their function and contents.
>>         When inheriting the :ref:`systemd <ref-classes-systemd>` class,
>>         this variable specifies the systemd service name for a package.
>>   
>> +      Multiple services can be specified with each one separated by a space.
>
> Wouldn't it make more sense to call the variable "SYSTEMD_SERVICES" instead?
> We could add a new variable and deprecate the old one.
>
> What do you think? Would it be worth the trouble?
>
> Cheers
> Michael.
>



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

* [PATCH v2 1/2] manuals: SYSTEMD_SERVICE allows multiple services
  2022-06-03 16:35 [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Paulo Neves
                   ` (2 preceding siblings ...)
  2022-06-06 16:47 ` Michael Opdenacker
@ 2022-06-07  8:42 ` Paulo Neves
  2022-06-07  8:42   ` [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
  2022-06-07  8:53   ` [yocto] [PATCH v2 1/2] manuals: SYSTEMD_SERVICE allows multiple services Michael Opdenacker
  3 siblings, 2 replies; 12+ messages in thread
From: Paulo Neves @ 2022-06-07  8:42 UTC (permalink / raw)
  To: yocto; +Cc: Paulo Neves

State that SYSTEMD_SERVICE allows for multiple space
separated systemd services

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
---
 documentation/ref-manual/variables.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 367b4674e..42178d556 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7656,6 +7656,8 @@ system and gives an overview of their function and contents.
       When inheriting the :ref:`systemd <ref-classes-systemd>` class,
       this variable specifies the systemd service name for a package.
 
+      Multiple services can be specified, each one separated by a space.
+
       When you specify this file in your recipe, use a package name
       override to indicate the package to which the value applies. Here is
       an example from the connman recipe::
-- 
2.25.1



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

* [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES
  2022-06-07  8:42 ` [PATCH v2 " Paulo Neves
@ 2022-06-07  8:42   ` Paulo Neves
  2022-06-07  8:53     ` [yocto] " Michael Opdenacker
  2022-06-07  8:53   ` [yocto] [PATCH v2 1/2] manuals: SYSTEMD_SERVICE allows multiple services Michael Opdenacker
  1 sibling, 1 reply; 12+ messages in thread
From: Paulo Neves @ 2022-06-07  8:42 UTC (permalink / raw)
  To: yocto; +Cc: Paulo Neves

Add detail that package overrides are only available if
specified in SYSTEMD_PACKAGES.

Signed-off-by: Paulo Neves <ptsneves@gmail.com>
---
 documentation/ref-manual/variables.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 42178d556..e31f0ed88 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7664,6 +7664,10 @@ system and gives an overview of their function and contents.
 
          SYSTEMD_SERVICE:${PN} = "connman.service"
 
+      The package overrides that can be specified are directly related to the value of
+      term:`SYSTEMD_PACKAGES`. Overrides not included in term:`SYSTEMD_PACKAGES`
+      will be silently ignored.
+
    :term:`SYSVINIT_ENABLED_GETTYS`
       When using
       :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
-- 
2.25.1



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

* Re: [yocto] [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES
  2022-06-07  8:42   ` [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
@ 2022-06-07  8:53     ` Michael Opdenacker
  2022-06-07  8:54       ` Paulo Neves
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Opdenacker @ 2022-06-07  8:53 UTC (permalink / raw)
  To: Paulo Neves, yocto; +Cc: YP docs mailing list

Hi Paulo

On 6/7/22 10:42, Paulo Neves wrote:
> Add detail that package overrides are only available if
> specified in SYSTEMD_PACKAGES.
>
> Signed-off-by: Paulo Neves <ptsneves@gmail.com>
> ---
>  documentation/ref-manual/variables.rst | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index 42178d556..e31f0ed88 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -7664,6 +7664,10 @@ system and gives an overview of their function and contents.
>  
>           SYSTEMD_SERVICE:${PN} = "connman.service"
>  
> +      The package overrides that can be specified are directly related to the value of
> +      term:`SYSTEMD_PACKAGES`. Overrides not included in term:`SYSTEMD_PACKAGES`
> +      will be silently ignored.
> +
>     :term:`SYSVINIT_ENABLED_GETTYS`
>        When using
>        :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,

Thanks for the patch. Merged into yocto-docs' master-next

Don't forget to copy the docs@lists.yoctoproject.org mailing list next time.

Thanks again

Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [yocto] [PATCH v2 1/2] manuals: SYSTEMD_SERVICE allows multiple services
  2022-06-07  8:42 ` [PATCH v2 " Paulo Neves
  2022-06-07  8:42   ` [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
@ 2022-06-07  8:53   ` Michael Opdenacker
  1 sibling, 0 replies; 12+ messages in thread
From: Michael Opdenacker @ 2022-06-07  8:53 UTC (permalink / raw)
  To: Paulo Neves, yocto; +Cc: YP docs mailing list


On 6/7/22 10:42, Paulo Neves wrote:
> State that SYSTEMD_SERVICE allows for multiple space
> separated systemd services
>
> Signed-off-by: Paulo Neves <ptsneves@gmail.com>
> ---
>  documentation/ref-manual/variables.rst | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
> index 367b4674e..42178d556 100644
> --- a/documentation/ref-manual/variables.rst
> +++ b/documentation/ref-manual/variables.rst
> @@ -7656,6 +7656,8 @@ system and gives an overview of their function and contents.
>        When inheriting the :ref:`systemd <ref-classes-systemd>` class,
>        this variable specifies the systemd service name for a package.
>  
> +      Multiple services can be specified, each one separated by a space.
> +
>        When you specify this file in your recipe, use a package name
>        override to indicate the package to which the value applies. Here is
>        an example from the connman recipe::


Merged into master-next too.
Thanks!
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

* Re: [yocto] [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES
  2022-06-07  8:53     ` [yocto] " Michael Opdenacker
@ 2022-06-07  8:54       ` Paulo Neves
  0 siblings, 0 replies; 12+ messages in thread
From: Paulo Neves @ 2022-06-07  8:54 UTC (permalink / raw)
  To: Michael Opdenacker, yocto; +Cc: YP docs mailing list

Hi Michael,

My sincere apologies. Will try to improve next time

Paulo Neves

On 6/7/22 10:53, Michael Opdenacker wrote:
> Hi Paulo
>
> On 6/7/22 10:42, Paulo Neves wrote:
>> Add detail that package overrides are only available if
>> specified in SYSTEMD_PACKAGES.
>>
>> Signed-off-by: Paulo Neves <ptsneves@gmail.com>
>> ---
>>   documentation/ref-manual/variables.rst | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
>> index 42178d556..e31f0ed88 100644
>> --- a/documentation/ref-manual/variables.rst
>> +++ b/documentation/ref-manual/variables.rst
>> @@ -7664,6 +7664,10 @@ system and gives an overview of their function and contents.
>>   
>>            SYSTEMD_SERVICE:${PN} = "connman.service"
>>   
>> +      The package overrides that can be specified are directly related to the value of
>> +      term:`SYSTEMD_PACKAGES`. Overrides not included in term:`SYSTEMD_PACKAGES`
>> +      will be silently ignored.
>> +
>>      :term:`SYSVINIT_ENABLED_GETTYS`
>>         When using
>>         :ref:`SysVinit <dev-manual/common-tasks:enabling system services>`,
> Thanks for the patch. Merged into yocto-docs' master-next
>
> Don't forget to copy the docs@lists.yoctoproject.org mailing list next time.
>
> Thanks again
>
> Michael.
>



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

* Re: [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services
  2022-06-07  8:33   ` Paulo Neves
@ 2022-06-07  9:30     ` Michael Opdenacker
  0 siblings, 0 replies; 12+ messages in thread
From: Michael Opdenacker @ 2022-06-07  9:30 UTC (permalink / raw)
  To: Paulo Neves, yocto

Hi Paulo

On 6/7/22 10:33, Paulo Neves wrote:
> I think so, given we have a deprecation mechanism enforced in code.
> The confusion definitely came up, and this is why a documentation
> clarification was needed.


That's done on the documentation side. Then, what about proposing a
patch to openembedded-core to introduce a new SYSTEMD_SERVICES variable
and deprecate SYSTEMD_SERVICE?
Cheers
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



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

end of thread, other threads:[~2022-06-07  9:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 16:35 [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Paulo Neves
2022-06-03 16:35 ` [PATCH 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
2022-06-06 16:37   ` [yocto] " Michael Opdenacker
2022-06-06 16:35 ` [yocto] [PATCH 1/2] manuals: SYSTEMD_SERVICE allows multiple services Michael Opdenacker
2022-06-06 16:47 ` Michael Opdenacker
2022-06-07  8:33   ` Paulo Neves
2022-06-07  9:30     ` Michael Opdenacker
2022-06-07  8:42 ` [PATCH v2 " Paulo Neves
2022-06-07  8:42   ` [PATCH v2 2/2] manuals: SYSTEMD_SERVICE overrides depend on SYSTEMD_PACKAGES Paulo Neves
2022-06-07  8:53     ` [yocto] " Michael Opdenacker
2022-06-07  8:54       ` Paulo Neves
2022-06-07  8:53   ` [yocto] [PATCH v2 1/2] manuals: SYSTEMD_SERVICE allows multiple services Michael Opdenacker

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.