Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2017 12:49:53 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        blubee blubeeme <gurenchan@gmail.com>, FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: firefox/ rust failed to install on FreeBSD 12-CURRENT
Message-ID:  <CAN6yY1t%2B6gE0WYJbwHjSu1osw2LgX230S84wksnVUEnN_BOimw@mail.gmail.com>
In-Reply-To: <20170528192420.GC82323@kib.kiev.ua>
References:  <CALM2mEm3mf3_TRXjsHj1OOWvcX0-rfA2MT-iHNYnf=A=3Lz%2Bsw@mail.gmail.com> <20170528192420.GC82323@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 28, 2017 at 12:24 PM, Konstantin Belousov <kostikbel@gmail.com>
wrote:

> On Mon, May 29, 2017 at 01:28:57AM +0800, blubee blubeeme wrote:
> > I'm trying to install firefox on FreeBSD
> > FreeBSD 12.0-CURRENT FreeBSD 12.0-CURRENT
> > #0 r318998: Sun May 28 04:38:22 CST 2017
> > /usr/obj/usr/src/sys/GENERIC  amd64
> >
> > ===>   firefox-i18n-53.0.3 depends on file:
> /usr/local/lib/firefox/firefox
> > - not found
> > ===>   firefox-53.0.3_1,1 depends on package: nspr>=4.13.1 - found
> > ===>   firefox-53.0.3_1,1 depends on package: nss>=3.29.5 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libevent>=2.0.21_2 - found
> > ===>   firefox-53.0.3_1,1 depends on package: harfbuzz>=1.4.1 - found
> > ===>   firefox-53.0.3_1,1 depends on package: graphite2>=1.3.8 - found
> > ===>   firefox-53.0.3_1,1 depends on package: png>=1.6.28 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libvorbis>=1.3.5,3 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libvpx>=1.5.0 - found
> > ===>   firefox-53.0.3_1,1 depends on package: sqlite3>=3.17.0 - found
> > ===>   firefox-53.0.3_1,1 depends on package: py27-sqlite3>0 - found
> > ===>   firefox-53.0.3_1,1 depends on package: v4l_compat>0 - found
> > ===>   firefox-53.0.3_1,1 depends on executable: autoconf-2.13 - found
> > ===>   firefox-53.0.3_1,1 depends on executable: yasm - found
> > ===>   firefox-53.0.3_1,1 depends on executable: zip - found
> > ===>   firefox-53.0.3_1,1 depends on package: gtk3>=3.14.6 - found
> > ===>   firefox-53.0.3_1,1 depends on package: libnotify>0 - found
> > ===>   firefox-53.0.3_1,1 depends on executable: rustc - not found
> > ===>  Building for rust-1.17.0
> > gmake[7]: Entering directory '/usr/ports/lang/rust/work/
> rustc-1.17.0-src'
> > "/usr/local/bin/python2.7"
> > /usr/ports/lang/rust/work/rustc-1.17.0-src/src/bootstrap/bootstrap.py
> > build -v
> > info: looks like you are running this command under `sudo`
> >       and so in order to preserve your $HOME this will now
> >       use vendored sources by default. Note that if this
> >       does not work you should run a normal build first
> >       before running a command like `sudo make install`
> Build system already tries to say you what you are doing wrong.
>
> Do not build the rust port under sudo.
>
> > extracting /usr/ports/lang/rust/work/rustc-1.17.0-src/build/cache/
> > 2017-03-11/rust-std-1.16.0-x86_64-unknown-freebsd.tar.gz
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/manifest.in
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/lib
> >   extracting rust-std-1.16.0-x86_64-unknown-freebsd/rust-std-x86_
> > 64-unknown-freebsd/lib/rustlib/x86_64-unknown-
> freebsd/lib/GNUSparseFile.0/
> > librustc_llvm-74a1be1110b5d4d0.so
> > gmake[7]: Leaving directory '/usr/ports/lang/rust/work/rustc-1.17.0-src'
> > *** Error code 1
> >
> > Stop.
> > make[6]: stopped in /usr/ports/lang/rust
> > *** Error code 1
> >
> > Stop.
> > make[5]: stopped in /usr/ports/lang/rust
> > *** Error code 1
> >
> > Stop.
> > make[4]: stopped in /usr/ports/www/firefox
> > *** Error code 1
> >
> > Stop.
> > make[3]: stopped in /usr/ports/www/firefox
> > *** Error code 1
> >
> > Stop.
> > make[2]: stopped in /usr/ports/www/firefox-i18n
> > *** Error code 1
> >
> > Stop.
> > make[1]: stopped in /usr/ports/www/firefox-i18n
> > *** Error code 1
> >
> > Stop.
> > make: stopped in /usr/ports/www/firefox-i18n
> >
> >
> > I am getting build failures with or without make_build_unsafe flags.
> >
> > I am building from source and ports tree is updated to revision 441919.
> >
> > Best,
> > Owen
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>

More exactly, don't build rust with 'sudo buildcommand' where
'buildcommand' could be make, portmaster, or any other command that will
build rust.

You can, however, 'sudo -c' and then run the build with no problem. I do
this regularly. 'sudo -c' really makes your environment into root with a
new shell and you must 'exit' to get back to being yourself.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1t%2B6gE0WYJbwHjSu1osw2LgX230S84wksnVUEnN_BOimw>