Skip to contentSkip to conversation

doc: fix build

PATCH In review Thomas Monjalon 3 participants 6 messages Jan 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix build

When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst,
the reference to this section got broken.
It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file.

Fixes eb0e12c0c299 ("doc: add clang to aarch64 cross build guide")
---
 doc/guides/platform/bluefield.rst | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
doc/guides/platform/bluefield.rst +5 -6
index 824f2bde64..635e414600 100644
@@ -77,12 +77,11 @@ required:
    - libnl-3
    - libnl-route-3
 
-Such header files and libraries can be cross-compiled and installed on to the
-cross toolchain directory like depicted in
-:ref:`arm_cross_build_getting_the_prerequisite_library`, but those can also be
-simply copied from the filesystem of a working BlueField platform. The following
-script can be run on a BlueField platform in order to create a supplementary
-tarball for the cross toolchain.
+Such header files and libraries can be cross-compiled and installed
+in the cross toolchain environment.
+They can also be simply copied from the filesystem of a working BlueField platform.
+The following script can be run on a BlueField platform in order to create
+a supplementary tarball for the cross toolchain.
 
 .. code-block:: console
 
Signature · 1 line
2.30.0
#1 lore raw
Quoted 6 lines · Thomas Monjalon

When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst,
the reference to this section got broken.
It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file.

Do we know why this is? The doc builds should be doing proper dependency tracking, based off the output from sphinx IIRC.

#2 lore raw

26/01/2021 16:32, Bruce Richardson:

Quoted 9 lines · Thomas Monjalon
Quoted 6 lines

When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst,
the reference to this section got broken.
It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file.

Do we know why this is? The doc builds should be doing proper dependency tracking, based off the output from sphinx IIRC.

It seems it is building only the changed files.
I don't understand the logic in buildtools/call-sphinx-build.py

#3 lore raw
Quoted 8 lines · Thomas Monjalon

26/01/2021 16:32, Bruce Richardson:

Quoted 7 lines · Thomas Monjalon
Quoted 6 lines

When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst,
the reference to this section got broken.
It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file.

Quoted 6 lines
Quoted 2 lines

Do we know why this is? The doc builds should be doing proper dependency tracking, based off the output from sphinx IIRC.

It seems it is building only the changed files.
I don't understand the logic in buildtools/call-sphinx-build.py

That needs some investigation, but it may be sphinx which is at fault rather than the DPDK build. Most of the extra work done in the wrapper is processing the files list worked by sphinx so we can mark them as dependencies of the doc target. Sphinx itself does the incremental builds of only changed files.

Unfortunately I don't have time to dig into this more right now.

Reviewed-by on v1 1/1
#4 lore raw
In reply to Thomas Monjalon
Quoted 10 lines · Thomas Monjalon

When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst,
the reference to this section got broken.
It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file.

Fixes eb0e12c0c299 ("doc: add clang to aarch64 cross build guide")
Signature · 1 line
David Marchand
author Applied
#5 lore raw

26/01/2021 16:32, David Marchand:

Quoted 7 lines · Thomas Monjalon
Quoted 6 lines

When removing the label "arm_cross_build_getting_the_prerequisite_library" in the rework of cross_build_dpdk_for_arm64.rst,
the reference to this section got broken.
It went unnoticed because "ninja -C doc" does not regenerate the file which is referencing the changed file.

Adding this explanation:
The fix is a reword not mentioning the "not so relevant" example from cross_build_dpdk_for_arm64.rst.

Quoted 5 lines
Quoted 3 lines
Fixes eb0e12c0c299 ("doc: add clang to aarch64 cross build guide")

Applied