From owner-freebsd-current@freebsd.org Sat Jun 3 06:43:26 2017 Return-Path: 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 02005B94DF0 for ; Sat, 3 Jun 2017 06:43:26 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from monday.kientzle.com (kientzle.com [142.254.26.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0EB72035; Sat, 3 Jun 2017 06:43:25 +0000 (UTC) (envelope-from tim@kientzle.com) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id v536QTda003125; Sat, 3 Jun 2017 06:26:29 GMT (envelope-from tim@kientzle.com) Received: from [192.168.2.101] (192.168.1.101 [192.168.1.101]) by kientzle.com with SMTP id bwjkn4xkjjjvxtvx7ygw3zvw6e; Sat, 03 Jun 2017 06:26:29 +0000 (UTC) (envelope-from tim@kientzle.com) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: firefox/ rust failed to install on FreeBSD 12-CURRENT From: Tim Kientzle In-Reply-To: Date: Fri, 2 Jun 2017 23:26:29 -0700 Cc: FreeBSD current Content-Transfer-Encoding: quoted-printable Message-Id: <3348A21B-754F-41FE-A94D-C3F53AD691C8@kientzle.com> References: To: =?utf-8?Q?Jean-S=C3=A9bastien_P=C3=A9dron?= X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jun 2017 06:43:26 -0000 > On Jun 1, 2017, at 11:37 PM, Jean-S=C3=A9bastien P=C3=A9dron = wrote: >=20 > 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-74a1be11= 10b5d4d0.so >> gmake[7]: Leaving directory = '/usr/ports/lang/rust/work/rustc-1.17.0-src' >> *** Error code 1 >=20 > Hi! >=20 > 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. >=20 > 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#L1= 59 >=20 > 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#L3= 4 >=20 > to say: > BUILD_DEPENDS=3D cmake:devel/cmake \ > gtar:archivers/gtar >=20 > 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