Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2000 16:27:31 +0900 (JST)
From:      Koji Mori <mori@tri.asanuma.co.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/20835: Errno.pm can't be install
Message-ID:  <200008250727.QAA04668@kurishna.tri.asanuma.co.jp>

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

>Number:         20835
>Category:       gnu
>Synopsis:       Errno.pm is lost in perl system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 25 00:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Koji Mori
>Release:        FreeBSD 4.1-STABLE i386
>Organization:
Techinical Reserach Institute, Asanuma Corp., Takatsuki, Japan
>Environment:

	FreeBSD kurishna.tri.asanuma.co.jp 4.1-STABLE FreeBSD 4.1-STABLE #33: Fri Aug 11 12:03:18 JST 2000     mori@kurishna.tri.asanuma.co.jp:/opt/usr/src/sys/compile/KOTONE  i386

>Description:

	FreeBSD 4.1 has no "Errno.pm" the Perl module.

	On the original Perl5.005_03, "Errno.pm" is generated dynamically
	in installation.  But on our FreeBSD system, "Errno.pm" is not
	generated and not installed, after "make buildworld" and "make
	installworld".  Because the Makefile for perl on FreeBSD is not
	perfect.

	I added some code to Makefile, and my local system has installed
	"Errno.pm" as "/usr/libdata/perl/5.00503/mach/Errno.pm".
	My code is not 5-current's approach, but 4-stable's scheme.

	If this problem is fixed, maybe devel/p5-Errno in the ports collection
	will be not necessary.

>How-To-Repeat:

	This problem is on FreeBSD 4 and 3 with perl5 system.

>Fix:

	To fix, patch the follow code to "src/gnu/usr.bin/perl/perl/Makefile",
	and make buildworld and installworld.

	This patch is for  $FreeBSD: src/gnu/usr.bin/perl/perl/Makefile,v 1.27.2.1 2000/06/04 23:19:44 ache Exp $

--- Makefile.old	Thu Aug 24 21:36:11 2000
+++ Makefile	Thu Aug 24 21:40:17 2000
@@ -86,16 +86,17 @@
 
 .for I in ${NONXS_EXT}
 ext/${I:H}/Makefile: links ext/${I:H}/Makefile.PL cflags lib/Config.pm
-	mkdir -p ${.OBJDIR}/lib/auto/${I:H} ;\
 	@cd ext/${I:H} ;\
 	miniperl -I${.OBJDIR}/lib Makefile.PL ${MAKEMAKER_ARGS} \
-		INST_LIB=${.OBJDIR}/lib/auto/${I:H} \
-		INST_ARCHLIB=${.OBJDIR}/lib/auto/${I:H}; \
+		INST_LIB=${.OBJDIR}/build/${I:H} \
+		INST_ARCHLIB=${.OBJDIR}/build/${I:H}; \
 	make -B config PERL_SRC=${.OBJDIR}
 
 lib/auto/${I}: links ${PROG} ext/${I:H}/Makefile
 	@cd ext/${I:H}; \
-	make -B all LINKTYPE=nonxs PERL_SRC=${.OBJDIR}
+	make -B all PERL_SRC=${.OBJDIR}
+
+all:	lib/auto/${I}
 
 NONXSS+=	lib/auto/${I}
 .endfor
@@ -131,6 +132,12 @@
 .for I in ${DYNAMIC_EXT}
 	@cd ${.OBJDIR}/ext/${I:H} ;\
 	make -B install \
+		INSTALLPRIVLIB=${DESTDIR}/usr/libdata/perl/5.00503 \
+		INSTALLARCHLIB=${DESTDIR}/usr/libdata/perl/5.00503/mach
+.endfor
+.for I in ${NONXS_EXT}
+	cd ${.OBJDIR}/ext/${I:H} ;\
+	@make -B install \
 		INSTALLPRIVLIB=${DESTDIR}/usr/libdata/perl/5.00503 \
 		INSTALLARCHLIB=${DESTDIR}/usr/libdata/perl/5.00503/mach
 .endfor



>Release-Note:
>Audit-Trail:
>Unformatted:


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




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