Changeset 9324b4e


Ignore:
Timestamp:
01/25/2019 07:09:00 PM (3 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
bdubbs/svn
Children:
0a5062a
Parents:
62f58c7a
Message:

Simplify custom rustc page

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/bdubbs@21040 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    r62f58c7a r9324b4e  
    190190      If you are going to install into the
    191191      <filename class="directory">/opt</filename> directory, remove
    192       conflicting entries. As the <systemitem class="username">root</systemitem>
     192      conflicting entries and recreate the required entries.
     193      As the <systemitem class="username">root</systemitem>
    193194      user:
    194195    </para>
    195196
    196 <screen><userinput>rm -rf /opt/rustc /opt/rustc-&rust-version;</userinput></screen>
     197<screen role="root"><userinput>rm -rf /opt/rustc /opt/rustc-&rust-version; &amp;&amp;
     198mkdir /opt/rustc-&rust-version;             &amp;&amp;
     199ln -sv rustc-&rust-version; /opt/rustc</userinput></screen>
     200
     201    <note>
     202      <para>
     203        If multiple versions of <application>Rust</application> are installed
     204        in <filename class="directory">/opt</filename>, changing to another
     205        version only requires changing the <filename> /opt/rustc</filename>
     206        symbolic link.
     207      </para>
     208    </note>
    197209
    198210    <para>
     
    225237
    226238[install]
    227 prefix = "/usr"
     239# Adjust the prefix for the desired destination
     240#prefix = "/usr"
     241prefix = "/opt/rustc-&rust-version;"
     242
    228243# docdir is used even if the full awesome docs are not installed
    229244docdir = "share/doc/rustc-&rust-version;"
     
    312327
    313328    <para>
    314       If installing in the <filename class="directory">/opt</filename>
    315       directory, adjust the locations in the DESTDIR directory:
    316     </para>
    317 
    318 <screen><command>mkdir -p         install/opt/rustc-&rust-version; &amp;&amp;
    319 mv install/usr/* install/opt/rustc-&rust-version; &amp;&amp;
    320 rmdir install/usr</command></screen>
    321 
    322     <para>
    323329      Now, as the <systemitem class="username">root</systemitem> user
    324330      install the files from the DESTDIR:
     
    327333<screen role="root"><userinput>chown -R root:root install &amp;&amp;
    328334cp -a install/* /</userinput></screen>
    329 
    330     <para>
    331       Finally, if the application is installed in the <filename
    332       class="directory">/opt</filename> directory, create a symbolic link to
    333       access the current version:
    334     </para>
    335 
    336 <screen role="root"><userinput>ln -sfnv rustc-&rust-version; /opt/rustc</userinput></screen>
    337 
    338     <note>
    339       <para>
    340         If multiple versions of <application>Rust</application> are installed
    341         in <filename class="directory">/opt</filename>, changing to another
    342         version only requires changing the <filename> /opt/rustc</filename>
    343         symbolic link.
    344       </para>
    345     </note>
    346 
    347335
    348336  </sect2>
     
    442430        If you installed <application>rustc</application> in
    443431        <filename class="directory">/opt</filename>, you need to update the
    444         following configuration files so that <application>ruxtc</application> is
     432        following configuration files so that <application>rustc</application> is
    445433        correctly found by other packages and system processes.
    446434      </para>
Note: See TracChangeset for help on using the changeset viewer.