Bug 143070

Summary: [UPDATE] database/gadfly fix for working with python 2.6
Product: Ports & Packages Reporter: Edmondas Girkantas <eg>
Component: Individual Port(s)Assignee: Martin Wilke <miwi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

Description Edmondas Girkantas 2010-01-21 21:40:04 UTC
bindings.py file uses reserved word "as" and it should be renamed, because this database library will not work on system with python 2.6

Fix: apply given patch

Patch attached with submission follows:
How-To-Repeat: try to run gfplus utility:

big# gfplus
/usr/local/lib/python2.6/site-packages/gadfly/store.py:11: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import sys, os, md5, types, marshal

gfplus $Revision: 1.6 $ -- Interactive gadfly shell  [readline]

Thursday January 21, 2010 11:24 PM
DB Name: test
DB Location: .
Traceback (most recent call last):
  File "/usr/local/bin/gfplus", line 3, in <module>
  File "/usr/local/lib/python2.6/site-packages/gadfly/scripts/gfplus.py", line 269, in main
    shell = GadflyShell()
  File "/usr/local/lib/python2.6/site-packages/gadfly/scripts/gfplus.py", line 124, in __init__
    self.db = gadfly.gadfly(dbase,loc)
  File "/usr/local/lib/python2.6/site-packages/gadfly/database.py", line 26, in __init__
    from gadfly import sql, bindings
  File "/usr/local/lib/python2.6/site-packages/gadfly/bindings.py", line 64
    [create, view, name, namelist, as, selection] = l
SyntaxError: invalid syntax
Comment 1 Martin Wilke freebsd_committer 2010-01-21 22:10:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer 2010-01-25 08:55:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer 2010-01-25 08:55:49 UTC
miwi        2010-01-25 08:55:35 UTC

  FreeBSD ports repository

  Modified files:
    databases/gadfly     Makefile pkg-plist 
  Added files:
    databases/gadfly/files patch-bindngs 
  - Fix work with py 2.6
  PR:             143070
  Submitted by:   Edmondas Girkantas <eg@fbsd.lt>
  Revision  Changes    Path
  1.18      +1 -1      ports/databases/gadfly/Makefile
  1.1       +34 -0     ports/databases/gadfly/files/patch-bindngs (new)
  1.8       +2 -0      ports/databases/gadfly/pkg-plist
cvs-all@freebsd.org mailing list
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"