Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2012 05:50:12 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-python@FreeBSD.org
Subject:   Re: ports/156076: commit references a PR
Message-ID:  <201207260550.q6Q5oC2p054530@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/156076; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/156076: commit references a PR
Date: Thu, 26 Jul 2012 05:44:24 +0000 (UTC)

 Author: mva
 Date: Thu Jul 26 05:44:07 2012
 New Revision: 301540
 URL: http://svn.freebsd.org/changeset/ports/301540
 
 Log:
   - Don't define HAVE_LOAD_EXTENSION when sqlite3 is compiled with EXTENSION
     option turned off
   
   PR:		ports/156076
   Submitted by:	Pan Tsu <inyaoo@gmail.com>
 
 Modified:
   head/databases/py-sqlite3/Makefile   (contents, props changed)
   head/databases/py-sqlite3/files/setup.py   (contents, props changed)
   head/databases/py-sqlite3/files/setup3.py   (contents, props changed)
 
 Modified: head/databases/py-sqlite3/Makefile
 ==============================================================================
 --- head/databases/py-sqlite3/Makefile	Thu Jul 26 05:40:22 2012	(r301539)
 +++ head/databases/py-sqlite3/Makefile	Thu Jul 26 05:44:07 2012	(r301540)
 @@ -7,7 +7,7 @@
  
  PORTNAME=	sqlite3
  PORTVERSION=	${PYTHON_PORTVERSION}
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	databases python
  MASTER_SITES=	${PYTHON_MASTER_SITES}
  MASTER_SITE_SUBDIR=	${PYTHON_MASTER_SITE_SUBDIR}
 
 Modified: head/databases/py-sqlite3/files/setup.py
 ==============================================================================
 --- head/databases/py-sqlite3/files/setup.py	Thu Jul 26 05:40:22 2012	(r301539)
 +++ head/databases/py-sqlite3/files/setup.py	Thu Jul 26 05:44:07 2012	(r301540)
 @@ -32,6 +32,12 @@ sqlite_srcs = [
  '_sqlite/statement.c',
  '_sqlite/util.c']
  
 +try:
 +    import ctypes
 +    ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
 +except AttributeError:
 +    macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
 +
  setup(name = "_sqlite3",
        description = "SQLite 3 extension to Python",
        
 
 Modified: head/databases/py-sqlite3/files/setup3.py
 ==============================================================================
 --- head/databases/py-sqlite3/files/setup3.py	Thu Jul 26 05:40:22 2012	(r301539)
 +++ head/databases/py-sqlite3/files/setup3.py	Thu Jul 26 05:44:07 2012	(r301540)
 @@ -31,6 +31,12 @@ sqlite_srcs = [
  '_sqlite/statement.c',
  '_sqlite/util.c']
  
 +try:
 +    import ctypes
 +    ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
 +except AttributeError:
 +    macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
 +
  setup(name = "_sqlite3",
        description = "SQLite 3 extension to Python",
        
 _______________________________________________
 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"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207260550.q6Q5oC2p054530>