From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wM3VCtnJlGJYLwEAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 15:42:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id qNi/CtnJlGJPXAAA9RJhRA (envelope-from ) for ; Mon, 30 May 2022 15:42:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9951A7FEA for ; Mon, 30 May 2022 15:42:48 +0200 (CEST) Received: from localhost ([::1]:52640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvffT-0004JW-Lw for larch@yhetil.org; Mon, 30 May 2022 09:42:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvfaA-0006p1-PY for guix-devel@gnu.org; Mon, 30 May 2022 09:37:22 -0400 Received: from mx1.riseup.net ([198.252.153.129]:46708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvfa7-0006T3-CS for guix-devel@gnu.org; Mon, 30 May 2022 09:37:17 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4LBc041y47zDr2J for ; Mon, 30 May 2022 06:37:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1653917828; bh=AsRqR1zAE2BxXPfotfAQ6RN1it65kjk3Ec5Ritpsjrg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=KdOT8v9WlxWuzRUX6qMDMrm60Km/dJdqiCjULhVAUok753j23cTQdHGmmXgBQVd4J R2JiMK+0JB6KzP68LpiBH9shunq7jTf2QzDHDlHQwhaXFXgel22lumihg/+Y9d3vT9 Z4N9NMlka/sZ23yKvoXIEyfPfBRwbbrTqx8MrSyc= X-Riseup-User-ID: 80D1A489F0323A56FF47908578CF8E701FD91A2911E4E84CE4AB7E523D3EB075 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4LBc031W3Rz5xgy for ; Mon, 30 May 2022 06:37:06 -0700 (PDT) Date: Mon, 30 May 2022 15:37:04 +0200 From: raingloom To: guix-devel@gnu.org Subject: Re: Building hexyl (a rust app) without cargo, with antioxidant-build-system Message-ID: <20220530153704.09ed86ee@riseup.net> In-Reply-To: References: <32ae0e474e295fa7f7052abd1bbb8053d2fddf16.camel@telenet.be> <36c1a8dcb363f8780b45156058ea606d0dd50854.camel@telenet.be> <547b56ea0a2a714029415385abaaed726fd02074.camel@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653918168; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=M2i61ZiZF1UJ9ewKBcWu+Iq7WT79hxmYxLHDigJwNyQ=; b=tm9wceEQd55zvvapPagPPZXRomFpN0kHjVPHV1SuqNMyKcoGWtXOyhNBB523Qml+KNNZCF kB5KkgTbrz6XUGZxL5AMieC0GHzWwl74fzkvf9oSeacHX826CES06j+D2VbCwRXY1FErII G7btHEtfEl8X/aFQ+96FL0MvRqyFAAY6Rb/XihPNQFekrVU+2oIowiVKX6D/wsyH4fVu8J 31zCLdKzTvqr3DHeUg+34EzPQH7tieno5JKzQM66yWXi/8+Rq7o807T5Owrlu36vqpRE0G uC/6ntREkIaGFUyX6LBKhXMX0Or/1VOj7VdkQBdYdBGUzOmz1++VhJQMwg81Dw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653918168; a=rsa-sha256; cv=none; b=sskaTBo4i45VtjKC7vBR8i7uc4uFxso3Zt6hRssQRMEFHSKzlma26Xe7L3kp54Bl3zprf2 0Ma7S7hy6W3V/H9eAfckyDzSh5pm2xjkz6xtifwLjpjMUpkkUT3XyYDZj5w/yEMEE6tA1D PG0sUnAAWKqmnPpskfdKHjedPQKqKqNzVtt+roJ3GWWzkUg62I5ZsvMB211Ryp83KoNPIJ W9dxuXgJ/Zqk36Lz4r+zipQNy8CaPilAVLvWpQQ4TgIKVQmO5Dc8eP7cv7CGTBy+KKMxNc Y/IiGGf3typHv9wzeWp0MJ3Fn25EmtC3n1zfD16IBu1jURyfQcAJONFKBX3BHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=KdOT8v9W; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=KdOT8v9W; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9951A7FEA X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: AzJjmJn2SHkJ On Mon, 30 May 2022 11:23:21 +0300 Efraim Flashner wrote: > On Sat, Apr 02, 2022 at 05:18:55PM +0200, Maxime Devos wrote: > > Hi, > >=20 > > antioxidant-build-system can now be used for some =E2=80=98real=E2=80= =99 software > > -- it compiles 'hexyl'. To test, download > > (commit: > > d09fd93750ac6d77e0c85623286b45cf5c3b055b) and run > > "guix build -L . -f guix.scm" and then > >=20 > > $ cat guix.scm | /gnu/store/[...]-hexyl-0.8.0/bin/hexyl =20 > > > lots of coloured hex output =20 > >=20 > > Some features of antioxidant-build-system: > >=20 > > * no copying source code of dependencies > > * no compiling dependencies again -- old artifacts are reused > > * all dependencies use the usual package input system > > (native-inputs, inputs, propagated-inputs) > >=20 > > Limitations: > >=20 > > * no support for linking to arbitrary shared libraries yet > > (only rust deps) > > * makes a few assumptions on the source layout (can be fixed > > by using more info from Cargo.toml) > > * no tests > > * no cross-compilation yet > > * no shared libraries (just replacing 'rlib' by 'dylib' causes > > problems) > > * code is a bit messy > > * no cdylib yet (probably needed for librsvg) =20 >=20 > Something that might help with that would be to also include the > source of the crate somewhere in the output. Then at the worst we > could just put the rust inputs of librsvg as regular inputs and let > librsvg do its own special build thing. We'd then still keep the > build dependency tree you've got working. >=20 >=20 Maybe put the source in an extra output, not the main "out" one. Splitting them up later for size reduction will be much more difficult than doing this from the get-go.