#8951: rustc will apparently be needed for firefox-53.
-------------------------+-----------------------
 Reporter:  ken@…        |       Owner:  ken@…
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  8.1
Component:  BOOK         |     Version:  SVN
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by ken@…):

 To actually *use* rust, firefox also requires cargo which is if anything
 even worse than rust for building from source (if cargo is not present,
 need to manually download the previous version to bootstrap - not sure if
 older installed version would work), and it ships without rust-installer
 which prevents it from installing. Long notes, I don't want this to be
 wasted if I get knocked over by a bus.

 I've now got it building firefox-52.0.1, so I assume what I've got is
 adequate (the phrase "good enough" doesn't really fit something which is
 big, slow, and a new requirement). And I'm loathe to describe this as
 "quick and dirty", it doesn't feel quick ;-)

 With rust installed, download cargo-0.17.0 and then https://github.com
 /rust-lang/cargo/archive/cargo-0.16.0-x86_64-unknown-linux-gnu.tar.gz and
 get rust-installer-master.zip from github.

 Untar cargo, within that directory
 {{{
 tar -xvf ../cargo-0.16.0-x86_64-unknown-linux-gnu.tar.gz
 unzip ../rust-installer-master.zip
 mv -v rust-installer-master/* src/rust-installer
 }}}

 No, that doesn't move all the test/ files for the installer, and they
 don't seem to be needed

 Build with
 {{{
 ./configure --prefix=/usr \
  --sysconfdir=/etc \
  --docdir=/usr/share/doc/ \
  --cargo=./cargo-nightly-x86_64-unknown-linux-gnu/cargo/bin/cargo
 make -jN
 CFG_DISABLE_CROSS_TESTS=1 \
  ./target/x86_64-unknown-linux-gnu/release/cargo test
 make install
 }}}

 The tests all pass, I didn't count how many there were and lots of
 individual summaries.
 {{{
 grep 'result.*failed' testlog | cut -d ';' -f2 | uniq
 }}}
 should produce one line of output, ' 0 failed'

 Firefox-52.0.1 now built and DESTDIR installed, time and space similar to
 a build without rust, but in the log I did see at least one reference to a
 rust lib with its hashed version (plus, my initial attempt without cargo
 failed quickly), so this process seems to be adequate.

 Setting this aside until whichever version of firefox really does require
 rustc.

--
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/8951#comment:9>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to