all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: Pierre Neidhardt <ambrevar@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: inxi and inxi-full
Date: Thu, 12 Apr 2018 23:13:53 -0700	[thread overview]
Message-ID: <87in8vws4e.fsf@gmail.com> (raw)
In-Reply-To: <8736zzps94.fsf@gmail.com> (Pierre Neidhardt's message of "Fri, 13 Apr 2018 11:22:55 +0530")

[-- Attachment #1: Type: text/plain, Size: 2980 bytes --]

Pierre Neidhardt <ambrevar@gmail.com> writes:

> I've reported the issue upstream:
>
> 	https://github.com/smxi/inxi/issues/143
>
>> * In the meantime, can't we just remove the offending line from the
>>   source?  This one:
>>
>>   $ENV{'PATH'} = 'sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin';
>
> As I initially suggested, this would work but we also need to change
> @paths to the Guix PATH values.

I see.  I think we should do that if upstream takes too long or if they
are not interested in changing their software.  It shouldn't be too hard
to surgically patch these lines of code - that's all we need to do,
right?

>> None of those paths are guaranteed to exist on GuixSD.  If we remove
>> that line, then won't Perl's "system" function use whatever PATH is set
>> in the environment?  If, in addition to removing that line, we wrap the
>> script with our wrap-program procedure, then we will have full control
>> over the PATH, and inxi should work.
>
> Why would we need to wrap the program?  With the above fix, then we are
> all good, aren't we?

If we do what you suggest, then all the "system" invocations should work
fine, but we'll still need to wrap the script so that it finds the
required Perl libraries.  For an example of how to do that, see the
definition of perl-image-exiftool in (gnu packages photo).

I'm actually a little surprised that the perl-build-system doesn't take
care of this automatically for us; we might want to fix that.  If you're
feeling ambitious, maybe you could submit a patch to add a phase to the
perl-build-system's %standard-phases that finds executable perl scripts
and wraps them automatically.

> Or is it to ensure that inxi does not see any other binary than the one
> in its wrapped environment?  Then that would prevent inxi-minimal to be
> "extended" by installing more programs.
>
>> The system, and users on the system, may have a lot of these programs
>> installed already.  For example, coreutils is certainly installed
>> somewhere.  It is likely that inxi's closure overlaps with some of those
>> already-installed tools.  Thanks to the functional software deployment
>> model that Guix follows, such overlap will automatically be
>> de-duplicated in the store.
>
> Take for instance headless systems: those won't need the full mesa stack
> to get information around their graphics capabilities.

If the average inxi user expects that they can add and remove programs
from their environment in order to get more or less info from inxi's
reports, then I wouldn't have much of a problem with letting inxi find
the programs dynamically at runtime.  However, if that isn't the case,
I'd still prefer a static composition over a dynamic one, for the
reasons I explained earlier.

You probably know about what inxi users expect than I do, since I've
never used inxi, so ultimately I'll defer to your judgment here.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2018-04-13  6:14 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-28 14:02 Package requests: fortune, gifsicle, inxi, uncrustify, unrar, vsftp, xss-lock Pierre Neidhardt
2018-03-28 15:27 ` Package request inxi Oleg Pykhalov
2018-03-28 17:26   ` Pierre Neidhardt
2018-04-11 16:17     ` Pierre Neidhardt
2018-04-11 17:23       ` Oleg Pykhalov
2018-04-11 17:29         ` Pierre Neidhardt
2018-04-11 17:34           ` Pierre Neidhardt
2018-04-11 18:14             ` Oleg Pykhalov
2018-04-12  7:15               ` Pierre Neidhardt
2018-04-12  7:24                 ` Pierre Neidhardt
2018-04-12  8:53                   ` Chris Marusich
2018-04-12  9:09                     ` Pierre Neidhardt
2018-04-11 17:42           ` Oleg Pykhalov
2018-04-12  5:29             ` Pierre Neidhardt
2018-04-12  8:25       ` Chris Marusich
2018-04-12  8:39         ` Pierre Neidhardt
2018-04-12 17:07           ` inxi and inxi-full Oleg Pykhalov
2018-04-12 17:19             ` Pierre Neidhardt
2018-04-13  3:41               ` Chris Marusich
2018-04-13  4:00                 ` Pierre Neidhardt
2018-04-13  5:11                   ` Chris Marusich
2018-04-13  5:52                     ` Pierre Neidhardt
2018-04-13  6:13                       ` Chris Marusich [this message]
2018-04-13  6:24                         ` Pierre Neidhardt
2018-04-14  6:22                           ` Pierre Neidhardt
2018-04-16  6:59                             ` Chris Marusich
2018-04-16  7:16                               ` Pierre Neidhardt
2018-04-16 10:26                               ` gnu: Add inxi (old Shell script version) Oleg Pykhalov
2018-04-16 10:31                                 ` Pierre Neidhardt
2018-03-31  5:15 ` Package requests: fortune, gifsicle, inxi, uncrustify, unrar, vsftp, xss-lock Pierre Neidhardt
2018-04-01 12:15   ` Pierre Neidhardt
2018-04-12 13:04 ` Ricardo Wurmus
2018-04-12 17:00   ` Leo Famulari
2018-04-12 17:13 ` Clément Lassieur
2018-04-12 17:17   ` Pierre Neidhardt
2018-04-12 17:23     ` Marius Bakke
2018-04-12 17:34       ` Pierre Neidhardt
2018-04-12 17:41       ` Clément Lassieur
2018-04-12 17:53         ` Pierre Neidhardt
2018-04-21 19:18     ` File sharing with GNU Guix (was: Re: Package requests: fortune, gifsicle, inxi, uncrustify, unrar, vsftp, xss-lock) Chris Marusich
2018-04-22  5:58       ` Pierre Neidhardt

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=87in8vws4e.fsf@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=ambrevar@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.