Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 11:17:32 GMT
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170443: databases/py-bsddb3 installation fails with PYTHON_VERSION python3.2
Message-ID:  <201208071117.q77BHWG4023903@red.freebsd.org>
Resent-Message-ID: <201208071120.q77BK25M044019@freefall.freebsd.org>

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

>Number:         170443
>Category:       ports
>Synopsis:       databases/py-bsddb3 installation fails with PYTHON_VERSION python3.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 11:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Volodymyr Kostyrko
>Release:        RELENG_9
>Organization:
None
>Environment:
FreeBSD limbo.xim.bz 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r238738M: Wed Jul 25 00:47:04 EEST 2012     arcade@limbo.xim.bz:/usr/obj/usr/src/sys/MINIMALx32  i386
>Description:
# make PYTHON_VERSION=python3.2
.. # builds successfully
# make PYTHON_VERSION=python3.2 install
===>  Installing for py32-bsddb3-5.3.0
===>   py32-bsddb3-5.3.0 depends on file: /usr/local/bin/python3.2 - found
===>   py32-bsddb3-5.3.0 depends on shared library: db-5.3.0 - found
===>   Generating temporary packing list
===>  Checking if databases/py-bsddb3 already installed
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    import setup3
  File "/tmp/ports/usr/ports/databases/py-bsddb3/work/bsddb3-5.3.0/setup3.py", line 258, in <module>
    libname = [db-5.3]
NameError: name 'db' is not defined
*** [do-install] Error code 1

Stop in /usr/ports/databases/py-bsddb3.
>How-To-Repeat:

>Fix:
The problem is in misquoted string at files/patch-setup3.py:22:

@@ -247,8 +244,8 @@
         incdir = os.path.join(BERKELEYDB_DIR, 'include')
     if not libdir:
         libdir = os.path.join(BERKELEYDB_DIR, 'lib')
-    if not '-ldb' in LIBS:
-        libname = [dblib]
+    if not '-l%%DBVERSION%%' in LIBS:
+        libname = [%%DBVERSION%%]
     else:
         if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'"
         libname = []

Here %%DBVERSION%% should appear quoted like in files/patch-setup2.py.

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



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