ports/160066: [PATCH] security/hottsh: eliminate py-pysqlite2x dependency

Ruslan Mahmatkhanov cvs-src at yandex.ru
Wed Aug 24 14:30:11 UTC 2011


>Number:         160066
>Category:       ports
>Synopsis:       [PATCH] security/hottsh: eliminate py-pysqlite2x dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 24 14:30:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA1
>Organization:
>Environment:
9.0-BETA1 i386
>Description:
- since this port requires python2.5+ (with USE_PYTHON) switch to 
  databases/py-sqlite3 instead of databases/py-pysqlite2x that is for python24
- while here use GNOME instead of ${MASTER_SITE_GNOME}
- bump portrevision because of deps changes

I checked the source. They use this pattern to deal with sqlite:
"""
  27 try:
  28     import sqlite3
  29 except:
  30     from pysqlite2 import dbapi2 as sqlite3 
"""
So nothing will be broken with sqlite3.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa hotssh.orig/Makefile hotssh/Makefile
--- hotssh.orig/Makefile	2010-06-11 17:37:38.000000000 +0400
+++ hotssh/Makefile	2011-08-24 18:20:55.000000000 +0400
@@ -7,9 +7,9 @@
 
 PORTNAME=	hotssh
 PORTVERSION=	0.2.7
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security gnome
-MASTER_SITES=	${MASTER_SITE_GNOME}
+MASTER_SITES=	GNOME
 MASTER_SITE_SUBDIR=	sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
 
 MAINTAINER=	ashish at FreeBSD.org
@@ -18,11 +18,11 @@
 BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
 		${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
 		${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib \
-		${PYTHON_SITELIBDIR}/pysqlite2/test/__init__.py:${PORTSDIR}/databases/py-pysqlite23 \
+		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
 		${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
 RUN_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/dbus-python.pc:${PORTSDIR}/devel/py-dbus \
 		${LOCALBASE}/libdata/pkgconfig/pygobject-2.0.pc:${PORTSDIR}/devel/py-gobject \
-		${PYTHON_SITELIBDIR}/pysqlite2/test/__init__.py:${PORTSDIR}/databases/py-pysqlite23 \
+		${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
 		${PYTHON_SITELIBDIR}/gtk-2.0/vtemodule.so:${PORTSDIR}/x11-toolkits/py-vte
 
 USE_GNOME=	pygtk2 gnomedocutils libxslt glib20


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



More information about the freebsd-ports-bugs mailing list