dev-manual: some minor cleanups to "Pre-Built Libraries"
PATCH 1/1 dev-manual: some minor cleanups to "Pre-Built Libraries"
* Add note about new URL for FHS 3.0.
* Add wildcard for "INHIBIT_" variable.
* Fix font for ${PN}.
---
documentation/dev-manual/prebuilt-libraries.rst +9 -2
@@ -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
Hi Robert,
Quoted 14 lines · Robert P. J. Day via lists.yoctoproject.org
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0
documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 31
Quoted 10 lines
documentation/dev-manual/prebuilt-libraries.rst +7
-0@@ -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
Quoted 33 lines · Quentin Schulz
Hi Robert,
Quoted 20 lines · Robert P. J. Day via lists.yoctoproject.org
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0@@ -22,6 +22,13 @@ To summarize, a versioned library must meet twoconditions:
This section shows how to deal with both versioned and unversioned pre-built libraries.+.. note::
documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 31
Quoted 6 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0+ + 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?
Quoted 4 lines
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
Quoted 14 lines · Robert P. J. Day
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0
documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 30
Quoted 9 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0@@ -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?
Quoted 13 lines
documentation/dev-manual/prebuilt-libraries.rst +1
-1Versioned 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::
documentation/dev-manual/prebuilt-libraries.rst as follows:: · line 180
Quoted 5 lines
documentation/dev-manual/prebuilt-libraries.rst +1
-1@@ -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?
documentation/dev-manual/prebuilt-libraries.rst as follows:: · line 183
Quoted 3 lines
documentation/dev-manual/prebuilt-libraries.rst +0
-0the files you want in ``${PN}``. Finally, loadable modules, essentially unversioned libraries that are linked
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 40 lines · Antonin Godard
Quoted 14 lines · Robert P. J. Day
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 30
Quoted 9 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0@@ -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?
Quoted 12 lines
documentation/dev-manual/prebuilt-libraries.rst +1
-1Versioned 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::
Quoted 8 lines
documentation/dev-manual/prebuilt-libraries.rst as follows:: · line 180
Quoted 6 lines
documentation/dev-manual/prebuilt-libraries.rst +1
-1@@ -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 ofCan 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
Quoted 51 lines · Robert P. J. Day
Quoted 40 lines · Antonin Godard
Quoted 14 lines · Robert P. J. Day
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 30
Quoted 9 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0@@ -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?
Quoted 12 lines
documentation/dev-manual/prebuilt-libraries.rst +1
-1Versioned 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::Quoted 8 lines
documentation/dev-manual/prebuilt-libraries.rst as follows:: · line 180
Quoted 6 lines
documentation/dev-manual/prebuilt-libraries.rst +1
-1@@ -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 ofCan you send this in a separate patch?
Quoted 2 lines
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
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 18 lines · Antonin Godard via lists.yoctoproject.org
Quoted 17 lines · Robert P. J. Day
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0@@ -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.
Quoted 9 lines
documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 30
Quoted 6 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0+.. 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
Quoted 30 lines · Robert P. J. Day
Quoted 18 lines · Antonin Godard via lists.yoctoproject.org
Quoted 17 lines · Robert P. J. Day
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0@@ -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.Quoted 9 lines
documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 30
Quoted 6 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0+.. 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?
Quoted 6 lines
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
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 38 lines · Antonin Godard via lists.yoctoproject.org
Quoted 30 lines · Robert P. J. Day
Quoted 18 lines · Antonin Godard via lists.yoctoproject.org
Quoted 17 lines · Robert P. J. Day
* 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 <[email protected]>---
documentation/dev-manual/prebuilt-libraries.rst +0
-0@@ -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.Quoted 9 lines
documentation/dev-manual/prebuilt-libraries.rst To summarize, a versioned library must meet two conditions: · line 30
Quoted 6 lines
documentation/dev-manual/prebuilt-libraries.rst +6
-0+.. 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?
Quoted 6 lines
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?
Quoted 8 lines
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