From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: librsvg & Rust Date: Wed, 06 Mar 2019 16:46:16 +0100 Message-ID: <875zswngzb.fsf@fastmail.com> References: <20190220161027.17460.87383@vcs0.savannah.gnu.org> <20190220161038.3F54B2040C@vcs0.savannah.gnu.org> <87bm2ol0ud.fsf_-_@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:33528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1YkP-0004FJ-HD for guix-devel@gnu.org; Wed, 06 Mar 2019 10:46:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1YkO-00035W-8n for guix-devel@gnu.org; Wed, 06 Mar 2019 10:46:21 -0500 In-Reply-To: <87bm2ol0ud.fsf_-_@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hello Guix! > > guix-commits@gnu.org skribis: > >> mbakke pushed a commit to branch staging >> in repository guix. >> >> commit ec47c07d0690653be35a75b346f3c3548a3e71d4 >> Author: Marius Bakke >> Date: Wed Oct 24 15:26:10 2018 +0200 >> >> gnu: librsvg: Update to 2.44.12. >>=20=20=20=20=20 >> * gnu/packages/gnome.scm (librsvg): Update to 2.44.12. >> [arguments]: Replace patching phases with custom variants. Delete f= ive new >> tests. >> [native-inputs]: Add RUST-1.27 and RUST-1.27:CARGO. > > This change was bound to happen since upstream switched to Rust, but > it creates a few issues. > > First, that adds Rust to the base graphical applications, which > significantly increases build times and size: > > --8<---------------cut here---------------start------------->8--- > $ guix size librsvg | tail -1 > total: 207.2 MiB > $ guix size librsvg rust | tail -1 > total: 1052.9 MiB > --8<---------------cut here---------------end--------------->8--- > > Perhaps the size issue can be somewhat mitigated by adding a =E2=80=9Clib= =E2=80=9D > output to the Rust package, but even then it would probably still be an > issue. Librsvg does not depend on Rust at run-time, so the closure size should be similar. However I notice it has a 129MiB (!!) librsvg-2.a, which should be removed. I will do that later. > Also, is the new librsvg API-compatible with the old one? IIUC it still > provides a C API, right? Does guile-rsvg still work, for example? I have not noticed any regressions since the switch. The guile-rsvg tests pass, at least! > What do other distros do? Debian kept =E2=80=98librsvg-c=E2=80=99 around= , primarily so > that architectures where Rust isn=E2=80=99t supported yet could still wor= k: > . I wanted to ask about this: is Rust supported on all the platforms we support at the moment? While depending on Rust for GTK/GNOME is unfortunate, I do think it's inevitable. By the way, the next version of librsvg will require Rust 1.33 or thereabouts. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlx/60gACgkQoqBt8qM6 VPqY/AgAh2I3QPqx4TRFLfqiAXw9z5YgNOnorTxkXKVMpG5HUwA5HcjaU1fmZnPl veIaNgxpTiY3oQcmB/ckVwX76e/0sWesMiFopoR2HKqEJhESZ5ywNlcg7bEOaeba X47l05fPgdtDdFxSfni0GaFChPOQ1P74ehQEUaTAnA1IVxjnwQhtGS7UBlvP6xih +O7fVZdR622ZnZxFlsqBhTR5/bQJ9xGJe0ZH53kCLWN89uXgbKD6RvBcr7kYdHxk xOxJZmYB4VGBuP5HUylhGO0PoSmqWVOqh5nvawqmlCWTfSEtSD0Ke3CLjJcQz1Iu S/poxD3hM3kinOQwzsx6r7oiK/skuQ== =TpiK -----END PGP SIGNATURE----- --=-=-=--