[lfs] branch trunk updated: Revert "Fix cmds installing python docs (permissions)"
| Newsgroups | gmane.linux.lfs.book |
|---|---|
| Message-ID | <173897547350.9684.10225138898448443881@rivendell.linuxfromscratch.org> |
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch trunk
in repository lfs.
The following commit(s) were added to refs/heads/trunk by this push:
new 94dc9c26d Revert "Fix cmds installing python docs (permissions)"
94dc9c26d is described below
commit 94dc9c26d2ee84c7d81b785d2d9124d630e2ca17
Author: Xi Ruoyao <[email protected]>
AuthorDate: Sat Feb 8 08:42:47 2025 +0800
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
<screen><userinput remap="install">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</userinput></screen>
+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</userinput></screen>
<variablelist>
<title>The meaning of the documentation install commands:</title>
<varlistentry>
- <term><option>--no-same-owner</option> (tar) and <option>--no-preserve=mode</option> (cp)</term>
+ <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term>
<listitem>
<para>Ensure the installed files have the correct ownership and
permissions. Without these options, <application>tar</application>
- 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.
</para>
</listitem>
</varlistentry>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
--
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page