From 94dc9c26d2ee84c7d81b785d2d9124d630e2ca17 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Sat, 8 Feb 2025 08:42:47 +0800 Subject: [PATCH] Revert "Fix cmds installing python docs (permissions)" This reverts commit dc8572f2413a4d25444bb1237ea2a01dfba60429. The permission issue seems fixed upstream: after I untar the tarball with --no-same-owner --no-same-permissions as root, all files are 644 and all directories are 755 (proven via find -type f -not -perm 644 and find -type d -not -perm 755). --- chapter08/python.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chapter08/python.xml b/chapter08/python.xml index 75f18945f..ebda61181 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -162,21 +162,21 @@ EOF install -v -dm755 /usr/share/doc/python-&python-version;/html -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 +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 The meaning of the documentation install commands: - (tar) and (cp) + and 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 - and files would have restrictive permissions. + will install the package files with the upstream creator's values.