pkgsrc-WIP-discuss archive

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

Re: Failures in pkgsrc-wip



Am 24.04.2005 um 13:59 Uhr +0200 schrieb Krister Walfridsson:
Does anyone know of a better way to obtain the output of 'perl
-MExtUtils::Embed -e ldopts'?

The Makefile is parsed a number of times during a build.

Ahh -- I didn't think of that!

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

Checked in.

Thanks for the clue,

        hauke

--
/~\  The ASCII Ribbon Campaign                    Hauke Fath
\ /    No HTML/RTF in email             Institut für Nachrichtentechnik
 X     No Word docs in email                      TU Darmstadt
/ \  Respect for open standards              Ruf +49-6151-16-3281


-------------------------------------------------------
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_ide95&alloc_id396&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