From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gLcKNkH/E2VfiQAAauVa8A:P1 (envelope-from ) for ; Wed, 27 Sep 2023 12:09:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gLcKNkH/E2VfiQAAauVa8A (envelope-from ) for ; Wed, 27 Sep 2023 12:09:05 +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 65BE346900 for ; Wed, 27 Sep 2023 12:09:05 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=LyAMUk1a; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=elenq.tech ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695809345; 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:dkim-signature; bh=u5Rm1khy/TjPPzdi5LfLroPruUvE6AlQip/8O3wuEZ4=; b=H6vrGARRsFmOdSrK+1uRhmsPLZ8mlLbMSnjcBPJCqbEV7NLN9VVyBTuIxm113GZPgR6MID wdlOcyURB9RFTLlcSW8O4fgeFiwMbZO2ARzhRAJFUQAaKQ9X3kVzKWzu9v39dQY2egldwb fV9xQecX/n3xRT2VcXC9RJXzaIP+CtygbQkH1GiZba1Sp/0Njm/vyf8zRP7LurxUUHyk84 PEm8nad0zFj+QFTAY/muDFHPefO/q6eoA0+YKRVPDOO/GF23zuv+yeh7e0/J3tWtPlCIPb ccqIV3AqqydxTsh8kH2FSlyGrEZYZtEDLlz/1VT1AeEQc1YuKeJWd0vyfqHVcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=LyAMUk1a; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=elenq.tech ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695809345; a=rsa-sha256; cv=none; b=EFW/fcmRrmlOZc75j8yE1zmyxoRjMFMsKNTDjyMSlN/xUUTXWnEHCIw8NtXHnPPOaZnr5c sV39mMmlwmvRXL1Nd+WFBAuee5EKs/2dueGbuSb0UnQ4Pf65yKfBsLGhSDykpK3dUzIdvk FpxeASZjzC5CLOM4AFaV7bYHvA3lpkzP8Qri+U0JQ5IvQg9uevT10Jc+SzrREudeOY6p0e KMUn8wq9eGl7pr/d9BNC7Sw5GkE9KA5kRGNO1V1hi2/791CZy8rx1wdmuW2KCzg8kbt76n 1n0nTtsslA7/l4HMH2Rv3Ek/ITHnmnRD6SQh83bSoLOgNMSuVzcFi+CT2I6r6w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlRT5-0005Jd-VA; Wed, 27 Sep 2023 06:08:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlRT1-0005Hl-Kx for help-guix@gnu.org; Wed, 27 Sep 2023 06:08:29 -0400 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qlRSu-00055U-BD for help-guix@gnu.org; Wed, 27 Sep 2023 06:08:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1695809296; x=1696068496; bh=u5Rm1khy/TjPPzdi5LfLroPruUvE6AlQip/8O3wuEZ4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LyAMUk1aBigPrcQhvKI1MXxMo9uOWcYnO0JF9ckxioZi0kuJ9o+8BSKA9Fr86laSg gs8Igxilli5lkloqYGKMgg9Iwb2rJtzvkqXfkKk48kb24A14xzjdXcXyekMqG8ix2/ YiKvuqY2nxsIcrsnC6AIlZFCk6vEe/Eu+3R6sp2I4uMnyJiuHJulC55KzOBIdqS9Y4 g+iNRKmG1yXIYoC2mETg9VKYX1Ir1/bUbdA0cL2IuA/lOq3cgi34VqzpGCwWVv5NEX TnP2kEw1sz+Pyt2Gpqqj7UgwVaoxUAnzEsN2GRrBLrtxCw1luQRwEY9Ngx16nv6BWq zIU/F4Q4Xcrqw== Date: Wed, 27 Sep 2023 10:08:05 +0000 To: Daniel Littlewood From: Ekaitz Zarraga Cc: help-guix@gnu.org Subject: Re: Development shell for diffutils does not appear to work - what am I doing wrong? Message-ID: In-Reply-To: References: Feedback-ID: 3263582:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=ekaitz@elenq.tech; helo=mail-4317.proton.ch X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.52 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 65BE346900 X-Spam-Score: -8.52 X-TUID: qr9h+7Wqa4cz ElenQ Technology ------- Original Message ------- On Tuesday, September 26th, 2023 at 08:08, Daniel Littlewood wrote: > Hi guix help, >=20 > I want to try out making a simple change to the program `diff`, which > is part of GNU diffutils: > https://packages.guix.gnu.org/packages/diffutils/3.8/ > I'd like to set up a dev environment, patch diff.c, rebuild it and try > out the new binary. Maybe install it globally later, but I'm not there > yet. > I cloned the diffutils repo from > https://git.savannah.gnu.org/git/diffutils.git, and in that directory > ran > `guix shell git vim nnn -D diffutils` (but I think it's just the -D > diffutils I'm having trouble with). I believe that the > -D/--development argument should produce a shell within which I can > build `diff`. > The README says that the first step is to run `./bootstrap`, but that > fails because of several missing packages. I don't have the full list > right now, but I think autoconf was one, and texi2pdf was another. >=20 > The packaging for diffutils clearly works (since I can install it), so > I wonder if it does something different from what I'm attempting? I > couldn't find the scheme file that defines diffutils, but I'm not sure > I'd be able to read it anyway (I'm really trying out guix for the > first time). >=20 > Thanks for reading, please let me know if I can provide more info. > Dan Dan, I don't think you are doing anything wrong. I don't know why but when doing `-D package` guix is often not adding all the development dependencies as it doesn't load autotools and related things to the shell. You have to add them by hand. Also, diffutils downloads a tar.xz which probably has the bootstrap step already done because it is considered a release source code. You are working from development code I expect, which probably needs some extra tools. What I would do: go adding them to the shell one by one as the build system complains until it doesn't complain anymore. They will probably be `texinfo`, `automake`, `autoconf`, `libtool` and maybe I'm missing something... If you add them as you go you shouldn't=20 leave anything out. Also, this is an interesting call. It might be cool to have a way to add those directly... I don't know what is best but probably with some kind of flag we should add all the deps from the build-system too. And also, have all the `autotools` in just one package because I always forget some of them. I may start another thread with that... Thanks for your question, it is a very valid one! It happened to me before, too, and it's pretty annoying. Hope this helps, Ekaitz