pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Failures in pkgsrc-wip





On Sat, 23 Apr 2005, Hauke Fath wrote:

At 18:10 Uhr +0200 23.4.2005, Krister Walfridsson wrote:
wip/nnrpd
  warning: "eval "perl -MExtUtils::Embed -e ldopts"" returned non-zero
status

does your bulk build attempt to build wip/nnrpd on a system without perl?
If yes, that's noted in the TODO as a known issue.

Yes, the buil build start by nuking all packages in order to get a consistent starting pont.


The problem is caused by the following entry in INN's config.data file:

##  How do you get the PERL libraries?  This version of INN has Perl dynamic
##  loading support.  If you've set PERL_SUPPORT to DO, go back to your shell
##  and run 'perl -MExtUtils::Embed -e ldopts'.  Paste its output below.
#### =()<PERL_LIB       @<PERL_LIB>@>()=
PERL_LIB        @PERL_LDOPTS@

To substitute @PERL_LDOPTS@, I had to resort to

# How do we know we have perl? Catch22...
PERL_LDOPTS!=           eval "perl -MExtUtils::Embed -e ldopts"

in the pkg Makefile which of course conflicts with properly detecting an
installed perl.

Does anyone know of a better way to obtain the output of 'perl
-MExtUtils::Embed -e ldopts'?

I'm not sure if there are some magic in the buildlink and other .mk
files that can give you this information, but your approach does
only need a small modification to work when perl is not installed.

The Makefile is parsed a number of times during a build.  The first
time it only tries to find out the dependencies so that they can
be installed, so PERL_LDOPTS is not needed at this point; the file
will be parsed again after all dependencies (including perl) have
been installed.

So the only issue is the annoying (but harmless) error message when
perl is not installed.  The easiest way to get rid of it is to
send it to /dev/null, but it is probably better to use a construct
like:

  .include "../../mk/bsd.prefs.mk"
  .if (exists(${PERL5})
  PERL_LDOPTS!=           eval "${PERL5} -MExtUtils::Embed -e ldopts"
  .endif

   /Krister


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss



Home | Main Index | Thread Index | Old Index