Changeset 26c3ba5


Ignore:
Timestamp:
10/01/2024 09:35:00 AM (2 hours ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
f67824e
Parents:
01ac611
Message:

cargo-c: Don't put Cargo.lock into the BLFS sources directory

Fix dependency info and some typos by the way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/cargo-c.xml

    r01ac611 r26c3ba5  
    7070    </itemizedlist>
    7171
     72    <!-- Moved to an explicit curl command.  See the note below the
     73         curl command for reason.
    7274    <bridgehead renderas="sect3">Additional Downloads</bridgehead>
    7375    <itemizedlist spacing="compact">
     
    8183      </listitem>
    8284
    83     </itemizedlist>
     85    </itemizedlist>-->
    8486
    8587    <bridgehead renderas="sect3">cargo-c Dependencies</bridgehead>
     
    8789    <bridgehead renderas="sect4">Required</bridgehead>
    8890    <para role="required">
    89       <xref linkend="curl"/>
     91      <xref linkend="rust"/>
    9092    </para>
     93
     94    <bridgehead renderas="sect4">Recommended</bridgehead>
     95    <para role="recommended">
     96      <xref linkend="libssh2"/> and
     97      <xref linkend="sqlite"/>
     98    </para>
     99
     100    &build-use-internet;
    91101
    92102  </sect2>
    93103
    94104  <sect2 role="installation">
    95     <title>Installation of cargo.c</title>
     105    <title>Installation of cargo-c</title>
    96106
    97107    <para>
    98       Install <application>cargo.c</application> by running the following
     108      At first, download a file to ensure <command>cargo</command> to
     109      use the dependency versions specified by the upstream developers
     110      when this cargo-c version (&cargo-c-version;) was released.
     111      Otherwise the latest versions of the dependencies would be used and
     112      they might cause breakages:
     113    </para>
     114
     115    <screen><userinput>curl -LO https://github.com/lu-zero/cargo-c/releases/download/v&cargo-c-version;/Cargo.lock</userinput></screen>
     116
     117    <note>
     118      <para>
     119        Normally we would put such a download into an
     120        <quote>Additional Download</quote> section.  But in this case we
     121        cannot tell the package name and version from the file name
     122        <filename>Cargo.lock</filename>, so it's better not to put the
     123        ambigiously-named file outside the
     124        <filename class='directory'>cargo-c-&cargo-c-version;</filename>
     125        directory.  We use <command>curl</command> here because the
     126        <xref linkend='curl'/> package should have been installed
     127        as a required dependency of <xref linkend='rust'/>.
     128      </para>
     129    </note>
     130
     131    <para>
     132      Install <application>cargo-c</application> by running the following
    99133      commands:
    100134    </para>
    101135
    102 <screen><userinput>cp -v ../Cargo.lock . &amp;&amp;
    103 
    104 [ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1    &amp;&amp;
     136<screen><userinput>[ ! -e /usr/include/libssh2.h ] || export LIBSSH2_SYS_USE_PKG_CONFIG=1    &amp;&amp;
    105137[ ! -e /usr/include/sqlite3.h ] || export LIBSQLITE3_SYS_USE_PKG_CONFIG=1 &amp;&amp;
    106138
Note: See TracChangeset for help on using the changeset viewer.