Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2005 15:24:58 +0200 (CEST)
From:      Dmytro Rud <unixoid@web.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        unixoid@web.de, Kris Kennaway <kris@obsecurity.org>
Subject:   ports/87665: Make the port respect the LOCALBASE variable
Message-ID:  <200510191324.j9JDOw8C049380@nexor.cs.uni-magdeburg.de>
Resent-Message-ID: <200510191330.j9JDUCGA085628@freefall.freebsd.org>

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

>Number:         87665
>Category:       ports
>Synopsis:       Make the port respect the LOCALBASE variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 19 13:30:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dmytro Rud
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
University of Magdeburg
>Environment:
System: FreeBSD nexor.cs.uni-magdeburg.de 5.4-STABLE FreeBSD 5.4-STABLE #3: Thu Sep 29 11:26:08 CEST 2005 rnd@nexor.cs.uni-magdeburg.de:/usr/obj/usr/src/sys/RND i386
>Description:
Kris Kennaway wrote:

> This port does not respect non-standard LOCALBASE/X11BASE settings,
> which is a requirement that all FreeBSD ports should satisfy.  In this build,
> your port and all its dependencies were built with LOCALBASE=/usr/opt and
> X11BASE=/usr/X, and the build failed because of hard-coded values in your port
> or the vendor sources.
>How-To-Repeat:
>Fix:
diff -ruN kinterbasdb/Makefile kinterbasdb.NEW/Makefile
--- kinterbasdb/Makefile        Sun Sep 18 14:14:13 2005
+++ kinterbasdb.NEW/Makefile    Wed Oct 19 15:04:02 2005
@@ -19,14 +19,21 @@
 LIB_DEPENDS=           gds.1:${PORTSDIR}/databases/firebird-client
 RUN_DEPENDS=           ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py:${PORTSDIR}/lang/py-mx-base
 
+FIREBIRD_BASE?=                ${LOCALBASE}
+
 WRKSRC=                        ${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
 USE_PYTHON=            yes
 USE_PYDISTUTILS=       yes
 USE_PYTHON_PREFIX=     yes
 
+USE_REINPLACE=         yes
+
 USE_GCC=               3.4
 
 PLIST_SUB=             INSTALLDIR=lib/${PYTHON_VERSION}/site-packages/${PORTNAME}
+
+post-extract:
+       ${REINPLACE_CMD} "s@DEFAULT_FREEBSD_HOME_DIR = '.*'@DEFAULT_FREEBSD_HOME_DIR = '${FIREBIRD_BASE}'@" ${WRKSRC}/setup.py
 
 .include <bsd.port.mk>
diff -ruN kinterbasdb/files/patch-setup.py kinterbasdb.NEW/files/patch-setup.py
--- kinterbasdb/files/patch-setup.py    Tue May 17 18:09:28 2005
+++ kinterbasdb.NEW/files/patch-setup.py        Thu Jan  1 01:00:00 1970
@@ -1,11 +0,0 @@
---- setup.py.orig      Sun May 15 10:11:47 2005
-+++ setup.py   Sun May 15 10:12:02 2005
-@@ -834,7 +834,7 @@
-     #
-     # This "autodetection" will probably work for some other Unixes as well.
-     if not DATABASE_HOME_DIR:
--        DEFAULT_FREEBSD_HOME_DIR = '/usr/local/firebird'
-+        DEFAULT_FREEBSD_HOME_DIR = '/usr/local'
-         if os.path.isdir(DEFAULT_FREEBSD_HOME_DIR):
-             DATABASE_HOME_DIR = DEFAULT_FREEBSD_HOME_DIR
-             if not DATABASE_INCLUDE_DIR:

>Release-Note:
>Audit-Trail:
>Unformatted:



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