Bug 170072 - databases/tdb fails to build if default python version is 3 or greater
Summary: databases/tdb fails to build if default python version is 3 or greater
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-22 20:30 UTC by Kimmo Paasiala
Modified: 2012-07-23 08:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Paasiala 2012-07-22 20:30:14 UTC
databases/tdb expects DEFAULT_PYTHON_VERSION to be 2.7 at most. With default version 3 or greater the build fails because the build scripts written in python have invalid syntax for python version 3.

Fix: 

Change "USE_PYTHON_BUILD = yes" in Makefile to "USE_PYTHON_BUILD = -2.7"
How-To-Repeat: Set DEFAULT_PYTHON_VERSION to 3.0 or greater in /etc/make.conf and try to build the tdb port.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-22 20:30:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->timur

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-07-23 08:14:52 UTC
Author: rm
Date: Mon Jul 23 07:14:38 2012
New Revision: 301375
URL: http://svn.freebsd.org/changeset/ports/301375

Log:
  - strict python version to 2.x (doesn't build with python3)
  
  PR:		170072
  Submitted by:	Kimmo Paasiala <kpaasial at gmail dot com>
  Approved by:	timur (maintainer)

Modified:
  head/databases/tdb/Makefile

Modified: head/databases/tdb/Makefile
==============================================================================
--- head/databases/tdb/Makefile	Mon Jul 23 07:03:57 2012	(r301374)
+++ head/databases/tdb/Makefile	Mon Jul 23 07:14:38 2012	(r301375)
@@ -22,7 +22,7 @@ LICENSE=		GPLv3
 
 CONFLICTS=		*samba3[0-4]-3.*
 
-USE_PYTHON_BUILD=	yes
+USE_PYTHON_BUILD=	-2.7
 USE_LDCONFIG=		yes
 HAS_CONFIGURE=		yes
 WAF_TOOL=		buildtools/bin/waf
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-07-23 08:18:18 UTC
State Changed
From-To: open->closed

Committed, thank you!