Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 1997 22:12:17 +0900 (JST)
From:      mihira yoshirou <sanpei@yy.cs.keio.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/2666: upgrade of jp-perl5
Message-ID:  <199702051312.WAA26313@titanium.yy.cs.keio.ac.jp>
Resent-Message-ID: <199702051320.FAA14288@freefall.freebsd.org>

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

>Number:         2666
>Category:       ports
>Synopsis:       upgrade of jp-perl5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  5 05:20:00 PST 1997
>Last-Modified:
>Originator:     Yoshiro MIHIRA
>Organization:
Keio Univ. Japan.
>Release:        FreeBSD 3.0-970124-SNAP i386
>Environment:

FreeBSD 2.2-BETA and current bsd.ports.mk files
and
FreeBSD 3.0-970124-SNAP

>Description:

  I'm MAINTAINER of jp-perl5.

  Current jp-perl5 has setlocale problem. I fix this problem
as below patch. I hope to submit this patch.
 
*ABOUT THIS PROBLEM*
  Perl5 uses setlocale function.  Recent jp-perl5 linked this order:
	libm libmalloc libc libcrypt libxpg4.
  The function of setlocale in libc has some problems for some locales
  (for example, ja_JP.EUC).

  It is needed to link libxpg4 before libc. I change to correct order
in configure file of perl5.

Thank you

Yoshiro MIHIRA
(sanpei@yy.cs.keio.ac.jp)
>How-To-Repeat:

make and set enviroment variable LANG ja_JP.EUC
run perl

>Fix:

Patch for japanese/perl5

diff -ur perl5.bak/Makefile perl5/Makefile
--- perl5.bak/Makefile	Fri Jan 24 06:58:00 1997
+++ perl5/Makefile	Wed Feb  5 18:51:41 1997
@@ -72,6 +72,6 @@
 
 post-install:
 	@strip ${PREFIX}/bin/perl ${PREFIX}/bin/suidperl
-	@ln -s ${PREFIX}/bin/perl ${PREFIX}/bin/jperl
+	@ln -fs ${PREFIX}/bin/perl ${PREFIX}/bin/jperl
 
 .include <bsd.port.mk>
diff -ur perl5.bak/patches/patch-aa perl5/patches/patch-aa
--- perl5.bak/patches/patch-aa	Fri Jan 24 06:58:00 1997
+++ perl5/patches/patch-aa	Thu Jan 30 10:41:14 1997
@@ -23,7 +23,7 @@
  libswanted='net socket inet nsl nm ndbm gdbm dbm db malloc dl'
  libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt"
 -libswanted="$libswanted ucb bsd BSD PW x"
-+libswanted="$libswanted ucb bsd BSD PW x xpg4"
++libswanted="xpg4 $libswanted ucb bsd BSD PW x"
  : We probably want to search /usr/shlib before most other libraries.
  : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
  glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'`
diff -ur perl5.bak/pkg/DESCR perl5/pkg/DESCR
--- perl5.bak/pkg/DESCR	Fri Jan 24 06:58:00 1997
+++ perl5/pkg/DESCR	Wed Feb  5 18:51:54 1997
@@ -7,32 +7,6 @@
 	    and jperl5.003.patch7_1
 				by yasushi@cs.washington.edu. 
 
-* known PROBLEMS
-
-	   If you set envirment variable `LANG' to ja_JP.EUC, 
-	*jperl/perl* output `warning: setlocale(LC_CTYPE, "") failed.'
-
-	   I don't have solution. If you have, please contact me :-)
-
-	   If you do not need setting locale, edit Makefile as below
-	and reinstall jperl.
-
-Thank you.
-
--------- patch to Makefile
---- Makefile.org	Sun Jan 12 22:17:05 1997
-+++ Makefile	Sun Jan 12 22:17:36 1997
-@@ -40,7 +40,7 @@
- 
- HAS_CONFIGURE=		yes
- CONFIGURE_SCRIPT=	Configure
--CONFIGURE_ARGS=		-sde -Dprefix=${PREFIX}
-+CONFIGURE_ARGS=		-sde -Dprefix=${PREFIX} -U d_setlocale
- 
- MAN1= 	perlbook.1 perlbot.1 perlcall.1 perldata.1 perldebug.1 perldiag.1  \
- 	perlembed.1 perlform.1 perlfunc.1 perlguts.1 perlipc.1 perllol.1   \
----------
-
 ----------- From lang/perl5/pkg/DESC
 From the distribution README:
 

>Audit-Trail:
>Unformatted:



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