diff options
author | Thomas Trepl <thomas@linuxfromscratch.org> | 2023-12-04 19:15:01 +0100 |
---|---|---|
committer | Thomas Trepl <thomas@linuxfromscratch.org> | 2023-12-04 19:15:01 +0100 |
commit | dc8572f2413a4d25444bb1237ea2a01dfba60429 (patch) | |
tree | 22af0b1137ae7008760ab24540984242ce6a7705 /chapter08 | |
parent | 7fb4eb866878d439dc948af6eb2e94eb2d18edf9 (diff) |
Fix cmds installing python docs (permissions)
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/python.xml | 14 |
1 files changed, 7 insertions, 7 deletions
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 <screen><userinput remap="install">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</userinput></screen> +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> <variablelist> <title>The meaning of the documentation install commands:</title> <varlistentry> - <term><option>--no-same-owner</option> and <option>--no-same-permissions</option></term> + <term><option>--no-same-owner</option> (tar) and <option>--no-preserve=mode</option> (cp)</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. + will install the package files with the upstream creator's values + and files would have restrictive permissions. </para> </listitem> </varlistentry> |