From owner-freebsd-bugs Fri Aug 25 0:30: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7743A37B43E for ; Fri, 25 Aug 2000 00:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA16894; Fri, 25 Aug 2000 00:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) 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 ; 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 ; 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 ; 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 Reply-To: mori@tri.asanuma.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: gnu/20835: Errno.pm can't be install Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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