Changeset f2ae6ba8


Ignore:
Timestamp:
10/08/2022 11:04:53 AM (19 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
13d9cb6a
Parents:
1e9ccfa
git-author:
Xi Ruoyao <xry111@…> (10/08/2022 11:02:47 AM)
git-committer:
Xi Ruoyao <xry111@…> (10/08/2022 11:04:53 AM)
Message:

rustc: demote curl and libssh2 to recommended

And, adjust LIBSSH2_SYS_USE_PKG_CONFIG according to if libssh2 is
installed. Export it earlier so x.py build and x.py install will use
the same LIBSSH2_SYS_USE_PKG_CONFIG value. This can reduce some
repeated building process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    r1e9ccfa rf2ae6ba8  
    201201    <bridgehead renderas="sect4">Required</bridgehead>
    202202    <para role="required">
    203       <xref linkend="curl"/>,
    204       <xref linkend="cmake"/>, and
    205       <xref linkend="libssh2"/>
     203      <xref linkend="cmake"/>
    206204    </para>
    207205
    208206    <bridgehead renderas="sect4">Recommended</bridgehead>
    209207    <para role="recommended">
     208      <xref linkend="curl"/>,
     209      <xref linkend="libssh2"/>, and
    210210      <xref linkend="llvm"/>
    211211      (built with -DLLVM_LINK_LLVM_DYLIB=ON so that rust can link to
    212212      system LLVM instead of building its shipped version)
    213213    </para>
     214
     215    <note>
     216      <para>
     217        If a recommended dependency is not installed, a shipped copy in the
     218        Rustc source tarball will be built and used.
     219      </para>
     220    </note>
    214221
    215222    <bridgehead renderas="sect4">Optional</bridgehead>
     
    337344
    338345<screen><userinput>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" &amp;&amp;
     346{ [ ! -e /usr/include/libssh2.h ] ||
     347  export LIBSSH2_SYS_USE_PKG_CONFIG=1; } &amp;&amp;
    339348python3 ./x.py build --exclude src/tools/miri</userinput></screen>
    340349
     
    415424    </para>
    416425
    417 <screen><userinput>export LIBSSH2_SYS_USE_PKG_CONFIG=1 &amp;&amp;
    418 DESTDIR=${PWD}/install python3 ./x.py install &amp;&amp;
     426<screen><userinput>DESTDIR=${PWD}/install python3 ./x.py install &amp;&amp;
    419427unset LIBSSH2_SYS_USE_PKG_CONFIG</userinput></screen>
    420428
     
    513521    </para>
    514522
    515     <para>
    516       <command>export LIBSSH2_SYS_USE_PKG_CONFIG=1</command>: On some systems,
    517       cairo fails to link during the install because it cannot find libssh2.
    518       This seems to fix it, but again the reason why the problem occurs is not
    519       understood.
     523    <!-- https://github.com/alexcrichton/ssh2-rs/issues/173 -->
     524    <para>
     525      <command>export LIBSSH2_SYS_USE_PKG_CONFIG=1</command>: Allow
     526      <command>cargo</command> to link to system libssh2.
    520527    </para>
    521528
Note: See TracChangeset for help on using the changeset viewer.