Fix cmds installing python docs (permissions)

This commit is contained in:
Thomas Trepl 2023-12-04 19:15:01 +01:00
parent 7fb4eb8668
commit dc8572f241
2 changed files with 18 additions and 7 deletions

View File

@ -39,6 +39,17 @@
<listitem revision="sysv"> or <listitem revision="systemd"> as <listitem revision="sysv"> or <listitem revision="systemd"> as
appropriate for the entry or if needed the entire day's listitem. appropriate for the entry or if needed the entire day's listitem.
--> -->
<listitem>
<para>2023-12-04</para>
<itemizedlist>
<listitem>
<para>[thomas] - Modify commands for install Python docs to avoid
too restrictive permissions on the files and dirs.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem revision='sysv'> <listitem revision='sysv'>
<para>2023-12-01</para> <para>2023-12-01</para>
<itemizedlist> <itemizedlist>

View File

@ -155,21 +155,21 @@ EOF
<screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html <screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html
tar --strip-components=1 \ tar --no-same-owner \
--no-same-owner \ -xvf ../python-&python-version;-docs-html.tar.bz2
--no-same-permissions \ cp -R --no-preserve=mode python-&python-version;-docs-html/* \
-C /usr/share/doc/python-&python-version;/html \ /usr/share/doc/python-&python-version;/html</userinput></screen>
-xvf ../python-&python-version;-docs-html.tar.bz2</userinput></screen>
<variablelist> <variablelist>
<title>The meaning of the documentation install commands:</title> <title>The meaning of the documentation install commands:</title>
<varlistentry> <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> <listitem>
<para>Ensure the installed files have the correct ownership and <para>Ensure the installed files have the correct ownership and
permissions. Without these options, <application>tar</application> 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> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>