openbsd-ports/databases/p5-DBD-SQLite/Makefile
simon 076fd8c72b Fix "closing dbh with active statement handles" issue caused by prepared
statements which weren't finalized by $dbh->disconnect().

Since version 3.6.0 of sqlite one can use the new sqlite3_next_stmt()
function to get all open statements and call sqlite3_finalize() on them.
This patch implements that behaviour.

Problem brought to my attention again by bernd@ at p2k8 and i had it in
my tree since then without any issues.
Testing and ok by bernd@ and pea@, thanks!

Bug filed upstream at http://rt.cpan.org/Public/Bug/Display.html?id=40383
2009-01-24 17:42:22 +00:00

34 lines
815 B
Makefile

# $OpenBSD: Makefile,v 1.17 2009/01/24 17:42:22 simon Exp $
SHARED_ONLY= Yes
COMMENT= SQLite drivers for the Perl DBI
MODULES= cpan
DISTNAME= DBD-SQLite-1.14
PKGNAME= p5-${DISTNAME}p1v0
CATEGORIES= databases
MAINTAINER= Robert Nagy <robert@openbsd.org>
# artistic
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
BUILD_DEPENDS= :p5-DBI->=1.08:databases/p5-DBI
RUN_DEPENDS= :p5-DBI->=1.08:databases/p5-DBI
LIB_DEPENDS= sqlite3:sqlite3->=3.6.4:databases/sqlite3
CONFIGURE_ARGS= SQLITE_LOCATION=${LOCALBASE}
MAKE_FLAGS= CC='${CC}' \
LD='${CC}'
# as DBD::SQLite bundles sqlite3, our patches can't use functions from newer
# versions installed via ports
post-extract:
rm -f ${WRKSRC}/sqlite3.h ${WRKSRC}/sqlite3ext.h
.include <bsd.port.mk>