From owner-freebsd-current@freebsd.org Sun Jun 4 07:15:17 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 9647FAFC77D for ; Sun, 4 Jun 2017 07:15:17 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5A5A16848A; Sun, 4 Jun 2017 07:15:17 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pf0-x242.google.com with SMTP id n23so17177745pfb.3; Sun, 04 Jun 2017 00:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Cva7Ceb/inCW0m+65QJQgEYyyD3mpHMFOp758TMZxFI=; b=r9I3cx4hkgklPSquyv3XmZL0k3u+H+aN9XGYCzkezYWummFp4Hs1cHStreu7bmHPGV 3IsuUYAkuPrD6sffa7GOi+1PiyvC/JvCVTSiZVrLsi2+N6qTFEcfCiye3CIrdLYRlpg3 VfqXXGcc/68v4YhaE3K+o5UuQyADIOaGscK51tgJ2kNqd1QdquVam4nO4RWcbQaOBsJM tJxvdKh6S0xdZcqkBD+sXtdYm8CX1pNoq5FMv4ZmdcgrVnMnp88FSOUZ1hybEsbzLScX 6hKP5yUjTaHziI3dGfHI2nadthaHJTV7PP3nBvb8bhY7eOciKm9j793WJm3EqS6dE7EY BxqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Cva7Ceb/inCW0m+65QJQgEYyyD3mpHMFOp758TMZxFI=; b=g9ugf5bOyx00atvK3YwE9RnM3lg+R4HuvWhQPJzhQOKOYZV32KhiI822V3tkar4/gt nG7pnZkE51SVyKujmtZV+l3yhytC75LtUKMB4yEgHh6nBiNaqhNfwbvSykeSaUawWmM3 iPRdGHI10uSIxZMyb0/y89Sx3QK/18f8VtdxiOfsv8euivNa26PeFdIxOlEL05m924HT 41AfT/TaDx47Pn98jlD9yjz4hD51mIn+dA7lSw76ec2RQGOqKPa1HBUJ7TrVaKqi1ob7 8yc1tor1dCtvtQ1Xov4DAsjMAtiIKJSXLsL6YJka9yHuWBEN2wnxRFKMP2LkVkqVR5DY BB0A== X-Gm-Message-State: AODbwcCiNYrqkXPAZ7YMmd4Z5WfoPtXUZaIUpc5BVuHtitdImh+0+4Ng gDp4/KMjnu9PEI+cVW9yqIZw3ec7jQ== X-Received: by 10.98.163.25 with SMTP id s25mr14152879pfe.217.1496560516881; Sun, 04 Jun 2017 00:15:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.168.79 with HTTP; Sun, 4 Jun 2017 00:15:16 -0700 (PDT) In-Reply-To: <3348A21B-754F-41FE-A94D-C3F53AD691C8@kientzle.com> References: <3348A21B-754F-41FE-A94D-C3F53AD691C8@kientzle.com> From: blubee blubeeme Date: Sun, 4 Jun 2017 15:15:16 +0800 Message-ID: Subject: Re: firefox/ rust failed to install on FreeBSD 12-CURRENT To: Tim Kientzle Cc: =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= , FreeBSD current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sun, 04 Jun 2017 07:15:17 -0000 thanks for the two great pieces of advice. Best, Owen On Sat, Jun 3, 2017 at 2:26 PM, Tim Kientzle wrote: > > > On Jun 1, 2017, at 11:37 PM, Jean-S=C3=A9bastien P=C3=A9dron > 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= "