Skip site navigation (1)Skip section navigation (2)
Date:      11 Jul 2002 15:42:49 -0600
From:      Eric Anholt <eta@lclark.edu>
To:        current@FreeBSD.ORG, ports@freebsd.org
Subject:   Re: don't know how to make /usr/X11R6/bin/ucs2any.pl. on v.recen t -CURRENT when trying to build ports/x11/XFree86-4
Message-ID:  <1026423770.527.149.camel@anholt.dyndns.org>
In-Reply-To: <20020710173417.48052.qmail@web11402.mail.yahoo.com>
References:  <20020710173417.48052.qmail@web11402.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-G4Ph01dbrVRNr2vCRUgB
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2002-07-10 at 11:34, Shizuka Kudo wrote:
> --- "Thyer, Matthew" <Matthew.Thyer@dsto.defence.gov.au> wrote:
> > make: don't know how to make /usr/X11R6/bin/ucs2any.pl. Stop
> > *** Error code 2
> > 
> > --
> 
> Try:
> 
>   build ports/lang/perl and set env PERL to /usr/local/bin/perl

The X ports are failing for a lot of people on -current because of a
lack of perl.  Most of the ports use perl in building as part of their
imake use.  I've added USE_PERL5 to imake-4's makefile locally, but it
seems to incorrectly detect the /usr/bin/perl wrapper as a functioning
perl installation.  Shouldn't USE_PERL5 depend on ${LOCALBASE}/bin/perl
on -current rather than just the existence of a binary called "perl" in
the path?

Before the patch:
%ls /usr/local/bin/
%/usr/bin/perl -pi -e "s|asd|sdf|g" test
perl: Perl is not installed, try 'pkg_add -r perl'
%make
===>  Extracting for XFree86-4.2.0_1,1
>> No MD5 checksum file.
===>   XFree86-4.2.0_1,1 depends on shared library: Xft.1 - not found
===>    Verifying install for Xft.1 in
/usr/ports/x11/XFree86-4-libraries
===>  Extracting for XFree86-libraries-4.2.0_2
>> Checksum OK for xc/X420src-1.tgz.
>> Checksum OK for xc/4.2.0-xlib-i18n-module.patch.
>> Checksum OK for xc/4.2.0-libGLU-bad-extern.patch.
===>   XFree86-libraries-4.2.0_2 depends on executable: imake - not
found
===>    Verifying install for imake in /usr/ports/devel/imake-4
===>  Extracting for imake-4.2.0_1
>> Checksum OK for xc/X420src-1.tgz.
===>   imake-4.2.0_1 depends on executable: perl5.6.1 - found

-- 
Eric Anholt <eta@lclark.edu>
http://people.freebsd.org/~anholt/dri/


--=-G4Ph01dbrVRNr2vCRUgB
Content-Disposition: attachment; filename=useperl5.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; name=useperl5.diff; charset=ISO-8859-1

Index: Mk/bsd.port.mk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.418
diff -u -r1.418 bsd.port.mk
--- Mk/bsd.port.mk	5 Jul 2002 09:14:53 -0000	1.418
+++ Mk/bsd.port.mk	11 Jul 2002 21:40:30 -0000
@@ -1026,8 +1026,13 @@
 PERL5=3D			${LOCALBASE}/bin/perl${PERL_VERSION}
 PERL=3D			${LOCALBASE}/bin/perl
 .if defined(USE_PERL5)
+.if ${OSVERSION} >=3D 500036
+BUILD_DEPENDS+=3D	${LOCALBASE}/bin/perl${PERL_VERSION}:${PORTSDIR}/lang/pe=
rl5
+RUN_DEPENDS+=3D	${LOCALBASE}/bin/perl${PERL_VERSION}:${PORTSDIR}/lang/perl=
5
+.else
 BUILD_DEPENDS+=3D	perl${PERL_VERSION}:${PORTSDIR}/lang/perl5
 RUN_DEPENDS+=3D	perl${PERL_VERSION}:${PORTSDIR}/lang/perl5
+.endif
 .endif
 .endif
=20

--=-G4Ph01dbrVRNr2vCRUgB--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1026423770.527.149.camel>