From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wAJXNvzxMWKzXwAAgWs5BA (envelope-from ) for ; Wed, 16 Mar 2022 15:19:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EGM7M/zxMWKGDwEAauVa8A (envelope-from ) for ; Wed, 16 Mar 2022 15:19:40 +0100 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 A67DD399F4 for ; Wed, 16 Mar 2022 15:19:40 +0100 (CET) Received: from localhost ([::1]:34404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nUUV1-00019Y-PY for larch@yhetil.org; Wed, 16 Mar 2022 10:19:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49846) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUUEB-0000Et-Lv for guix-devel@gnu.org; Wed, 16 Mar 2022 10:02:15 -0400 Received: from jpoiret.xyz ([206.189.101.64]:35160) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nUUE9-0002CZ-Sa for guix-devel@gnu.org; Wed, 16 Mar 2022 10:02:15 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 488AB1851E1; Wed, 16 Mar 2022 14:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1647439328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/DaLVcCE9uwAo5IbS4I5+t9b2sDfbClwMvUSvGvPpXs=; b=EDx9EozRrf2LzdN4KwwiHftFefuEsJqdX0Kz76lnqkFW0DCvlVe6cjY3ycHpTK/pvM0bqM Ue+NG+tZula4gISAQjmW0ZzhjP6otO244WUGhZhY6F7pBeXsU+gzVK+oWHtW+aJzgLRG0k tprFdhAWWwetlwV5nMkdohLEVmIkC2ul5knq7UKlHxpTJ4sMeMEEPo+UPuMRyl/Ga2ibUH XFTvECYw++rpjxZCzKBHBMRTIKfk5ntyX/K7/LinKvb22A4vDtooZML+WH5bCbr3bTVbvv epkW+SFn05X1cnf5oKw/p2t+aTpZh5v/ynOWT7Qw5l2unEizGbNhrq4arAEc4Q== From: Josselin Poiret To: David Arroyo , Pjotr Prins , Ryan Prior Cc: Guix Devel Subject: Re: Building a software toolchain that works In-Reply-To: <26d5e14e-97cf-4346-a434-9e73658495b7@www.fastmail.com> References: <20220314202659.oftyvymu7tjiycba@thebird.nl> <26d5e14e-97cf-4346-a434-9e73658495b7@www.fastmail.com> Date: Wed, 16 Mar 2022 15:02:07 +0100 Message-ID: <87tubyc7xc.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.997, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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=1647440380; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/DaLVcCE9uwAo5IbS4I5+t9b2sDfbClwMvUSvGvPpXs=; b=fJFMEO7E/TNUshoxhP+mmZdKuLAfMXb3wY36/8SsScQCLXYs3HlGPLQxudy+OL/I7cwc7r Qu53MYyFoP5WrwTi+ijTqv835UGzWDWjYEJo5XfOxgR9tBbvp6o5EjdZS4Wn+6LWwMbBFv UOgMZMtXYW1pMPX9+oZqqCSNg159WGxtpOOPl0pc+5jFLJ0ypih0ktM8LH/SGz5dvL8XkJ sUFL/2tLM23RnxHKBayxNsVfP+IOwQkyHQGSTByUBwMKVSi9H21IGpkyUaKtQRlnH6YGgM VGzwUay9bYuJWnRyNZK0rKAvR0Hp1fX0v0h2de2kaKWapqqLk24CJHdpatLHVQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647440380; a=rsa-sha256; cv=none; b=tAzI3CP1YpcBvTjB0onSsni3oaqcqlMpIQJZwM0VEscmlEim+F1GUMCO2y0h4dOZDYiaqG G2Ugecjb6O1gLbmstb+GUZGhQcwXdLjhppRdfmS+I+l6sxjW63/izdkndUFe+dcSraq418 nfX7UYe/wj22dstD75aqFHwuSJ+lvHNkk9TOeZTuvXCewfw6ADw0Sox4lE0Aut8yTX4qR+ KeDZ5bQ2fGp0oYu/dgZZoyJFLHzYHt7nocvbuSuT5a+4EwGSouc098UHe3JBeVfwGYraaE I6tNYN0F5L9LqZpuhuC6Un31Z1Fi2KSbRj2Cmj5ter/8qxwyLf8JAK+WjefpqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=EDx9EozR; dmarc=pass (policy=reject) header.from=jpoiret.xyz; 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: -5.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=EDx9EozR; dmarc=pass (policy=reject) header.from=jpoiret.xyz; 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: A67DD399F4 X-Spam-Score: -5.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: PIPrftACyveP Hello everyone, Let me chime in on a specific point. "David Arroyo" writes: > I recently used guix to make a one-line change to the dovecot-pigeonhole > package. Initially I tried to do this without guix, and had difficulties > using autoconf/automake. So instead, I made my changes, captured them with > `git diff`, and then used the `--with-patch` option of `guix install` to > build and install the modified version. It wasn't too hard, but it could > have been easier. It may have not been worth the effort in this case for > someone new to guix, but the nice thing is I could take the same steps > to modify any piece of free software for which a guix package exists, > regardless of the build system in use. I recently did the same to produce my LUKS2 patches for GRUB [1]! What I did was hack on the code to add what I needed, produce some patches with `git format-patch` then define --8<---------------cut here---------------start------------->8--- (define grub-efi-luks2 (package/inherit grub-efi (source (origin (inherit (package-source grub-efi)) (patches (cons* "0001-devmapper-getroot-Have-devmapper-recognize-LUKS2.patch" "0002-devmapper-getroot-Set-up-cheated-LUKS2-cryptodisk-mo.patch" (origin-patches (package-source grub-efi)))))))) --8<---------------cut here---------------end--------------->8--- With this, I could test build failures, but then I also ended up testing the resulting GRUB in a VM by installing guix with a config.scm that had the following: --8<---------------cut here---------------start------------->8--- (operating-system (bootloader (bootloader-configuration (bootloader (bootloader (inherit grub-efi-bootloader) (package grub-efi-luks2))) (target "/boot/efi") (keyboard-layout keyboard-layout))) ...) --8<---------------cut here---------------end--------------->8--- This made it extremely easy to test my changes! I don't think I would've written these patches without Guix's help. [1] https://lists.gnu.org/archive/html/grub-devel/2021-12/msg00076.html Best, -- Josselin Poiret