debian/0000755000000000000000000000000012123031114007152 5ustar debian/libpgtcl.docs0000644000000000000000000000001212112446657011641 0ustar README.md debian/changelog0000644000000000000000000000545612123026304011043 0ustar pgtcl (1:1.9+git20120911-2) unstable; urgency=low * Remove obsolete patch 02_hurd_kfreebsd.patch. * New patch Fix_PQsendQuery_return_type to fix handling of PQsendQuery*() return type and associated compiler warnings. -- Mark Hindley Fri, 22 Mar 2013 10:04:52 +0000 pgtcl (1:1.9+git20120911-1) unstable; urgency=low * New upstream version 1.9. * Rename binary runtime package to libpgtcl (Conflicts and Replaces libpgtcl1.5). * Remove patches 01_fix_configure_syntax as fixed upstream. * Remove patch 03_honour-ldflags as relro hardening is now picked up correctly from LDFLAGS. * Call dh_clean in debian/rules clean:: target to prevent debhelper.log files appearing in the source tarball and associated lintian warning. -- Mark Hindley Sat, 26 Jan 2013 13:51:05 +0000 pgtcl (1:1.5-7) unstable; urgency=low * New maintainer (closes: #547642). * Update to standards version 3.9.3 (no changes). * Fix lintian warnings: - Include BSD licence directly rather than linking to /usr/share/common-licenses/BSD/ - Harden build with fortify functions and link with relro. -- Mark Hindley Mon, 21 Jan 2013 17:23:25 +0000 pgtcl (1:1.5-6) unstable; urgency=low * QA upload. * Fix build on kFreeBSD. * Use dh-autoreconf instead of patching configure. * Happy New Year, Debian! -- Andrew O. Shadura Sat, 31 Dec 2011 19:29:00 +0000 pgtcl (1:1.5-5) unstable; urgency=low * QA upload. * Upgrade to Tcl 8.5. * Bump Standards-Version to 3.9.2. * Use DebSrc3.0 (quilt) source format. * Add homepage. * Add watch file. * Introduce a strict dependency between the binary packages. * Update copyright file. * Fix doc-base descriptor. -- Andrew O. Shadura Fri, 30 Dec 2011 12:21:21 +0300 pgtcl (1:1.5-4) unstable; urgency=low * Orphan package. * Add missing ${misc:Depends}. * Bump dh compat level to 5. * Bump Standards-Version to 3.8.3. -- Martin Pitt Mon, 21 Sep 2009 11:58:09 +0200 pgtcl (1:1.5-3) unstable; urgency=low * Add debian/patches/01_fix_configure_syntax.patch: - Fix erroneous quoting in tclconfig/tcl.m4. * Add debian/patches/99_autoreconf.patch: - Applied above changes to configure. - This should fix the FTBFS on hppa. -- Martin Pitt Fri, 10 Feb 2006 00:24:29 +0100 pgtcl (1:1.5-2) unstable; urgency=low * Conflict/Replace/Provide the old libpgtcl package. Closes: #341582 -- Martin Pitt Wed, 7 Dec 2005 15:47:08 +0100 pgtcl (1:1.5-1) unstable; urgency=low * Initial release; previously, this was built from the postgresql sources, but upstream split it out to a separate package now. -- Martin Pitt Tue, 20 Sep 2005 20:48:34 +0200 debian/libpgtcl.install0000644000000000000000000000005112112446657012362 0ustar debian/tmp/usr/lib/*/* usr/lib/libpgtcl/ debian/compat0000644000000000000000000000000212077242652010373 0ustar 5 debian/source/0000755000000000000000000000000012112446657010476 5ustar debian/source/format0000644000000000000000000000001412112446562011677 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000417512112446657011140 0ustar This package was debianized by Martin Pitt on Mon, 19 Sep 2005 22:19:57 +0100. Thanks to Barry deFreese for the initial packaging attempt. It was downloaded from http://gborg.postgresql.org/project/pgtcl/projdisplay.php Copyright Holder: The pgtcl Project Copyright (c) 1994 Sun Microsystems, Inc. Portions Copyright (c) 1993, 1994 The Regents of the University of California. Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group Portions Copyright (c) 2002 by David Gravereaux. Portions Copyright (c) 2003 by Patrick Thoyts License: This project is released under the Berkeley/BSD license. Copyright (c) The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/patches/0000755000000000000000000000000012112454704010615 5ustar debian/patches/series0000644000000000000000000000004212112454704012026 0ustar Fix_PQsendQuery_return_type.patch debian/patches/Fix_PQsendQuery_return_type.patch0000644000000000000000000000463612112446657017345 0ustar Description: Handle status return from PQsendQuery*. PQsendQueryPrepared(), PQsendQueryParams() and PQsendQuery() return status not PGResult. Handle this correctly. Author: Mark Hindley Forwarded: https://github.com/flightaware/Pgtcl/issues/1 Date: 2012-02-16 --- a/generic/pgtclCmds.c +++ b/generic/pgtclCmds.c @@ -4351,7 +4351,7 @@ { PGconn *conn; - PGresult *result; + PGresult *result = NULL; CONST84 char *connString; const char *execString; const char **paramValues = NULL; @@ -4364,6 +4364,7 @@ int count=0, countbin=0, optIndex; int params=0,binparams=0,binresults=0,callback=0,async=0,prepared=0; unsigned char flags = 0; + int status = 0; static CONST84 char *cmdargs = ""; @@ -4561,13 +4562,13 @@ * of query */ if (prepared) { - result = PQsendQueryPrepared(conn, execString, count, paramValues, paramLengths, binValues, binresults); + status = PQsendQueryPrepared(conn, execString, count, paramValues, paramLengths, binValues, binresults); } else if (params) { - result = PQsendQueryParams(conn, execString, count, NULL, paramValues, paramLengths, binValues, binresults); + status = PQsendQueryParams(conn, execString, count, NULL, paramValues, paramLengths, binValues, binresults); } else { - result = PQsendQuery(conn, execString); + status = PQsendQuery(conn, execString); /* ckfree ((void *)paramValues); */ @@ -4586,19 +4587,22 @@ PgNotifyTransferEvents(connid); - if (result && !callback) + if (result || status) { - int rId = PgSetResultId(interp, connString, result); - ExecStatusType rStat = PQresultStatus(result); - - if (rStat == PGRES_COPY_IN || rStat == PGRES_COPY_OUT) - { - connid->res_copyStatus = RES_COPY_INPROGRESS; - connid->res_copy = rId; - } + if (result) + { + int rId = PgSetResultId(interp, connString, result); + ExecStatusType rStat = PQresultStatus(result); + + if (rStat == PGRES_COPY_IN || rStat == PGRES_COPY_OUT) + { + connid->res_copyStatus = RES_COPY_INPROGRESS; + connid->res_copy = rId; + } + } return TCL_OK; } - else if (!result) + else { /* error occurred during the query */ Tcl_SetObjResult(interp, Tcl_NewStringObj(PQerrorMessage(conn), -1)); debian/watch0000644000000000000000000000033612112446657010231 0ustar # watch control file for uscan # See uscan(1) for format version=3 # Upstream has moved to GitHub but is not currently # tagging releases. Suggestions for tracking upstream # releases in this case gratefully received. debian/control0000644000000000000000000000237012123026020010557 0ustar Source: pgtcl Priority: optional Maintainer: Mark Hindley Build-Depends: cdbs, debhelper (>= 5), tcl-dev, libpq-dev, dh-autoreconf, dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.3 Homepage: http://github.com/flightaware/pgtcl/ Section: libs Package: libpgtcl Depends: ${shlibs:Depends}, ${misc:Depends}, ${tcl:Depends} Conflicts: libpgtcl1.5 Replaces: libpgtcl1.5 Architecture: any Description: Tcl client library binding for PostgreSQL This library provides Tcl bindings to the PostgreSQL client library (libpq), which is used to communicate with the PostgreSQL database server. . PostgreSQL is an object-relational SQL database management system. Tcl is a widely used and easily extended interpreted language. Package: libpgtcl-dev Section: libdevel Architecture: any Depends: libpgtcl (= ${binary:Version}), ${misc:Depends} Description: Tcl client library binding for PostgreSQL - development files This library provides Tcl bindings to the PostgreSQL client library (libpq), which is used to communicate with the PostgreSQL database server. This package contains the static library and header files. . PostgreSQL is an object-relational SQL database management system. Tcl is a widely used and easily extended interpreted language. debian/libpgtcl-dev.doc-base0000644000000000000000000000052712112446562013150 0ustar Document: libpgtcl Title: libpgtcl API documentation Author: The PostgreSQL Global Development Group Abstract: API documentation and examples for the libpgtcl, a Tcl binding to the PostgreSQL client library. Section: Programming Format: HTML Index: /usr/share/doc/libpgtcl-dev/html/index.html Files: /usr/share/doc/libpgtcl-dev/html/*.html debian/rules0000755000000000000000000000067112112446657010262 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/dpkg/buildflags.mk DEB_CONFIGURE_EXTRA_FLAGS := --with-tcl=/usr/lib --with-tclinclude=/usr/include/tcl DEB_MAKE_INSTALL_TARGET := install-binaries DESTDIR=$(DEB_DESTDIR) DEB_INSTALL_DOCS_libpgtcl-dev = -X TODO install/libpgtcl:: tcltk-depends clean:: dh_clean debian/clean0000644000000000000000000000002512112446562010173 0ustar aclocal.m4 configure debian/libpgtcl-dev.install0000644000000000000000000000003712077017413013134 0ustar generic/libpgtcl.h usr/include debian/libpgtcl-dev.docs0000644000000000000000000000002312077017413012411 0ustar doc/html doc/*.pdf