From 7fb4eb866878d439dc948af6eb2e94eb2d18edf9 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 4 Dec 2023 21:47:24 +0800 Subject: [PATCH 1/2] dependencies: Remove outdated sentence This sentence has been untrue since LFS 10.0. --- appendices/dependencies.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/appendices/dependencies.xml b/appendices/dependencies.xml index 55c6110ff..ed44374ea 100644 --- a/appendices/dependencies.xml +++ b/appendices/dependencies.xml @@ -30,10 +30,7 @@ in addition to those on the first list, need to be available in order to run the test suites. The fourth list of dependencies are packages that require this package to be built and installed in its final location before they are - built and installed. In most cases, this is because these packages will hard - code paths to binaries within their scripts. If not built in a certain order, - this could result in paths of /tools/bin/[binary] being placed inside scripts - installed to the final system. This is obviously not desirable. + built and installed. The last list of dependencies are optional packages that are not addressed in LFS, but could be useful to the user. These packages may have From dc8572f2413a4d25444bb1237ea2a01dfba60429 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Mon, 4 Dec 2023 19:15:01 +0100 Subject: [PATCH 2/2] Fix cmds installing python docs (permissions) --- chapter01/changelog.xml | 11 +++++++++++ chapter08/python.xml | 14 +++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index c049903fc..11df22160 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,17 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + + 2023-12-04 + + + [thomas] - Modify commands for install Python docs to avoid + too restrictive permissions on the files and dirs. + + + + 2023-12-01 diff --git a/chapter08/python.xml b/chapter08/python.xml index f7bc19d47..62279880d 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -155,21 +155,21 @@ EOF install -v -dm755 /usr/share/doc/python-&python-version;/html -tar --strip-components=1 \ - --no-same-owner \ - --no-same-permissions \ - -C /usr/share/doc/python-&python-version;/html \ - -xvf ../python-&python-version;-docs-html.tar.bz2 +tar --no-same-owner \ + -xvf ../python-&python-version;-docs-html.tar.bz2 +cp -R --no-preserve=mode python-&python-version;-docs-html/* \ + /usr/share/doc/python-&python-version;/html The meaning of the documentation install commands: - and + (tar) and (cp) Ensure the installed files have the correct ownership and permissions. Without these options, tar - will install the package files with the upstream creator's values. + will install the package files with the upstream creator's values + and files would have restrictive permissions.