Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jun 2002 06:50:47 +0900 (KST)
From:      Hye-Shik Chang <perky@fallin.lv>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/39349: build fix of databases/db3 for -current
Message-ID:  <200206152150.g5FLolWd070786@akaraka.yonsei.ac.kr>

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

>Number:         39349
>Category:       ports
>Synopsis:       build fix of databases/db3 for -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 15 15:00:14 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hye-Shik Chang
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Yonsei University
>Environment:
System: FreeBSD akaraka.yonsei.ac.kr 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Jun 4 20:20:35 KST 2002 root@akaraka.yonsei.ac.kr:/usr/src/sys/i386/compile/JOARRA i386

>Description:
- simple hack to build on -current
- back port creator's email address (rev 1.40-1.41)

>How-To-Repeat:
>Fix:

diff -ruN db3.orig/Makefile db3/Makefile
--- db3.orig/Makefile	Sun Jun  2 23:23:28 2002
+++ db3/Makefile	Sun Jun 16 06:45:06 2002
@@ -1,13 +1,13 @@
 # ports collection makefile for:	Berkeley DB v3
 # Date created:				16 August 2000
-# Whom:					Sergey Osokin aka oZZ <ports@FreeBSD.org>
+# Whom:					Sergey Osokin aka oZZ <osa@FreeBSD.org.ru>
 #
 # $FreeBSD: ports/databases/db3/Makefile,v 1.41 2002/05/30 23:02:39 petef Exp $
 #
 
 PORTNAME=	db3
 PORTVERSION=	3.2.9
-PORTREVISION=	3
+PORTREVISION=	4
 PORTEPOCH?=	1
 CATEGORIES=	databases
 MASTER_SITES=	http://www.sleepycat.com/update/snapshot/
@@ -33,6 +33,12 @@
 			--includedir=${PREFIX}/include/db3 \
 			--target=${ARCH}-unknown-freebsd${OSREL}
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 500034
+EXTRA_PATCHES=	${PATCHDIR}/patch_GXX3-include\:\:db_cxx.h
+.endif
+
 pre-patch:
 	@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/${CONFIGURE_SCRIPT}
 
@@ -40,4 +46,4 @@
 	@${CHMOD} 755 ${WRKSRC}/${CONFIGURE_SCRIPT}
 	@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/../dist/configure
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ruN db3.orig/files/patch_GXX3-include::db_cxx.h db3/files/patch_GXX3-include::db_cxx.h
--- db3.orig/files/patch_GXX3-include::db_cxx.h	Thu Jan  1 09:00:00 1970
+++ db3/files/patch_GXX3-include::db_cxx.h	Sun Jun 16 06:40:24 2002
@@ -0,0 +1,13 @@
+--- ../include/db_cxx.h.orig	Fri Jan 12 03:28:55 2001
++++ ../include/db_cxx.h	Sun Jun 16 06:31:07 2002
+@@ -49,7 +49,9 @@
+ // Forward declarations
+ //
+ 
+-#include <iostream.h>
++#include <iostream>
++using std::ostream;
++using std::cerr;
+ #include <stdarg.h>
+ #include "db.h"
+ 
>Release-Note:
>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?200206152150.g5FLolWd070786>