From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4IJbLbS2TWKj7gAAgWs5BA (envelope-from ) for ; Wed, 06 Apr 2022 17:50:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EFeLJrS2TWIbagAAG6o9tA (envelope-from ) for ; Wed, 06 Apr 2022 17:50:12 +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 4994A8480 for ; Wed, 6 Apr 2022 17:50:12 +0200 (CEST) Received: from localhost ([::1]:38526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nc7v7-0008N9-QP for larch@yhetil.org; Wed, 06 Apr 2022 11:50:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nc7ug-0008Mm-A6 for guix-devel@gnu.org; Wed, 06 Apr 2022 11:49:42 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:48635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nc7ue-0006FQ-Dc for guix-devel@gnu.org; Wed, 06 Apr 2022 11:49:42 -0400 Received: from hermia.goebel-consult.de ([87.176.128.230]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MStGi-1nQc8x07UE-00UMEP; Wed, 06 Apr 2022 17:49:33 +0200 Received: from [192.168.110.2] (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 781875F535; Wed, 6 Apr 2022 17:49:40 +0200 (CEST) Message-ID: <6d712d02-db4f-366c-3d44-5609b103a971@crazy-compilers.com> Date: Wed, 6 Apr 2022 17:49:30 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US To: Maxime Devos , guix-devel@gnu.org References: <32ae0e474e295fa7f7052abd1bbb8053d2fddf16.camel@telenet.be> <36c1a8dcb363f8780b45156058ea606d0dd50854.camel@telenet.be> <547b56ea0a2a714029415385abaaed726fd02074.camel@telenet.be> From: Hartmut Goebel Organization: crazy-compilers.com Subject: Re: Building hexyl (a rust app) without cargo, with antioxidant-build-system In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:C2uyvlnzbwFyQleYAVGPrXtrTp7S5737g4HnUtpAS/H6hhYUOO/ VIGExoZMzWi6p1UgBMbjdlaf0QXZH1uObSLhMhKa8yQ/yijrVG8s8F0hlDybNV/IGOtNo+2 0+mCpYrqEW0PObIi2Kwgk+dWZV8H+cHeq1ipxMiwNKTrs2QgP1dWJWbgTy/Uvo6vbTpmeZF fYab3rLicqoSH6VCI58UQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:ZFgClIu3kIM=:tsJ4nWlsGxUBGAojS0YlYe p0kpJMkV635uTpw2Gqgd2Z/7kezGg/IfF/GdIi+jJ7Ny4Gp5swZithS+qs4ADj2GbMIoz2LYm FKnuFBLlSTft6a1R+KY3irb60XDmGDWvfEo1lJkRqDkFkIIIMNTilzjK3T2lvGpRk2bQtyCsH rRIUVVycQHDwgJhVVmpSmDaTdrC9gH5XUa9W9vXe0txvi7IU8N0V0SeP5fN/30bc72W0ivMwu 8ZsfQepQ+/mcnMbMHZZ9DHJq9sjKveoDp0UBaPb64pnicy/YaAmC402OOnqkEIYLSTI+mi1KZ JrZO8Sult6HCOBP0uew+9XAWZ5k4kIv4ZADVvBLIv3obDW7QPttkEh86yideO83p2TMynffPu TdWMsBs/KTFcScX/fxRYfQtLCH4bZf7aOo4rxuBjS0KOuy2pKdL1Id9MiwDxnRcwfegP3AzT7 ZSa3hcuXueKcKZpR+Z1MIc72jnPN98cFNDhv0pjlQnez22Gs2/HAy8cdvzrP1OVDpDNiQpux0 ChzqhD1N2LrnR3gNvS9bn/Yg5LhnbY8MIIwj1FlTrI8II31LwwNAseEL3FUy2LQLf/MI+tFLO hSbQ1V0kScInNM2LcQ7aQS93LtrQl+FNDbiUPkyhv7LOgyck6JeKOmI82HWoYGOvzUSwv/0rR Z6XWUlt6Ihj4KiMv6l2DAjcLzTYxVyhP6OWyt/Mp1iJ6RQY/P9jxNTYbjVAfskI1HMN0u1GS6 4x7KUjs5Mg0dlpcq Received-SPF: none client-ip=212.227.17.13; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Cc: Martin Becze 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=1649260212; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=e94JBlZDe0JVnBJo18WGRKBD0lpTEtbYKiOgWbX0m48=; b=fuzHnmrnBNPjdXdVVJ6nLwCs064tsPdfuYyaI2BKVHW4QP6kWQhpVQDMiJDFNH7PkUXMq4 9vTSYw1n7x87TfVZEik79YARSfhr76xndDumPkb4KCnxVKjYl/b60dOxpJPvTjXAYHBs30 Udu4/6ybcNr8FU2Jt/gfUzL4JuZfCoZKM0JROGztGwiBpn+oZUHVERPY4iwpm/zWZ6aOVa SqRjsGtcifcCrrGT80V3k56qTCl9wnhluHWP6DOJ/u/3S6QlxAPBMTfW+kXZiu1N9fnP3A Gbcxv4VoxwMNJQQyu9h8MvAy002VFVVjxY2Bv5jSB++nRwtpRzpNbh/dR2BbYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649260212; a=rsa-sha256; cv=none; b=m+EEC0rMfCDToTsDdR+vj05Ace1zhvdmwRrrf0dIV6VT9Te891QnSk5QFsUhOxhNl9McYh +b7HR8CPhJQtef+c0aEJRBtuZEmjNKSL+izOCXmM/k8+CXbvfhsIbFskUvFQeK0tjfucyX NhDpTb4Y1oD/2KRkeFQ1WMA/zv6QBJkBiF5F+fbYXXx23uh4RtWUSPZe4C0N9sLkZEEhoX sUmWlU00kOd9s6HK2BJb74Zt++K9hy5wVKZ3mkzKr9QXCZNB+cbXKXmC6i6+o3JNhOzuaA +mM3CF2XYf+sXo9l7nbwJBnNHTrb/0K0mzNZ/7F9CIh+xseYnSyLQTxTYFVkrg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 4994A8480 X-Spam-Score: -3.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: kO+6fShCQ8b5 Am 05.04.22 um 18:10 schrieb Maxime Devos: > Some other improvements that weren't announced previously: Wow! Impressive! I'd be eager to tr it with sequoia-openpgp. Please drop me a note when you think your work might be able to build that beast. > * Package definitions can request non-default features to be built > anyway. > > A difference from cargo-build-system: features are set in the > package of the rust crate, not the package using the rust crate. How is this intended to work? Package 1 has features AAA (= default) and BBB. So a .rlib is build for each feature (package1-AAA.rlib, package1-BBB.rlib) Or will one need to define two guix packages (package1+aaa and package1+bbb) and make the build-system build the respective feature? I personally would prefer the former. Thus package2 would pick up the pre-compiled rlib for the respective feature. Rational: If there are more features to be combined, the number of packages to be build can a order of square. So defining all these packages becomes a burden quickly. This is a computer's job :-) The build-system could easily build all combinations. suffixing each rlib with a short hash over the feature names, -- Regards Hartmut Goebel | Hartmut Goebel | h.goebel@crazy-compilers.com | | www.crazy-compilers.com | compilers which you thought are impossible |