unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Olivier Dion via <help-guix@gnu.org>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: Guix as a native-inputs ?
Date: Mon, 01 Aug 2022 18:05:22 -0400	[thread overview]
Message-ID: <87czdj1uxp.fsf@laura> (raw)
In-Reply-To: <874jyvofwl@nckx>

On Mon, 01 Aug 2022, Tobias Geerinckx-Rice <me@tobias.gr> wrote:

> As ( implies, it's a strange thing to do.  There might be a better 
> solution to whatever your unspecified problem is.

Here's my full use case.

I do dynamic binary instrumentation.  I basicaly insert call/jump at
runtime in programs for executing callback.  I use Guix for its workflow
extension (GWL) to produce scientific metrics for my research.  I also
use Guix to run binaries in a profile with debug symbols available.  The
latter case is a stress test to see if the instrumenter keep the
integrity of the instrumented software.

For example I want to instrument `ls' from coreutils.  So I would need
`coreutils' and `coreutils:debug'.  These _could_ be added to the
native-inputs of my package.  However, I also want to test
instrumentation on many packages (~50).  These other packages lack the
`:debug' output that is required by my tools.  Furthermore, I don't want
to add a very long list of packages to my native-inputs and maintain it.

So what I do is that I have a Guix channel inside my project.  Inside
that channel I define all the packages that I need with the debug output
added.  I can then use them for testing like so
`guix shell -L .guix my-git my-git:debug'.

If you think there's a better solution then I'm open to heard it.

-- 
Olivier Dion
oldiob.dev


      reply	other threads:[~2022-08-01 22:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01 18:45 Guix as a native-inputs ? Olivier Dion via
2022-08-01 19:42 ` (
2022-08-02 13:41   ` Olivier Dion via
2022-08-02 13:44     ` (
2022-08-02 15:36       ` Olivier Dion via
2022-08-02 16:06         ` Julien Lepiller
2022-08-02 17:10           ` Olivier Dion via
2022-08-02 18:09             ` Julien Lepiller
2022-08-03 15:51               ` Olivier Dion via
2022-08-01 19:43 ` (
2022-08-01 20:34 ` Tobias Geerinckx-Rice
2022-08-01 22:05   ` Olivier Dion via [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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87czdj1uxp.fsf@laura \
    --to=help-guix@gnu.org \
    --cc=me@tobias.gr \
    --cc=olivier.dion@polymtl.ca \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).