* [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
@ 2025-06-22 10:59 Robert P. J. Day
2025-06-23 14:16 ` [docs] " Quentin Schulz
2025-06-24 7:50 ` Antonin Godard
0 siblings, 2 replies; 9+ messages in thread
From: Robert P. J. Day @ 2025-06-22 10:59 UTC (permalink / raw)
To: YP docs mailing list
* Add note about new URL for FHS 3.0.
* Add wildcard for "INHIBIT_" variable.
* Fix font for ${PN}.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
---
diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
index a05f39ca1..077184657 100644
--- a/documentation/dev-manual/prebuilt-libraries.rst
+++ b/documentation/dev-manual/prebuilt-libraries.rst
@@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
This section shows how to deal with both versioned and unversioned
pre-built libraries.
+.. note::
+
+ In the shared library article referenced above, the link to the current
+ version of the Filesystem Hierarchy Standard (FHS) is out of date;
+ the current FHS 3.0 release can be found
+ `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
+
Versioned Libraries
===================
@@ -79,7 +86,7 @@ To write a recipe to use such a library in your system:
- The vendor will typically ship release builds without debugging symbols.
Avoid errors by preventing the packaging task from stripping out the symbols
and adding them to a separate debug package. This is done by setting the
- ``INHIBIT_`` flags shown below.
+ ``INHIBIT_*`` flags shown below.
The complete recipe would look like this::
@@ -170,7 +177,7 @@ as follows::
The modifications cause the ``.so`` file to be the real library
and unset :term:`FILES_SOLIBSDEV` so that no libraries get packaged into
``${PN}-dev``. The changes are required because unless :term:`PACKAGES` is changed,
-``${PN}-dev`` collects files before `${PN}`. ``${PN}-dev`` must not collect any of
+``${PN}-dev`` collects files before ``${PN}``. ``${PN}-dev`` must not collect any of
the files you want in ``${PN}``.
Finally, loadable modules, essentially unversioned libraries that are linked
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-22 10:59 [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries" Robert P. J. Day
@ 2025-06-23 14:16 ` Quentin Schulz
2025-06-23 15:19 ` Robert P. J. Day
2025-06-24 7:50 ` Antonin Godard
1 sibling, 1 reply; 9+ messages in thread
From: Quentin Schulz @ 2025-06-23 14:16 UTC (permalink / raw)
To: rpjday, YP docs mailing list
Hi Robert,
On 6/22/25 12:59 PM, Robert P. J. Day via lists.yoctoproject.org wrote:
>
> * Add note about new URL for FHS 3.0.
> * Add wildcard for "INHIBIT_" variable.
> * Fix font for ${PN}.
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---
>
> diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
> index a05f39ca1..077184657 100644
> --- a/documentation/dev-manual/prebuilt-libraries.rst
> +++ b/documentation/dev-manual/prebuilt-libraries.rst
> @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
> This section shows how to deal with both versioned and unversioned
> pre-built libraries.
>
> +.. note::
> +
> + In the shared library article referenced above, the link to the current
> + version of the Filesystem Hierarchy Standard (FHS) is out of date;
> + the current FHS 3.0 release can be found
> + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
> +
Considering FHS 2.3 was released Jan 2004 and FHS 3.0 on Jun 2015, will
we have another FHS version end of 2026?
We can simply link to https://refspecs.linuxfoundation.org/fhs.shtml so
we hopefully aren't outdated ourselves later on as well?
Looks good to me otherwise!
Thanks!
Quentin
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-23 14:16 ` [docs] " Quentin Schulz
@ 2025-06-23 15:19 ` Robert P. J. Day
0 siblings, 0 replies; 9+ messages in thread
From: Robert P. J. Day @ 2025-06-23 15:19 UTC (permalink / raw)
To: Quentin Schulz; +Cc: YP docs mailing list
On Mon, 23 Jun 2025, Quentin Schulz wrote:
> Hi Robert,
>
> On 6/22/25 12:59 PM, Robert P. J. Day via lists.yoctoproject.org wrote:
> >
> > * Add note about new URL for FHS 3.0.
> > * Add wildcard for "INHIBIT_" variable.
> > * Fix font for ${PN}.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/documentation/dev-manual/prebuilt-libraries.rst
> > b/documentation/dev-manual/prebuilt-libraries.rst
> > index a05f39ca1..077184657 100644
> > --- a/documentation/dev-manual/prebuilt-libraries.rst
> > +++ b/documentation/dev-manual/prebuilt-libraries.rst
> > @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two
> > conditions:
> > This section shows how to deal with both versioned and unversioned
> > pre-built libraries.
> >
> > +.. note::
> > +
> > + In the shared library article referenced above, the link to the current
> > + version of the Filesystem Hierarchy Standard (FHS) is out of date;
> > + the current FHS 3.0 release can be found
> > + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
> > +
>
> Considering FHS 2.3 was released Jan 2004 and FHS 3.0 on Jun 2015, will we
> have another FHS version end of 2026?
>
> We can simply link to https://refspecs.linuxfoundation.org/fhs.shtml so we
> hopefully aren't outdated ourselves later on as well?
>
> Looks good to me otherwise!
there is no discernible timeline for anything beyond FHS 3.0 that i
know of.
rday
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-22 10:59 [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries" Robert P. J. Day
2025-06-23 14:16 ` [docs] " Quentin Schulz
@ 2025-06-24 7:50 ` Antonin Godard
2025-06-24 8:19 ` Robert P. J. Day
2025-06-24 8:31 ` Robert P. J. Day
1 sibling, 2 replies; 9+ messages in thread
From: Antonin Godard @ 2025-06-24 7:50 UTC (permalink / raw)
To: Robert P. J. Day, YP docs mailing list
On Sun Jun 22, 2025 at 12:59 PM CEST, Robert P. J. Day wrote:
>
> * Add note about new URL for FHS 3.0.
> * Add wildcard for "INHIBIT_" variable.
> * Fix font for ${PN}.
>
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>
> ---
>
> diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
> index a05f39ca1..077184657 100644
> --- a/documentation/dev-manual/prebuilt-libraries.rst
> +++ b/documentation/dev-manual/prebuilt-libraries.rst
> @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
> This section shows how to deal with both versioned and unversioned
> pre-built libraries.
>
> +.. note::
> +
> + In the shared library article referenced above, the link to the current
> + version of the Filesystem Hierarchy Standard (FHS) is out of date;
> + the current FHS 3.0 release can be found
> + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
Not sure adding a note to say a link is outdated is the good approach.
Instead update the link above?
> Versioned Libraries
> ===================
>
> @@ -79,7 +86,7 @@ To write a recipe to use such a library in your system:
> - The vendor will typically ship release builds without debugging symbols.
> Avoid errors by preventing the packaging task from stripping out the symbols
> and adding them to a separate debug package. This is done by setting the
> - ``INHIBIT_`` flags shown below.
> + ``INHIBIT_*`` flags shown below.
>
> The complete recipe would look like this::
>
> @@ -170,7 +177,7 @@ as follows::
> The modifications cause the ``.so`` file to be the real library
> and unset :term:`FILES_SOLIBSDEV` so that no libraries get packaged into
> ``${PN}-dev``. The changes are required because unless :term:`PACKAGES` is changed,
> -``${PN}-dev`` collects files before `${PN}`. ``${PN}-dev`` must not collect any of
> +``${PN}-dev`` collects files before ``${PN}``. ``${PN}-dev`` must not collect any of
Can you send this in a separate patch?
> the files you want in ``${PN}``.
>
> Finally, loadable modules, essentially unversioned libraries that are linked
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-24 7:50 ` Antonin Godard
@ 2025-06-24 8:19 ` Robert P. J. Day
2025-06-24 8:28 ` Antonin Godard
2025-06-24 8:31 ` Robert P. J. Day
1 sibling, 1 reply; 9+ messages in thread
From: Robert P. J. Day @ 2025-06-24 8:19 UTC (permalink / raw)
To: Antonin Godard; +Cc: YP docs mailing list
On Tue, 24 Jun 2025, Antonin Godard wrote:
> On Sun Jun 22, 2025 at 12:59 PM CEST, Robert P. J. Day wrote:
> >
> > * Add note about new URL for FHS 3.0.
> > * Add wildcard for "INHIBIT_" variable.
> > * Fix font for ${PN}.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
> > index a05f39ca1..077184657 100644
> > --- a/documentation/dev-manual/prebuilt-libraries.rst
> > +++ b/documentation/dev-manual/prebuilt-libraries.rst
> > @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
> > This section shows how to deal with both versioned and unversioned
> > pre-built libraries.
> >
> > +.. note::
> > +
> > + In the shared library article referenced above, the link to the current
> > + version of the Filesystem Hierarchy Standard (FHS) is out of date;
> > + the current FHS 3.0 release can be found
> > + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
>
> Not sure adding a note to say a link is outdated is the good approach.
> Instead update the link above?
>
> > Versioned Libraries
> > ===================
> >
> > @@ -79,7 +86,7 @@ To write a recipe to use such a library in your system:
> > - The vendor will typically ship release builds without debugging symbols.
> > Avoid errors by preventing the packaging task from stripping out the symbols
> > and adding them to a separate debug package. This is done by setting the
> > - ``INHIBIT_`` flags shown below.
> > + ``INHIBIT_*`` flags shown below.
> >
> > The complete recipe would look like this::
> >
> > @@ -170,7 +177,7 @@ as follows::
> > The modifications cause the ``.so`` file to be the real library
> > and unset :term:`FILES_SOLIBSDEV` so that no libraries get packaged into
> > ``${PN}-dev``. The changes are required because unless :term:`PACKAGES` is changed,
> > -``${PN}-dev`` collects files before `${PN}`. ``${PN}-dev`` must not collect any of
> > +``${PN}-dev`` collects files before ``${PN}``. ``${PN}-dev`` must not collect any of
>
> Can you send this in a separate patch?
do you mean the FHS fix as one patch, and all else as a second
patch? can do.
rday
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-24 8:19 ` Robert P. J. Day
@ 2025-06-24 8:28 ` Antonin Godard
0 siblings, 0 replies; 9+ messages in thread
From: Antonin Godard @ 2025-06-24 8:28 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: YP docs mailing list
On Tue Jun 24, 2025 at 10:19 AM CEST, Robert P. J. Day wrote:
> On Tue, 24 Jun 2025, Antonin Godard wrote:
>
>> On Sun Jun 22, 2025 at 12:59 PM CEST, Robert P. J. Day wrote:
>> >
>> > * Add note about new URL for FHS 3.0.
>> > * Add wildcard for "INHIBIT_" variable.
>> > * Fix font for ${PN}.
>> >
>> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>> >
>> > ---
>> >
>> > diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
>> > index a05f39ca1..077184657 100644
>> > --- a/documentation/dev-manual/prebuilt-libraries.rst
>> > +++ b/documentation/dev-manual/prebuilt-libraries.rst
>> > @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
>> > This section shows how to deal with both versioned and unversioned
>> > pre-built libraries.
>> >
>> > +.. note::
>> > +
>> > + In the shared library article referenced above, the link to the current
>> > + version of the Filesystem Hierarchy Standard (FHS) is out of date;
>> > + the current FHS 3.0 release can be found
>> > + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
>>
>> Not sure adding a note to say a link is outdated is the good approach.
>> Instead update the link above?
>>
>> > Versioned Libraries
>> > ===================
>> >
>> > @@ -79,7 +86,7 @@ To write a recipe to use such a library in your system:
>> > - The vendor will typically ship release builds without debugging symbols.
>> > Avoid errors by preventing the packaging task from stripping out the symbols
>> > and adding them to a separate debug package. This is done by setting the
>> > - ``INHIBIT_`` flags shown below.
>> > + ``INHIBIT_*`` flags shown below.
>> >
>> > The complete recipe would look like this::
>> >
>> > @@ -170,7 +177,7 @@ as follows::
>> > The modifications cause the ``.so`` file to be the real library
>> > and unset :term:`FILES_SOLIBSDEV` so that no libraries get packaged into
>> > ``${PN}-dev``. The changes are required because unless :term:`PACKAGES` is changed,
>> > -``${PN}-dev`` collects files before `${PN}`. ``${PN}-dev`` must not collect any of
>> > +``${PN}-dev`` collects files before ``${PN}``. ``${PN}-dev`` must not collect any of
>>
>> Can you send this in a separate patch?
>
> do you mean the FHS fix as one patch, and all else as a second
> patch? can do.
I mean the part fixing the `${PN}` not being ``${PN}``.
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-24 7:50 ` Antonin Godard
2025-06-24 8:19 ` Robert P. J. Day
@ 2025-06-24 8:31 ` Robert P. J. Day
2025-06-24 8:35 ` Antonin Godard
1 sibling, 1 reply; 9+ messages in thread
From: Robert P. J. Day @ 2025-06-24 8:31 UTC (permalink / raw)
To: antonin.godard; +Cc: YP docs mailing list
On Tue, 24 Jun 2025, Antonin Godard via lists.yoctoproject.org wrote:
> On Sun Jun 22, 2025 at 12:59 PM CEST, Robert P. J. Day wrote:
> >
> > * Add note about new URL for FHS 3.0.
> > * Add wildcard for "INHIBIT_" variable.
> > * Fix font for ${PN}.
> >
> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >
> > ---
> >
> > diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
> > index a05f39ca1..077184657 100644
> > --- a/documentation/dev-manual/prebuilt-libraries.rst
> > +++ b/documentation/dev-manual/prebuilt-libraries.rst
> > @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
> > This section shows how to deal with both versioned and unversioned
> > pre-built libraries.
> >
> > +.. note::
> > +
> > + In the shared library article referenced above, the link to the current
> > + version of the Filesystem Hierarchy Standard (FHS) is out of date;
> > + the current FHS 3.0 release can be found
> > + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
>
> Not sure adding a note to say a link is outdated is the good approach.
> Instead update the link above?
i'm not sure that's the right way to do it. that old article is
quite a decent explanation of library versioning; if we now link
directly to the FHS spec from the yocto docs and bypass that article,
we lose a lot of good intro-level explanation.
thoughts?
rday
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-24 8:31 ` Robert P. J. Day
@ 2025-06-24 8:35 ` Antonin Godard
2025-06-24 8:43 ` Robert P. J. Day
0 siblings, 1 reply; 9+ messages in thread
From: Antonin Godard @ 2025-06-24 8:35 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: YP docs mailing list
On Tue Jun 24, 2025 at 10:31 AM CEST, Robert P. J. Day wrote:
> On Tue, 24 Jun 2025, Antonin Godard via lists.yoctoproject.org wrote:
>
>> On Sun Jun 22, 2025 at 12:59 PM CEST, Robert P. J. Day wrote:
>> >
>> > * Add note about new URL for FHS 3.0.
>> > * Add wildcard for "INHIBIT_" variable.
>> > * Fix font for ${PN}.
>> >
>> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>> >
>> > ---
>> >
>> > diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
>> > index a05f39ca1..077184657 100644
>> > --- a/documentation/dev-manual/prebuilt-libraries.rst
>> > +++ b/documentation/dev-manual/prebuilt-libraries.rst
>> > @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
>> > This section shows how to deal with both versioned and unversioned
>> > pre-built libraries.
>> >
>> > +.. note::
>> > +
>> > + In the shared library article referenced above, the link to the current
>> > + version of the Filesystem Hierarchy Standard (FHS) is out of date;
>> > + the current FHS 3.0 release can be found
>> > + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
>>
>> Not sure adding a note to say a link is outdated is the good approach.
>> Instead update the link above?
>
> i'm not sure that's the right way to do it. that old article is
> quite a decent explanation of library versioning; if we now link
> directly to the FHS spec from the yocto docs and bypass that article,
> we lose a lot of good intro-level explanation.
>
> thoughts?
I see. Then as Quentin suggested I think it's reasonable to link to
https://refspecs.linuxfoundation.org/fhs.shtml instead of the 3.0 version, and
say:
"""
the latest release can be found `here
<https://refspecs.linuxfoundation.org/fhs.shtml>`__.
"""
Thanks,
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [docs] [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries"
2025-06-24 8:35 ` Antonin Godard
@ 2025-06-24 8:43 ` Robert P. J. Day
0 siblings, 0 replies; 9+ messages in thread
From: Robert P. J. Day @ 2025-06-24 8:43 UTC (permalink / raw)
To: antonin.godard; +Cc: YP docs mailing list
On Tue, 24 Jun 2025, Antonin Godard via lists.yoctoproject.org wrote:
> On Tue Jun 24, 2025 at 10:31 AM CEST, Robert P. J. Day wrote:
> > On Tue, 24 Jun 2025, Antonin Godard via lists.yoctoproject.org wrote:
> >
> >> On Sun Jun 22, 2025 at 12:59 PM CEST, Robert P. J. Day wrote:
> >> >
> >> > * Add note about new URL for FHS 3.0.
> >> > * Add wildcard for "INHIBIT_" variable.
> >> > * Fix font for ${PN}.
> >> >
> >> > Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> >> >
> >> > ---
> >> >
> >> > diff --git a/documentation/dev-manual/prebuilt-libraries.rst b/documentation/dev-manual/prebuilt-libraries.rst
> >> > index a05f39ca1..077184657 100644
> >> > --- a/documentation/dev-manual/prebuilt-libraries.rst
> >> > +++ b/documentation/dev-manual/prebuilt-libraries.rst
> >> > @@ -22,6 +22,13 @@ To summarize, a versioned library must meet two conditions:
> >> > This section shows how to deal with both versioned and unversioned
> >> > pre-built libraries.
> >> >
> >> > +.. note::
> >> > +
> >> > + In the shared library article referenced above, the link to the current
> >> > + version of the Filesystem Hierarchy Standard (FHS) is out of date;
> >> > + the current FHS 3.0 release can be found
> >> > + `here <https://refspecs.linuxfoundation.org/FHS_3.0/index.html>`__.
> >>
> >> Not sure adding a note to say a link is outdated is the good approach.
> >> Instead update the link above?
> >
> > i'm not sure that's the right way to do it. that old article is
> > quite a decent explanation of library versioning; if we now link
> > directly to the FHS spec from the yocto docs and bypass that article,
> > we lose a lot of good intro-level explanation.
> >
> > thoughts?
>
> I see. Then as Quentin suggested I think it's reasonable to link to
> https://refspecs.linuxfoundation.org/fhs.shtml instead of the 3.0 version, and
> say:
>
> """
> the latest release can be found `here
> <https://refspecs.linuxfoundation.org/fhs.shtml>`__.
> """
I'll reword as first referring to that older article with the good
explanation of library versioning and SONAMEs, then add a reference to
the current FHS.
rday
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2025-06-24 8:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-22 10:59 [PATCH] dev-manual: some minor cleanups to "Pre-Built Libraries" Robert P. J. Day
2025-06-23 14:16 ` [docs] " Quentin Schulz
2025-06-23 15:19 ` Robert P. J. Day
2025-06-24 7:50 ` Antonin Godard
2025-06-24 8:19 ` Robert P. J. Day
2025-06-24 8:28 ` Antonin Godard
2025-06-24 8:31 ` Robert P. J. Day
2025-06-24 8:35 ` Antonin Godard
2025-06-24 8:43 ` Robert P. J. Day
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.