Ignore:
Timestamp:
01/04/2024 06:16:19 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.2, gimp3, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128
Children:
3e0463f
Parents:
37969973
git-author:
Xi Ruoyao <xry111@…> (01/04/2024 06:13:55 PM)
git-committer:
Xi Ruoyao <xry111@…> (01/04/2024 06:16:19 PM)
Message:

seamonkey: Document sudo/su may kill $PATH_PY311

Like rustc. Move the unset command out of the <screen> for
installation because if we use sudo --preserve-env=PATH_PY311 -s for a
shell as root to install the package, "unset PATH_PY311" will only
unset it in this shell, not the shell building the package.

Also fix a grammar issue in rustc, and unset LIBSSH2_SYS_USE_PKG_CONFIG
after installing rustc too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/seamonkey.xml

    r37969973 rd5b06a4  
    322322    </para>
    323323
     324    <note>
     325      <para>
     326        If <command>sudo</command> or <command>su</command> is invoked for
     327        opening a shell running as the &root; user, ensure
     328        <envar>PATH_PY311</envar> is correctly passed or the
     329        following command will fail.  For <command>sudo</command>, use the
     330        <option>--preserve-env=PATH_PY311</option> option.
     331        For <command>su</command>, do <emphasis>not</emphasis> use the
     332        <option>-</option> or <option>--login</option> options.
     333      </para>
     334    </note>
     335
    324336<screen role="root"><userinput>PATH=$PATH_PY311 ./mach install &amp;&amp;
    325337chown -R 0:0 /usr/lib/seamonkey &amp;&amp;
    326 unset $PATH_PY311               &amp;&amp;
    327338
    328339cp -v $(find -name seamonkey.1 | head -n1) /usr/share/man/man1</userinput></screen>
     340
     341    <para>
     342      Finally, unset the <envar>PATH_PY311</envar> variable:
     343    </para>
     344
     345<screen><userinput>unset $PATH_PY311</userinput></screen>
    329346
    330347  </sect2>
Note: See TracChangeset for help on using the changeset viewer.