Bug 130410 - [PATCH] databases/py-bsddb - Fix build with python2.6
Summary: [PATCH] databases/py-bsddb - Fix build with python2.6
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: Hye-Shik Chang
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 10:50 UTC by David Naylor
Modified: 2009-04-06 06:20 UTC (History)
0 users

See Also:


Attachments
file.diff (601 bytes, patch)
2009-01-12 10:50 UTC, David Naylor
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Naylor 2009-01-12 10:50:02 UTC
With PYTHON_DEFAULT_VERSION=python2.6 set in make.conf py-bsddb fails to build due to a change in the bsddb module in python2.6.  The problem is the patched #include directive was moved from Modules/_bsddb.c to Modules/bsddb.h.

Fix: Apply to given patch.  The patch is also backward compatible and thus just fixes the case with PYTHON_DEFAULT_VERSION=python2.6.

NOTE: The patch has not been tested with python3.0 however I suspect it would work with it.

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/databases/py-bsddb && make PYTHON_DEFAULT_VERSION=python2.6
[Preferable without python2.5 not being installed already, as I have not tested it in this case]
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-01-12 10:50:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perky

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Joseph S Atkinson 2009-01-13 01:39:31 UTC
I just his this issue myself, tested the patch to build both (toggled my 
  PYTHON_DEFAULT_VERSION between builds) with python2.5 (make build) and 
python2.6 (make install). Both built without issue.

Thanks, for the fix. Now I can move on!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-04-06 06:12:50 UTC
tmclaugh    2009-04-06 05:12:40 UTC

  FreeBSD ports repository

  Modified files:
    databases/py-bsddb   Makefile 
  Log:
  Fix build with Python 2.6
  - chase moved db.h include location
  
  PR:             130410
  Submitted by:   David Naylor
  Approved by:    maintainer timeout
  
  Revision  Changes    Path
  1.11      +10 -2     ports/databases/py-bsddb/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Tom McLaughlin freebsd_committer freebsd_triage 2009-04-06 06:12:56 UTC
State Changed
From-To: open->closed

Patch committed.  Thanks.