'make upgrade' deletes /usr/bin/perl5

walt wa1ter at myrealbox.com
Tue Jan 25 20:56:09 PST 2005



On Wed, 26 Jan 2005, Joerg Sonnenberger wrote:

> No script should depend on /usr/bin/perl5. That's just wrong.
> Check why the port does include such a setting, it should just
> use /usr/bin/perl, if it really has to.

Okay, the Makefile for glib2 has this line:
USE_PERL5=      yes

In /usr/ports/Mk/bsd.port.mk I see these lines:
. if ${PERL_LEVEL} < 500600
PERL5=          /usr/bin/perl${PERL_VERSION}

And in our DFly override:
/usr/share/mk/bsd.port.mk:PERL_LEVEL?=          5

But look at this definition:
/usr/ports/Mk/bsd.port.mk:# PERL_LEVEL  - Perl version as an integer
of the form MNNNPP

So it looks to me like our /usr/share/mk/bsd.port.mk should be
defining PERL_LEVEL as six digits instead of one (?)

The result is that /usr/local/bin/glib-mkenums contains this:
#!/usr/bin/perl5 -w
and the same is true for FreeBSD-CURRENT.






More information about the Bugs mailing list