From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: 77 Rust Crates, fluid, roboto-font, libpsyc rust bindings Date: Wed, 4 Jan 2017 12:39:33 +0100 Message-ID: <20170104123933.6323991a@scratchpost.org> References: <20170103233642.3181-1-ng0@libertad.pw> <87vatv13ex.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOjv5-00084L-DH for guix-devel@gnu.org; Wed, 04 Jan 2017 06:39:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOjv2-0000vL-Ca for guix-devel@gnu.org; Wed, 04 Jan 2017 06:39:51 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:40550) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOjv2-0000uU-5k for guix-devel@gnu.org; Wed, 04 Jan 2017 06:39:48 -0500 In-Reply-To: <87vatv13ex.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> 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: ng0 Cc: guix-devel@gnu.org Hi ng0, > > For those I checked (like rust-openssl-sys) left me in confusion. Does our cargo build-system just build nothing? Most Rust libraries are installed as source code (similar to C++ templates which are also installed as source code). The current Guix master cargo build system doesn't build anything. On the other hand, my WIP v2 build system does build the libraries. But that's not because it installs the stuff it built (it shouldn't - it should install the source code), it's just to make it easily possible to find out what dependencies are missing and whether it's the correct version of the library (e.g. working in Rust stable). Is builds in the "build" phase AND in the "check" phase in order to find out which dependencies are required for the library and which are required for the tests only. > Are all of these libraries? rust-openssl-sys contained nothing, but rust-openssl-sys:src had all the data. Yeah, David added a "src" output that contains the source code. My WIP v2 build system doesn't do that yet since I have ~5000 lines of existing rust package recipes I'd have to update - and I'd rather get everything to work first and then drop all my Rust packages and recreate them. Keep in mind that if you want to use my WIP v2 build system you also have to either (1) patch guix/build-system/cargo.scm not to do the src output or (2) patch guix/build/cargo-build-system.scm to do the src output. Please be advised that it's not finished yet - that's why it's marked WIP and not merged :) This is all very much work-in-progress. But your Rust package recipes without dependencies probably won't change later. So those are fine. The others - ehhh don't know yet. For example it's not clear yet to me whether we need propagated-inputs for source libs. I think we do. Right now I'm working on untangling circular dependencies manually - probably have to talk to upstream some more. (Sigh... why do people so often create circular dependencies? Don't they feel icky about it?)