all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
To: ng0 <ng0@we.make.ritual.n0.is>
Cc: guix-devel@gnu.org
Subject: Re: syntax check before commit and patch: net-perl-psyc
Date: Tue, 14 Jun 2016 14:59:58 +0200	[thread overview]
Message-ID: <idj4m8wx6wh.fsf@bimsb-sys02.mdc-berlin.net> (raw)
In-Reply-To: <20160614123911.GC3999@khazad-dum>


ng0 <ng0@we.make.ritual.n0.is> writes:

> On 2016-06-14(12:10:05+0200), Ludovic Courtès wrote:
>> This reminds me that we should eventually update ‘perl-build-system’ to
>> have a ‘wrap’ phase similar to that of ‘python-build-system’.
>>
>> Thanks,
>> Ludo’.
>>
>
> Thanks for taking the time to look into it.
> Would you know if other than the source of perl-build-system, the section 7.2.6.1
> "Locale Data Compatibility Considerations" and the section above (and below?) in
> the manual could serve as an explanation to the authors question of
> "Why do you wrap such a simple language as perl?" ?
>
> I know it becomes more obvious once you look more into details, but maybe you
> have an explanation which wouldn't take so many turns as mine, or be too simple
> ("look at the source").

The wrapping is a necessity that stems from two causes:

- we install all packages (including Perl modules) to their very own
  prefixes under /gnu/store

- Perl (like Python, Guile, R, and other languages, but unlike C) looks
  up modules by name in a list of directories.

To ensure that a Perl script can find all modules it depends on we
create a wrapper that sets an environment variable such that it contains
the location of all Perl modules that are needed at runtime.  In a
traditional system that adheres to the FHS this is not required because
modules are installed into *one* location which happens to be among the
standard directories that Perl natively searches.

Without a wrapper users would need to do one of these two things:

- install Perl and all dependent modules into a profile (that’s what
  happens when we propagate packages); then set the module path
  environment variable to the shared directory for Perl modules in the
  profile.

- manually assemble a list of directories in /gnu/store and set the
  environment variable to it.  We do this with a wrapper instead.

~~ Ricardo

  reply	other threads:[~2016-06-15  7:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 14:07 syntax check before commit and patch: net-perl-psyc ng0
2016-06-14 10:10 ` Ludovic Courtès
2016-06-14 12:39   ` ng0
2016-06-14 12:59     ` Ricardo Wurmus [this message]
2016-06-14 14:56 ` [PATCH] " ng0
2016-06-15 13:11   ` Ludovic Courtès

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=idj4m8wx6wh.fsf@bimsb-sys02.mdc-berlin.net \
    --to=ricardo.wurmus@mdc-berlin.de \
    --cc=guix-devel@gnu.org \
    --cc=ng0@we.make.ritual.n0.is \
    /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.