unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56144: perl-mail-spf package installs, but does not run.
       [not found] <c5ea6353-0b51-97b4-95ce-64ffa18ff489.ref@yahoo.com>
@ 2022-06-22 12:12 ` Eduard Budulea via Bug reports for GNU Guix
  2022-06-23 12:24   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 1 reply; 2+ messages in thread
From: Eduard Budulea via Bug reports for GNU Guix @ 2022-06-22 12:12 UTC (permalink / raw)
  To: 56144

Hello all,

I am trying to have a guix system that has exim with spf validation 
(sadly the exim that is packaged with guix has spf disable) and I am 
trying to run the external tool spfquery.

spfquery binary is in the perl-mail-spf package.

The package builds and deploys.

But when when I try to run it, I get:

Can't locate Error.pm in @INC (you may need to install the Error module) 
(@INC contains: 
/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/site_perl/5.34.0/x86_64-linux-thread-multi 
/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/site_perl/5.34.0 
/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/5.34.0/x86_64-linux-thread-multi 
/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/5.34.0) 
at /run/current-system/profile/bin/spfquery line 335.

BEGIN failed--compilation aborted at 
/run/current-system/profile/bin/spfquery line 335.

If I add all its dependencies to packages and populate the PERL5LIB 
environment variable with the paths to the needed libraries from 
/gnu/store then it works.

So it is basically a packaging problem.

I have tried to move the dependencies from input to input-propagated, 
but got the same result.


Any ideas?

Thanks.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#56144: perl-mail-spf package installs, but does not run.
  2022-06-22 12:12 ` bug#56144: perl-mail-spf package installs, but does not run Eduard Budulea via Bug reports for GNU Guix
@ 2022-06-23 12:24   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-06-23 12:24 UTC (permalink / raw)
  To: Eduard Budulea; +Cc: 56144

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

Hi Eduard!

Eduard Budulea via Bug reports for GNU Guix 写道:
> I have tried to move the dependencies from input to 
> input-propagated,
> but got the same result.

Even if that did work, installing perl-mail-spf would then also 
install these other perl-* packages — no better than a traditional 
distro.  Avoid propagation wherever possible.

Instead, you should ‘wrap’ the spfquery executable so that 
PERL5LIB is correctly set when it's invoked, without polluting the 
user's profile.

Look at the ‘dirvish’ package for an arbitrary but seemingly sane 
example.

Kind regards,

T G-R

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-23 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <c5ea6353-0b51-97b4-95ce-64ffa18ff489.ref@yahoo.com>
2022-06-22 12:12 ` bug#56144: perl-mail-spf package installs, but does not run Eduard Budulea via Bug reports for GNU Guix
2022-06-23 12:24   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/guix.git

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).