From joek@zircon.staff.flyingcroc.net  Thu Oct 31 13:46:24 2002
Return-Path: <joek@zircon.staff.flyingcroc.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 99C5D37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Oct 2002 13:46:24 -0800 (PST)
Received: from gilliam.users.flyingcroc.net (gilliam.users.flyingcroc.net [207.246.128.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2EA3543E77
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Oct 2002 13:46:24 -0800 (PST)
	(envelope-from joek@zircon.staff.flyingcroc.net)
Received: from zircon.staff.flyingcroc.net (zircon.staff.flyingcroc.net [207.246.150.92])
	by gilliam.users.flyingcroc.net (8.9.3/8.9.3) with SMTP id NAA18751
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Oct 2002 13:46:13 -0800 (PST)
Received: (qmail 28978 invoked by uid 1001); 31 Oct 2002 21:46:13 -0000
Message-Id: <20021031214613.28977.qmail@zircon.staff.flyingcroc.net>
Date: 31 Oct 2002 21:46:13 -0000
From: Joe Kelsey <joek@zircon.staff.flyingcroc.net>
Reply-To: Joe Kelsey <joek@zircon.staff.flyingcroc.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: www/mod_php4: Add support for Oracle7
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44796
>Category:       ports
>Synopsis:       www/mod_php4: Add support for Oracle7
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dirk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 31 13:50:02 PST 2002
>Closed-Date:    Fri May 23 11:13:26 PDT 2003
>Last-Modified:  Fri May 23 11:13:26 PDT 2003
>Originator:     Joe Kelsey
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD zircon.staff.flyingcroc.net 4.7-STABLE FreeBSD 4.7-STABLE #1: Tue Oct 22 10:29:27 PDT 2002 joek@zircon.staff.flyingcroc.net:/usr/obj/usr/src/sys/ZIRCON i386

>Description:
	www/mod_php4: Add support for Oracle7
>How-To-Repeat:
	Add Oracle7 support based on databases/oracle7-client.
>Fix:

Add files/patch-ext_oracle_config.m4.
Apply configure.php4.diff to scripts/configure.php4.

--- patch-ext_oracle_config.m4 begins here ---
--- ext/oracle/config.m4.orig	Mon Feb  4 04:08:39 2002
+++ ext/oracle/config.m4	Thu Oct 31 11:58:49 2002
@@ -4,24 +4,7 @@
 
 AC_DEFUN(AC_ORACLE_VERSION,[
   AC_MSG_CHECKING([Oracle version])
-  if test -s "$ORACLE_DIR/orainst/unix.rgs"; then
-  	ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
-	test -z "$ORACLE_VERSION" && ORACLE_VERSION=7.3
-  elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then
-    ORACLE_VERSION=9.0
-  elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then
-    ORACLE_VERSION=8.1
-  elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.1.0; then
-    ORACLE_VERSION=8.0
-  elif test -f $ORACLE_DIR/lib/libclntsh.a; then
-    if test -f $ORACLE_DIR/lib/libcore4.a; then
-      ORACLE_VERSION=8.0
-    else
-      ORACLE_VERSION=8.1
-    fi
-  else
-  	AC_MSG_ERROR(Oracle needed libraries not found)
-  fi
+  ORACLE_VERSION=7.3
   AC_MSG_RESULT($ORACLE_VERSION)
 ])
 
--- patch-ext_oracle_config.m4 ends here ---

--- configure.php.diff begins here ---
--- configure.php.orig	Mon Sep 23 08:28:54 2002
+++ configure.php	Thu Oct 31 11:35:38 2002
@@ -27,6 +27,7 @@
 IMAP		"IMAP support" OFF \
 IMAP-SSL	"IMAP-SSL support (implies IMAP)" OFF \
 MySQL		"MySQL database support" ON \
+Oracle7		"Oracle 7 database support" OFF \
 PostgreSQL	"PostgreSQL database support" OFF \
 SybaseDB	"Sybase/MS-SQL database support (DB-lib)" OFF \
 SybaseCT	"Sybase/MS-SQL database support (CT-lib)" OFF \
@@ -166,6 +167,10 @@
 		\"MySQL\")
 			echo "LIB_DEPENDS+=	mysqlclient.10:\${PORTSDIR}/databases/mysql323-client"
 			echo "CONFIGURE_ARGS+=--with-mysql=\${LOCALBASE}"
+			;;
+	        \"Oracle7\")
+			echo "BUILD_DEPENDS+=	\${LOCALBASE}/oracle7/rdbms/demo/oracle.mk:\$(PORTSDIR)/databases/oracle7-client"
+			echo "CONFIGURE_ARGS+=--with-oracle=\$(LOCALBASE)/oracle7"
 			;;
 		\"PostgreSQL\")
 			echo "LIB_DEPENDS+=	pq.2:\${PORTSDIR}/databases/postgresql7"
--- configure.php.diff ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->dirk 
Responsible-Changed-By: arved 
Responsible-Changed-When: Thu Oct 31 15:39:09 PST 2002 
Responsible-Changed-Why:  
Over to Maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44796 

From: Joe Kelsey <joek@mail.flyingcroc.net>
To: freebsd-gnats-submit@FreeBSD.org,
	joek@zircon.staff.flyingcroc.net
Cc:  
Subject: Re: ports/44796: www/mod_php4: Add support for Oracle7
Date: Tue, 12 Nov 2002 11:13:57 -0800

 This is a multi-part message in MIME format.
 --------------000908090409020708070409
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 The patch-ext_oracle_config.m4 is slightly wrong.  We need to add -lwrap 
 to the link command.  Attached is a new patch file.
 
 /Joe
 
 
 --------------000908090409020708070409
 Content-Type: text/plain;
  name="patch-ext_oracle_config.m4"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="patch-ext_oracle_config.m4"
 
 --- ext/oracle/config.m4.orig	Mon Feb  4 04:08:39 2002
 +++ ext/oracle/config.m4	Tue Nov 12 10:51:54 2002
 @@ -4,24 +4,7 @@
  
  AC_DEFUN(AC_ORACLE_VERSION,[
    AC_MSG_CHECKING([Oracle version])
 -  if test -s "$ORACLE_DIR/orainst/unix.rgs"; then
 -  	ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
 -	test -z "$ORACLE_VERSION" && ORACLE_VERSION=7.3
 -  elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then
 -    ORACLE_VERSION=9.0
 -  elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then
 -    ORACLE_VERSION=8.1
 -  elif test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.1.0; then
 -    ORACLE_VERSION=8.0
 -  elif test -f $ORACLE_DIR/lib/libclntsh.a; then
 -    if test -f $ORACLE_DIR/lib/libcore4.a; then
 -      ORACLE_VERSION=8.0
 -    else
 -      ORACLE_VERSION=8.1
 -    fi
 -  else
 -  	AC_MSG_ERROR(Oracle needed libraries not found)
 -  fi
 +  ORACLE_VERSION=7.3
    AC_MSG_RESULT($ORACLE_VERSION)
  ])
  
 @@ -113,6 +96,7 @@
  	  if test -f $ORACLE_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME; then
  	    PHP_ADD_LIBRARY_WITH_PATH(clntsh, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
  	  else
 +	    PHP_ADD_LIBRARY_WITH_PATH(wrap, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
  	    PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
  	    PHP_ADD_LIBRARY_WITH_PATH(nlsrtl3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
  	    PHP_ADD_LIBRARY_WITH_PATH(core3, $ORACLE_DIR/lib, ORACLE_SHARED_LIBADD)
 
 --------------000908090409020708070409--
 

From: Joe Kelsey <joek@mail.flyingcroc.net>
To: freebsd-gnats-submit@FreeBSD.org,
	joek@zircon.staff.flyingcroc.net
Cc:  
Subject: Re: ports/44796: www/mod_php4: Add support for Oracle7
Date: Fri, 28 Feb 2003 11:26:12 -0800

 What is going on with this PR?
 
 I submitted it long ago and nothing has happened to it.
 
 I would appreciate feedback.
 
 /Joe
 
State-Changed-From-To: open->closed 
State-Changed-By: nork 
State-Changed-When: Fri May 23 11:12:57 PDT 2003 
State-Changed-Why:  
Superseded by ports/52615. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=44796 
>Unformatted:
