From: Carlo Zancanaro <carlo@zancanaro.id.au>
To: Daniel Littlewood <danielittlewood@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Development shell for diffutils does not appear to work - what am I doing wrong?
Date: Fri, 29 Sep 2023 14:23:45 +1000 [thread overview]
Message-ID: <87fs2xzjhv.fsf@zancanaro.id.au> (raw)
In-Reply-To: <CAFDSbVejffQfYCE1DgpyKBWtTt_b-EB3quH5nNYsfm2Ud=YwxA@mail.gmail.com>
Hi Daniel,
On Tue, Sep 26 2023, Daniel Littlewood wrote:
> 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.
There's a few emails in this thread about how to get your git clone working, but I thought it might also be helpful to mention a potentially easier workflow here.
The --development argument gives you an environment that is suitable for hacking on the source that "guix build --source" gives you. With that in mind, I just checked that this works:
$ tar xf $(guix build --source diffutils)
$ cd diffutils-3.8/
$ guix shell --development diffutils -- ./configure
... lots of output ...
$ guix shell --development diffutils -- make
... lots of output ...
Then you can change the source in the diffutils-3.8 directory and recompile it with "guix shell --development diffutils -- make".
If you want to install it to a profile later, you can use something like "guix install diffutils --with-source=path/to/diffutils-3.8/".
If you then want to upstream your changes, you can manually move your fixes into a git checkout.
Carlo
prev parent reply other threads:[~2023-09-29 4:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 8:08 Development shell for diffutils does not appear to work - what am I doing wrong? Daniel Littlewood
2023-09-27 10:08 ` Ekaitz Zarraga
2023-09-27 10:58 ` Daniel Littlewood
2023-09-27 12:43 ` Tobias Geerinckx-Rice
2023-09-27 13:12 ` Tobias Geerinckx-Rice
2023-09-27 16:25 ` wolf
2023-09-28 10:34 ` Daniel Littlewood
2023-09-29 4:23 ` Carlo Zancanaro [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fs2xzjhv.fsf@zancanaro.id.au \
--to=carlo@zancanaro.id.au \
--cc=danielittlewood@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.