Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jun 2017 15:15:16 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        Tim Kientzle <tim@kientzle.com>
Cc:        =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= <dumbbell@freebsd.org>,  FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: firefox/ rust failed to install on FreeBSD 12-CURRENT
Message-ID:  <CALM2mEkkCNGWWNup-ddDtCn99fRt_NvffxqvPJhP968bw0daww@mail.gmail.com>
In-Reply-To: <3348A21B-754F-41FE-A94D-C3F53AD691C8@kientzle.com>
References:  <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com> <ee3bd3ba-af37-3e98-0461-1ab55107cd03@FreeBSD.org> <3348A21B-754F-41FE-A94D-C3F53AD691C8@kientzle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
thanks for the two great pieces of advice.


Best,
Owen

On Sat, Jun 3, 2017 at 2:26 PM, Tim Kientzle <tim@kientzle.com> wrote:

>
> > On Jun 1, 2017, at 11:37 PM, Jean-S=C3=A9bastien P=C3=A9dron <dumbbell@=
freebsd.org>
> wrote:
> >
> > On 28.05.2017 19:21, blubee blubeeme wrote:
> >> =3D=3D=3D>  Building for rust-1.17.0
> >> ...
> >>  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
> >
> > Hi!
> >
> > This failure is caused by Python 2's tarfile module not supporting
> > sparse files in archives. Python 3 supports them but the configure
> > script insists on using Python 2.
> >
> > Before a proper fix is committed, you can change the following line in
> > lang/rust/Makefile:
> > https://github.com/freebsd/freebsd-ports/blob/master/
> lang/rust/Makefile#L159
> >
> > to say (this is a single line):
> > gtar -c -C ${WRKSRC} -f -
> > rust-std-1.16.0-${RUST_ARCH_${ARCH}}-unknown-freebsd | gzip >
> > ${WRKSRC}/rustc.tbz
>
> You could add --format=3Dustar to the existing command line; that would
> force bsdtar to use the older "ustar" format (without any extensions that
> might confuse Python's tar file module).
>
>
> > Then, change the following line:
> > https://github.com/freebsd/freebsd-ports/blob/master/
> lang/rust/Makefile#L34
> >
> > to say:
> > BUILD_DEPENDS=3D cmake:devel/cmake \
> >               gtar:archivers/gtar
> >
> > This will use GNU tar instead of BSD tar to recreate the bootstrap and
> > GNU tar doesn't seem to produce sparse file entries in the archive.
>
> How ironic; using GNU tar in order to avoid having GNU sparse file
> entries.  ;-)
>
> Tim
>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org=
"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEkkCNGWWNup-ddDtCn99fRt_NvffxqvPJhP968bw0daww>