Date: Fri, 2 Jun 2017 08:37:03 +0200 From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <dumbbell@FreeBSD.org> To: freebsd-current@freebsd.org Subject: Re: firefox/ rust failed to install on FreeBSD 12-CURRENT Message-ID: <ee3bd3ba-af37-3e98-0461-1ab55107cd03@FreeBSD.org> In-Reply-To: <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com> References: <CALM2mEkajYaQ8NO-XOfXpPd78cSseAjwttnsB0547mcSnHMNQQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ee3bd3ba-af37-3e98-0461-1ab55107cd03>