Changeset 6848f3f5


Ignore:
Timestamp:
12/27/2023 03:41:42 AM (4 months ago)
Author:
Douglas R. Reno <renodr@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
604708d
Parents:
da314782
Message:

Seamonkey: adapt to the new Python 3.11 installation method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/graphweb/seamonkey.xml

    rda314782 r6848f3f5  
    7575    </itemizedlist>
    7676
     77    <!--
    7778    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    7879    <itemizedlist spacing="compact">
     
    9495      </listitem>
    9596    </itemizedlist>
     97    -->
    9698
    9799    <note>
     
    111113      <xref linkend="gtk3"/>,
    112114      <xref linkend="nodejs"/>,
    113       <xref linkend="six"/>,
     115      <xref linkend="python311"/>,
    114116      <xref linkend="unzip"/>,
    115117      <xref linkend="yasm"/>, and
     
    263265    </note>
    264266
     267<!-- Restore when no longer using Python 3.11. We may want to restore the patch
     268     at that point as well, which includes the 'distro' and 'ICU' changes. -renodr
    265269    <para>
    266270      First, fix several problems that occur with Python-3.12 and ICU-74.
     
    279283
    280284tar xf ../setuptools-&setuptools-version;.tar.gz                             &amp;&amp;
    281 pip3 wheel --no-build-isolation --no-deps --no-cache-dir       \
     285pip3 wheel - -no-build-isolation - -no-deps - -no-cache-dir       \
    282286           $PWD/setuptools-&setuptools-version;                              \
    283287           -w third_party/python/virtualenv/virtualenv_support</userinput></screen>
    284 
    285     <para>
    286       Next, if you are on Python-3.11 still, fix a problem with the bundled
    287       'distro' python module. This has been included in the patch for
    288       Python-3.12 users:
    289     </para>
    290 
    291 <screen role="nodump"><userinput>sed -e '1012 s/stderr=devnull/stderr=subprocess.DEVNULL/' \
     288-->
     289
     290    <para>
     291      First, if you are building with system ICU, adapt the line break mapping
     292      for ICU-74 and later:
     293    </para>
     294
     295<screen><userinput remap="pre">(for i in {43..47}; do
     296   sed '/ZWJ/s/$/,CLASS_CHARACTER/' -i intl/lwbrk/LineBreaker.cpp || exit $?
     297done)</userinput></screen>
     298
     299    <para>
     300      Next, fix a problem with the bundled 'distro' python module:
     301    </para>
     302
     303<screen><userinput remap="pre">sed -e '1012 s/stderr=devnull/stderr=subprocess.DEVNULL/' \
    292304    -e '1013 s/OSError/(OSError, subprocess.CalledProcessError)/' \
    293305    -i third_party/python/distro/distro.py</userinput></screen>
     
    298310    </para>
    299311
    300 <screen><userinput>AUTOCONF=true ./mach configure &amp;&amp;
    301 ./mach build</userinput></screen>
     312<screen><userinput>export PYTHON311=/opt/python3.11/bin/python3.11 &amp;&amp;
     313$PYTHON311 AUTOCONF=true ./mach configure       &amp;&amp;
     314$PYTHON311 AUTOCONF=true ./mach build</userinput></screen>
    302315
    303316    <para>
     
    310323    </para>
    311324
    312 
    313 <screen role="root"><userinput>./mach install                  &amp;&amp;
     325<screen role="root"><userinput>$PYTHON311 ./mach install       &amp;&amp;
    314326chown -R 0:0 /usr/lib/seamonkey &amp;&amp;
     327unset $PYTHON311                &amp;&amp;
    315328
    316329cp -v $(find -name seamonkey.1 | head -n1) /usr/share/man/man1</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.