From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cNIGIBsLFGUqNwAAG6o9tA:P1 (envelope-from ) for ; Wed, 27 Sep 2023 12:59:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cNIGIBsLFGUqNwAAG6o9tA (envelope-from ) for ; Wed, 27 Sep 2023 12:59:39 +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 16AF26287F for ; Wed, 27 Sep 2023 12:59:39 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=k5VUgxZq; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695812379; 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=euyFT8I+zp6BIhv8sKffIralqY7PIsVDhVQIH6pUTUc=; b=r55NJwUlg4BpM1bpVGux53K2yyPaTF+GsEdXrwqyWrt+i1HIlVYvcqbD9M+DJx69J4cAGL jU/C8Zx8hxivJFXtaj0zhilXePv1LeNMzKKZiU+OndSK27IYo50nMsCmxe7lHWpP7TV9p5 wfeFRc/6jkUjRPP1MURr2zfpg8RYtuK9SXvW/+c4iVaazoOHgSYAcjBvtaQIZzVuqJJDTu VNS6C7lRwEIjn0RCio0yW0siYNtT5FlsdE81i/oggoOTS1wtEAa9lEBRZtsAMGXu5SLENN GTTOPJauHfxVHoQ28buCXWdGEFtM2qwePfbf4EtP6MxCgwBYvRiONl3SLu7H3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695812379; a=rsa-sha256; cv=none; b=ZKIUKZ7uiqLOPdV29CJBln5tKnJXYdJPBCDMMY2gm89L0+KI6buzP42T3IuhFATjO9sstD 0WMcHYX07lIlQpnoBpDvLH8X5w8rnAll92qm42FwOjiWThNFwZaOKRr6Rg2g6m+7iYAyjs nX1nhC5vj92CPqh+/hRKD8m4VvQjMq8y28eLwLQJQSLEEqOrIjhU7wknFdN4FqrTIRzkT+ ZrioX7I/RIrm+VkxEsmU1k/PzfQ7Tt56J7QY+dpJ/Ju/mVuqN2oS0FxllffiAEvLGBF8Fj MtnH/NVl3h8w8eTfwJ+oe8IGMIvp+lLIoidaGsRVHEn1aO++/1VFgTUrr6/FLg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=k5VUgxZq; 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=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlSFn-00070X-P8; Wed, 27 Sep 2023 06:58:51 -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 1qlSFk-0006yv-4P for help-guix@gnu.org; Wed, 27 Sep 2023 06:58:48 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qlSFi-0000NG-4C for help-guix@gnu.org; Wed, 27 Sep 2023 06:58:47 -0400 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-5031426b626so17139673e87.3 for ; Wed, 27 Sep 2023 03:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695812324; x=1696417124; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=euyFT8I+zp6BIhv8sKffIralqY7PIsVDhVQIH6pUTUc=; b=k5VUgxZqXpi5VWaGRDIQNdVA9QdbIcR4WIIAj6vs0sxUgfjfKyFF6ULvOPb8bxRNxs L2tZLuVj0ljVbFjbB6ndyPeKJtx6VqZxwkXiTfMZxflpAh5pGoGkZyRuvNRttLD8WJmG IMeULwc2JbHMb3IlLhJbwabsLQPcgkyjGXUXZKp5tVb7oFQzRe45HlVPuHJyIYEB0dAe 2hL5SuayhYNWjY50PCQIgbaZ3N0kf6PJLhs4Ms0Av7tFuCj+Q4A1Ix6nd6de6iuENGlF Bnx6uxcGIBupVQp7MEVm1Ep9lyYxyuWe93sx5G95ZLhHjB6mOuDQQhfqnW5phMcBsje3 byWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695812324; x=1696417124; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=euyFT8I+zp6BIhv8sKffIralqY7PIsVDhVQIH6pUTUc=; b=VupAqG9HvDETUE+QnbqN0L46UErWfg+QtVOQSHROmRUT4pgnbPbWptBOX9yP5lV4O0 YUTn6X28zei/8OK3ohzMD4ANneO1505Lgaekc8oJfBNel2ozAWLzw3iRirfNrqARdD2d K4Ny8BUCXaEygEVifPsHH+URnxRHVHsBTy7d0UiPtIaDWpNyYPFQ5l/mqtl5XpEjGjAP zvVPn8TpwleQ++gl/nH96i0LF/Q1wD1r9I73d49qDNKNz8g0Uxk5iasBB+spjRrH39sB s4jBSj2vBKWSEhOKtpmXkRe064fZGni38tACCd/V8fuIGgJKVXU0HXpSuWm1s4Cd/Mv8 ocgA== X-Gm-Message-State: AOJu0YwXXtPzLn1INd6jCtu4Ml2MaDXVmxU7+PdqRLder+s3DvJJzuA+ RXZDd5MmAxNBOxnrE4tC5ttdS6E7X+zdMHT6vaBHBVAIYsQ= X-Google-Smtp-Source: AGHT+IEMMrJS7IxBzeimZ4zH31E58QwCPHotlw2oVdiMPTi5BdKkRrdtbPsNR0wWUYkK53wo3AQH68MRaSNbFWpOYkg= X-Received: by 2002:a05:6512:455:b0:501:bf37:1fc0 with SMTP id y21-20020a056512045500b00501bf371fc0mr1532112lfk.33.1695812323314; Wed, 27 Sep 2023 03:58:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Littlewood Date: Wed, 27 Sep 2023 11:58:32 +0100 Message-ID: Subject: Re: Development shell for diffutils does not appear to work - what am I doing wrong? To: Ekaitz Zarraga Cc: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=danielittlewood@gmail.com; helo=mail-lf1-x132.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.56 X-Spam-Score: -8.56 X-Migadu-Queue-Id: 16AF26287F X-TUID: YxrSm4lHyoD8 Hi Ekaitz, thanks for you reply! Reading the docs a second time, I think I did misunderstand the --development argument. The docs say > Cause guix shell to include in the environment the dependencies of the fo= llowing package rather than the package itself. and I took "dependencies" to mean "build dependencies". But perhaps it just means the runtime ones? So as you say, you could download the release tarball of diffutils and be able to run it, but not necessarily to build it from the source. I wonder why the flag is called "development" when it doesn't allow you to develop the package. Perhaps it refers to developing guix? I did exactly as you suggest yesterday and did manage to find all the dependencies (although I didn't manage to build it in the end, but I don't know the root cause yet). In fact the very next documented config option looks like it may be able to build autotools. They give an example for including the base packages: guix shell -e '(@ (gnu) %base-packages)' Perhaps there is a similar expression for importing everything in a specific build system? Since I was mixed up between building and installing, I also wonder whether this is what `guix build` is for. Or, equally, if I copy the definition of diffutils in base.scm and then do `guix shell -f my-diffutils.scm` maybe it will build itself? It certainly seems to have all the necessary information to do so. I'll test those options later, thanks! Dan On Wed, Sep 27, 2023 at 11:08=E2=80=AFAM Ekaitz Zarraga = wrote: > > > > > > ElenQ Technology > > > ------- Original Message ------- > On Tuesday, September 26th, 2023 at 08:08, Daniel Littlewood wrote: > > > > Hi guix help, > > > > 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. > > > > 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). > > > > 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 > 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