From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: librsvg & Rust Date: Sat, 23 Mar 2019 17:53:06 +0100 Message-ID: <87h8btwn0t.fsf@gnu.org> References: <20190220161027.17460.87383@vcs0.savannah.gnu.org> <20190220161038.3F54B2040C@vcs0.savannah.gnu.org> <87bm2ol0ud.fsf_-_@gnu.org> <875zswngzb.fsf@fastmail.com> <87y35g5qag.fsf@gnu.org> <877ed09s0a.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7jtR-00023F-96 for guix-devel@gnu.org; Sat, 23 Mar 2019 12:53:14 -0400 In-Reply-To: <877ed09s0a.fsf@fastmail.com> (Marius Bakke's message of "Fri, 15 Mar 2019 14:39:01 +0100") 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: Marius Bakke Cc: guix-devel@gnu.org Hi! Marius Bakke skribis: > Ludovic Court=C3=A8s writes: [...] >>> I wanted to ask about this: is Rust supported on all the platforms we >>> support at the moment? >> >> According to Efraim and Danny, we have a problem at the moment. >> Presumably that can be worked around? > > Right, Rust currently only works on x86_64. In order to get this branch > started, let us either: > > * Revert back to 2.40.20, or > * Conditionally use the new version on supported platforms > > For the latter, I imagine something along the lines of... > > (define-public librsvg > (if (string-prefix? "x86_64" (or (%current-target-system) > (%current-system))) > librsvg-2.44 > librsvg-2.40)) It would have to be a macro so that the conditional is evaluated in a context where (%current-system) and (%current-target-system) have the right value, like the =E2=80=98glibc=E2=80=99 macro we had until commit 2d546858b139e5fcf2cbdf9958a17fd98803ac4c. > Preferences? I have a slight preference for having the same librsvg on all platforms. So we could add 2.44 alongside 2.40, but keep using 2.40 until our Rust package works on all the platforms. That said, if the chances are that Rust won=E2=80=99t work on all 4 platfor= ms in the foreseeable future, the other option (upgrading on platforms where Rust is supported) may be preferable. Your call! :-) Thanks, Ludo=E2=80=99.