From owner-freebsd-current@freebsd.org  Fri Jun  2 06:47:27 2017
Return-Path: <owner-freebsd-current@freebsd.org>
Delivered-To: freebsd-current@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD7E9BF129D
 for <freebsd-current@mailman.ysv.freebsd.org>;
 Fri,  2 Jun 2017 06:47:27 +0000 (UTC)
 (envelope-from dumbbell@FreeBSD.org)
Received: from mail.made4.biz (mail.made4.biz [195.154.164.132])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 6EEBC7D240
 for <freebsd-current@freebsd.org>; Fri,  2 Jun 2017 06:47:27 +0000 (UTC)
 (envelope-from dumbbell@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freebsd.org
 ; s=20170531;
 h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:
 References:To:Subject:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID
 :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:
 Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe
 :List-Post:List-Owner:List-Archive;
 bh=wT6bn8N8XdoPt/qeXECXnEzFJFCbDQZxRTBCSytbmlE=; b=elW/hCOE0Vf5nkta4J+Zr5n9YI
 crK8cMuzi6xLqjpK4Pyot3mXS2S3HzxbzUuCB/3Zmm97BbXR5aGJH/VV5VNkDESnJXqbGRwthPmh6
 l+1LNhPRCEw1ggDPj8EePtIB9lMVLrN1MEqIXVH88bhrZkjH1+pL88/MsKlnunlduFg4=;
Received: from 141.7.19.93.rev.sfr.net ([93.19.7.141] helo=rosetta.dumbbell.fr)
 by mail.made4.biz with esmtpa (Exim 4.89 (FreeBSD))
 (envelope-from <dumbbell@FreeBSD.org>) id 1dGgCq-000Ohh-2Q
 for freebsd-current@freebsd.org; Fri, 02 Jun 2017 08:37:08 +0200
Subject: Re: firefox/ rust failed to install on FreeBSD 12-CURRENT
To: freebsd-current@freebsd.org
References: <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com>
From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <dumbbell@FreeBSD.org>
Organization: The FreeBSD Project
Message-ID: <ee3bd3ba-af37-3e98-0461-1ab55107cd03@FreeBSD.org>
Date: Fri, 2 Jun 2017 08:37:03 +0200
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101
 Thunderbird/52.1.0
MIME-Version: 1.0
In-Reply-To: <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com>
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature";
 boundary="duVVjbgxRL6l3OSJg3Ux0IihgjIO7a3pn"
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
 <freebsd-current.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, 
 <mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Jun 2017 06:47:27 -0000

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--duVVjbgxRL6l3OSJg3Ux0IihgjIO7a3pn
Content-Type: multipart/mixed; boundary="oaJDvQOkeBKFkjRQm9eWbijALfnPQNpjT";
 protected-headers="v1"
From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <dumbbell@FreeBSD.org>
To: freebsd-current@freebsd.org
Message-ID: <ee3bd3ba-af37-3e98-0461-1ab55107cd03@FreeBSD.org>
Subject: Re: firefox/ rust failed to install on FreeBSD 12-CURRENT
References: <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com>
In-Reply-To: <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com>

--oaJDvQOkeBKFkjRQm9eWbijALfnPQNpjT
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

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-74a1=
be1110b5d4d0.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#L=
159

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

Then, change the following line:
https://github.com/freebsd/freebsd-ports/blob/master/lang/rust/Makefile#L=
34

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.

--=20
Jean-S=C3=A9bastien P=C3=A9dron


--oaJDvQOkeBKFkjRQm9eWbijALfnPQNpjT--

--duVVjbgxRL6l3OSJg3Ux0IihgjIO7a3pn
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEZwh/0a6uDhLbxqbwOemXYaX9lMwFAlkxB5NfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDY3
MDg3RkQxQUVBRTBFMTJEQkM2QTZGMDM5RTk5NzYxQTVGRDk0Q0MACgkQOemXYaX9
lMzrvBAAtlxDIQm+OQrK7ETq+3dj2up/yhlFwDk4yh4PBPf6jO7qABmbNEUIDW6F
igF7NkqHh7VxnEd4ZPYhs/1iiHrY8n6Izc1814SEJ6rygipLwOMBM7sNtMApgrJx
HKBn27Vc36dVqGQlZa1ONX9mzgOjOjbwns0LS07i4T9OfhVHjIQwxIygTbzelE4G
wvqAHo8KO2yKD08/rvxgdvqWKJEEdJkUhZ5+cmkpYAnerXMprJxYXdc+SrTtyhCl
V0eVi6JnMkupsmqgOz04cb2Lq/Nc38GsibfR2e+hBsw2DbnpBhaimZSco+mmR0ir
tnYNcll6koM1rq8T2mBIGQP4xKbm5qKTbwF/vhiJp9RVmGhzByl2yXK7heeO0Jm7
ezI9XQBhfXgmYluqsP3NgPLBN8WUHlwZzqeF/pXmSnGt4zpIgC7Rsy9hkLNALNVH
YvMUXmIX+ljbUskPCEBxtYkEK9VsA0cicyYcy5qm+a+k5Hss6DRZXm+rvM0g/pkg
8ua0gSrDoFLtrzUueKS4GL+3uOnpQtj+dr4qK9klISWYcrrfJVVB5WRrCTkD3vOt
k8eNQp6l8Xukw/8jKlnoDRKU806Psz0QJL4QTUmZ9K8jrhZk7t8HgnKChjYrkv6u
XEmXI/CsEyKkRtEtpZdVh9Drt8yVFNxzPXslVWkO2xCysgfcark=
=tExO
-----END PGP SIGNATURE-----

--duVVjbgxRL6l3OSJg3Ux0IihgjIO7a3pn--