Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 1998 12:20:20 +0900 (JST)
From:      Jun-ichiro Itoh <itojun@kame.net>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Cc:        markm@FreeBSD.ORG
Subject:   ports/6613: ports/lang/perl5 fails to install by additional files in /usr/local/{include,lib}
Message-ID:  <199805130320.MAA06766@kame199.kame.net>

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

>Number:         6613
>Category:       ports
>Synopsis:       ports/lang/perl5 fails to install by additional files in /usr/local/{include,lib}
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 12 20:20:01 PDT 1998
>Last-Modified:
>Originator:     Jun-ichiro Itoh
>Organization:
itojun.org
>Release:        FreeBSD 2.2.6-RELEASE i386
>Environment:

FreeBSD banana.kame.net 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #2: Tue May 12 12:24:57 JST 1998     itojun@banana.kame.net:/usr/home/itojun/hyd/sys/compile/BANANA.v6  i386

>Description:

	Configure script comes with perl5 looks for additional libraries
	in /usr/local/{lib,include}.  perl5 port build can fail if you have
	something incompatible with perl5.
	Typical example is /usr/local/include/db.h installed by sleepycat db
	package (/usr/ports/databases/db).

	To stabilize port make, I think that perl5 port should ignore
	anything in /usr/local/{include,lib}.
	Advantage: stabilize port make
	Disadvantage: you cannot take advantage of perl5 extra library support,
		such as GNU gdbm support, to be installed automatically.

	(I'm a committer but I'd like to have maintainer's opinion so
	I'm performing send-pr)

>How-To-Repeat:

	1. install sleepycat db (/usr/ports/databases/db) from ports
	   or packages
	2. try to build perl5 (/usr/ports/lang/perl).
	   Configure output will say that "db.h" you have on the system
	   is incompatible with perl5.  Therefore, "DB_File" perl5 library
	   will not be built.
	3. you'll see make will fail to perform "make install", due to
	   missing manpage for "DB_File" perl5 library.

>Fix:
	
	apply the following patch to the currently existing perl5 port.

Index: patches/patch-aa
===================================================================
RCS file: /home/ncvs/ports/lang/perl5/patches/patch-aa,v
retrieving revision 1.6
diff -c -r1.6 patch-aa
*** patch-aa	1997/05/23 20:06:59	1.6
--- patch-aa	1998/05/13 03:09:39
***************
*** 1,5 ****
! --- Configure.ORIG	Tue May 13 19:20:34 1997
! +++ Configure	Fri May 23 11:33:40 1997
  @@ -91,11 +91,11 @@
   *)	CDPATH='' ;;
   esac
--- 1,5 ----
! --- Configure.orig	Sat Oct  4 02:57:39 1997
! +++ Configure	Wed May 13 11:56:09 1998
  @@ -91,11 +91,11 @@
   *)	CDPATH='' ;;
   esac
***************
*** 17,19 ****
--- 17,46 ----
   
   : Test and see if we are running under ksh, either blatantly or in disguise.
   if (PATH=.; alias -x) >/dev/null 2>&1; then
+ @@ -725,8 +725,7 @@
+  archobjs=''
+  : Possible local include directories to search.
+  : Set locincpth to "" in a hint file to defeat local include searches.
+ -locincpth="/usr/local/include /opt/local/include /usr/gnu/include"
+ -locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include"
+ +locincpth=""
+  :
+  : no include file wanted by default
+  inclwanted=''
+ @@ -735,14 +734,13 @@
+  xlibpth='/usr/lib/386 /lib/386'
+  
+  : Possible local library directories to search.
+ -loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib"
+ -loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
+ +loclibpth=""
+  
+  : general looking path for locating libraries
+  glibpth="/shlib /usr/shlib /usr/lib/pa1.1 /usr/lib/large"
+  glibpth="$glibpth /lib /usr/lib $xlibpth"
+  glibpth="$glibpth /lib/large /usr/lib/small /lib/small"
+ -glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
+ +glibpth="$glibpth /usr/ccs/lib /usr/ucblib"
+  
+  : Private path used by Configure to find libraries.  Its value
+  : is prepended to libpth. This variable takes care of special
>Audit-Trail:
>Unformatted:

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



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