From mori@tri.asanuma.co.jp  Fri Aug 25 00:27:37 2000
Return-Path: <mori@tri.asanuma.co.jp>
Received: from vinita.tri.asanuma.co.jp (vinita.tri.asanuma.co.jp [210.160.188.5])
	by hub.freebsd.org (Postfix) with ESMTP id CC5EA37B424
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Aug 2000 00:27:34 -0700 (PDT)
Received: from parvati.tri.asanuma.co.jp by vinita.tri.asanuma.co.jp (8.9.3/3.7W) with ESMTP id QAA60311 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Aug 2000 16:27:32 +0900 (JST)
Received: from kurishna.tri.asanuma.co.jp by parvati.tri.asanuma.co.jp (8.8.8/3.7W) with ESMTP id QAA03579 for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Aug 2000 16:28:58 +0900 (JST)
Received: by kurishna.tri.asanuma.co.jp (8.9.3/3.7W) id QAA04668; Fri, 25 Aug 2000 16:27:31 +0900 (JST)
Message-Id: <200008250727.QAA04668@kurishna.tri.asanuma.co.jp>
Date: Fri, 25 Aug 2000 16:27:31 +0900 (JST)
From: Koji Mori <mori@tri.asanuma.co.jp>
Reply-To: mori@tri.asanuma.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: Errno.pm can't be install
X-Send-Pr-Version: 3.2

>Number:         20835
>Category:       gnu
>Synopsis:       Errno.pm is lost in perl system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    markm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 25 00:30:01 PDT 2000
>Closed-Date:    Sun Jul 8 00:15:28 PDT 2001
>Last-Modified:  Sun Jul 08 00:16:20 PDT 2001
>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:
Responsible-Changed-From-To: freebsd-bugs->markm 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Fri Aug 25 02:26:44 PDT 2000 
Responsible-Changed-Why:  
This will be resolved when Mark merges 5.6.0 onto the RELENG_4 
branch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20835 
State-Changed-From-To: open->closed 
State-Changed-By: markm 
State-Changed-When: Sun Jul 8 00:15:28 PDT 2001 
State-Changed-Why:  
Fixed the problem in 1.27.2.2, using another method.                         


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20835 
>Unformatted:
