Bug 160071 - [PATCH] security/zenmap: eliminate py-pysqlite2x dependency
Summary: [PATCH] security/zenmap: eliminate py-pysqlite2x dependency
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: Eitan Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 19:20 UTC by R.Mahmatkhanov
Modified: 2011-09-07 21:01 UTC (History)
0 users

See Also:


Attachments
file.diff (941 bytes, patch)
2011-08-24 19:20 UTC, R.Mahmatkhanov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description R.Mahmatkhanov 2011-08-24 19:20:14 UTC
- bump USE_PYTHON to 2.5+ (the point is to not depend on python24)
- since it now requires 2.5+ use databases/py-sqlite3 
instead of databases/py-pysqlite2x
- bump portrevision cause of deps change

I checked the code. They use this pattern when dealing with sqlite binding:

"""
 99 try:
100     from pysqlite2 import dbapi2 as sqlite
101 except ImportError:
102     try:
103         # In case this script is been running under python2.5 with sqlite3
104         import sqlite3 as sqlite
105     except ImportError:
106         raise ImportError(_("No module named dbapi2.pysqlite2 or sqlite3"))
"""

So nothing will be broken with sqlite3.

Fix: Patch attached with submission follows:
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2011-08-31 23:42:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->eadler

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-09-07 20:51:01 UTC
eadler      2011-09-07 19:50:46 UTC

  FreeBSD ports repository

  Modified files:
    deskutils/griffith   Makefile 
    emulators/wahcade    Makefile 
    security/zenmap      Makefile 
  Log:
  - emulators/wahcade: eliminate py-elementtree dependency [0]
  - security/zenmap: eliminate py-pysqlite2x dependency [1]
  - deskutils/griffith: eliminate py-pysqlite2x dependency [2]
  
  PR:             ports/160049 [0], ports/160071 [1], ports/160161 [2]
  Submitted by:   Ruslan Mahmatkhanov <cvs-src@yandex.ru> [0,1,2]
  Approved by:    bapt (mentor)
  
  Revision  Changes    Path
  1.20      +9 -9      ports/deskutils/griffith/Makefile
  1.25      +1 -2      ports/emulators/wahcade/Makefile
  1.53      +5 -5      ports/security/zenmap/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 3 Eitan Adler freebsd_committer freebsd_triage 2011-09-07 21:01:55 UTC
State Changed
From-To: open->closed

Committed. Thanks!