From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: Re: rust (build system) deficits Date: Mon, 9 Mar 2020 10:26:01 +0100 Message-ID: <192815e6-7d83-2ef2-1f68-4ae3e0cce04e@crazy-compilers.com> References: <4F4B169B-8A25-440C-8A29-DC39DC94814F@asu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56923) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBEfo-0003or-S4 for guix-devel@gnu.org; Mon, 09 Mar 2020 05:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBEfn-0003rA-Pi for guix-devel@gnu.org; Mon, 09 Mar 2020 05:26:08 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:57416) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBEfn-0003qH-KB for guix-devel@gnu.org; Mon, 09 Mar 2020 05:26:07 -0400 In-Reply-To: <4F4B169B-8A25-440C-8A29-DC39DC94814F@asu.edu> Content-Language: en-US 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-mx.org@gnu.org Sender: "Guix-devel" To: John Soo Cc: Guix-devel Am 08.03.20 um 21:10 schrieb John Soo: > Hmm. Can you elaborate more on =E2=80=9Cnot able to build non-trivial r= ust applications=E2=80=9D? I'm working on packaging sequoia-openpgp.org. This requires nettle-sys, a FFI to nettle. nettly-sys "optionally" requires "nettle-src". I added a phase to "nettle-sys" to remove the "optional" dependency. nettle-sys also requires bindgen. A second dependancy is "sequoia-openpgp", which requires rhe lalrpop parser generator for building. Now when building `sequioa-sqv`, I need to add all these dependencies aga= in: - nettle-src, since it is "optional" for nettle-sys - and the phase was not executed. - bindgen, since it is required to build nettle-sys - lalrpop, since it is required for building sequoia-openpgp > Patching a library Cargo.toml seems like an excellent job for source pa= tches or snippets. Quite some packages change Cargo.toml in a phase, e.g. rust-openssl-0.7. Thus I assumed, this is the way to go. --=20 Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |