NetBSD Problem Report #23829

Received: (qmail 19253 invoked by uid 605); 21 Dec 2003 18:06:02 -0000
Message-Id: <20031221180601.161631115D@narn.netbsd.org>
Date: Sun, 21 Dec 2003 18:06:01 +0000 (UTC)
From: dotz@irc.pl
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: dotz@irc.pl
To: gnats-bugs@gnats.NetBSD.org
Subject: databases/postgresql-client uses a incompatible switch to ${PAX}; problems on non-NetBSD systems
X-Send-Pr-Version: www-1.0

>Number:         23829
>Category:       pkg
>Synopsis:       databases/postgresql-client uses a incompatible switch to ${PAX}; problems on non-NetBSD systems
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 21 18:07:00 +0000 2003
>Closed-Date:    Sun Oct 10 15:58:44 +0000 2004
>Last-Modified:  Mon Nov 08 16:44:00 +0000 2004
>Originator:     Michal Pasternak
>Release:        N/A
>Organization:
Good people with bad reputation
>Environment:
FreeBSD mainframe.w.lub.pl 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Mon Oct 27 17:51:09 GMT 2003     root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
postgresql-client/Makefile uses -O switch to ${PAX}, which is not available on FreeBSD (compare: 
http://www.FreeBSD.org/cgi/man.cgi?query=pax&apropos=0&sektion=0&manpath=NetBSD+1.6.1&format=html

and

http://www.FreeBSD.org/cgi/man.cgi?query=pax&apropos=0&sektion=0&manpath=FreeBSD+4.9-stable&format=html )

As this option is really unnecessary, I suggest we don't use it.
>How-To-Repeat:
Obvious
>Fix:
--- Makefile~   Sat Dec 20 14:56:39 2003
+++ Makefile    Sun Dec 21 17:59:55 2003
@@ -27,7 +27,7 @@

 post-install:
        cd ${PREFIX}/man &&                                             \
-               ${PAX} -O -crzf ${WRKSRC}/doc/man.tar.gz `${GREP} -v ^# ${FILESDIR}/exclude`
+               ${PAX} -crzf ${WRKSRC}/doc/man.tar.gz `${GREP} -v ^# ${FILESDIR}/exclude`

 .include "../../databases/postgresql-lib/buildlink2.mk"
 .include "../../devel/readline/buildlink2.mk"

>Release-Note:
>Audit-Trail:

From: "Jeremy C. Reed" <reed@reedmedia.net>
To: dotz@irc.pl
Cc: gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/23829: databases/postgresql-client uses a incompatible switch
 to ${PAX}; problems on non-NetBSD systems
Date: Mon, 22 Dec 2003 09:50:17 -0800 (PST)

 On Sun, 21 Dec 2003 dotz@irc.pl wrote:

 > postgresql-client/Makefile uses -O switch to ${PAX}, which is not
 > available on FreeBSD (compare:

 I had same problem using OpenBSD (and Suse) pax (in pkgsrc-wip as opax).

 pax -O is also used for EXTRACT_USING_PAX.

 Also, I wish pax-as-tar and pax-as-cpio would be installed with those
 names or paxtar or paxcpio.

    Jeremy C. Reed
    http://bsd.reedmedia.net/


From: Michal Pasternak <michal@pasternak.w.lub.pl>
To: "Jeremy C. Reed" <reed@reedmedia.net>
Cc: dotz@irc.pl, gnats-bugs@gnats.NetBSD.org
Subject: Re: pkg/23829: databases/postgresql-client uses a incompatible switch to ${PAX}; problems on non-NetBSD systems
Date: Tue, 23 Dec 2003 01:17:04 +0100

 Jeremy C. Reed [Mon, Dec 22, 2003 at 09:50:17AM -0800]:
 > On Sun, 21 Dec 2003 dotz@irc.pl wrote:
 > 
 > > postgresql-client/Makefile uses -O switch to ${PAX}, which is not
 > > available on FreeBSD (compare:
 > 
 > I had same problem using OpenBSD (and Suse) pax (in pkgsrc-wip as opax).
 > 
 > pax -O is also used for EXTRACT_USING_PAX.

 This is also used by mysql4-client/Makfile.common

 Why -O option is so important?

 Could we remove -O for non-NetBSD platforms like: OpenBSD, Linux and FreeBSD?

 If not, could we import opax from -wip and make it default PAX on OpenBSD,
 Linux and FreeBSD?

 If not, any other solution, please?

 -- 
 mp
State-Changed-From-To: open->closed 
State-Changed-By: jdolecek 
State-Changed-When: Sun Oct 10 07:37:55 UTC 2004 
State-Changed-Why:  
Package now uses ${TAR}, so this isn't problem anymore. Thanks 
for report. 
State-Changed-From-To: closed->open 
State-Changed-By: jdolecek 
State-Changed-When: Sun Oct 10 07:41:04 UTC 2004 
State-Changed-Why:  
Actually, postgresql73-client still uses ${PAX}. 
State-Changed-From-To: open->closed 
State-Changed-By: jdolecek 
State-Changed-When: Sun Oct 10 15:58:20 UTC 2004 
State-Changed-Why:  
The -O was removed. Sorry that this trivial fix took so long ... 

From: Jaromir Dolecek <jdolecek@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/23829 CVS commit: pkgsrc/databases/postgresql73-client
Date: Sun, 10 Oct 2004 15:58:03 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	jdolecek
 Date:		Sun Oct 10 15:58:03 UTC 2004

 Modified Files:
 	pkgsrc/databases/postgresql73-client: Makefile

 Log Message:
 kill -O pax argument - it's not portable, and it's not needed here
 in first place

 fixes PR pkg/23829 by Michal Pasternak


 To generate a diff of this commit:
 cvs rdiff -r1.2 -r1.3 pkgsrc/databases/postgresql73-client/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/23829 CVS commit: [pkgsrc-2004Q3] pkgsrc/databases
Date: Mon,  8 Nov 2004 16:43:29 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	salo
 Date:		Mon Nov  8 16:43:29 UTC 2004

 Modified Files:
 	pkgsrc/databases/jdbc-postgresql [pkgsrc-2004Q3]: Makefile distinfo
 	pkgsrc/databases/postgresql73 [pkgsrc-2004Q3]: Makefile.common distinfo
 	pkgsrc/databases/postgresql73-client [pkgsrc-2004Q3]: Makefile
 	pkgsrc/databases/postgresql73-docs [pkgsrc-2004Q3]: Makefile PLIST
 	pkgsrc/databases/postgresql73/patches [pkgsrc-2004Q3]: patch-ad
 Added Files:
 	pkgsrc/databases/postgresql73/files [pkgsrc-2004Q3]: netbsd.c netbsd.h
 	pkgsrc/databases/postgresql73/patches [pkgsrc-2004Q3]: patch-aj

 Log Message:
 Pullup ticket 126 - requested by Havard Eidnes
 security and bug fixes for postgresql73

         Module Name:    pkgsrc
         Committed By:   jdolecek
         Date:           Sun Oct 10 15:58:03 UTC 2004

         Modified Files:
                 pkgsrc/databases/postgresql73-client: Makefile

         Log Message:
         kill -O pax argument - it's not portable, and it's not needed here
         in first place

         fixes PR pkg/23829 by Michal Pasternak
 ---
         Module Name:    pkgsrc
         Committed By:   jdolecek
         Date:           Sun Oct 10 17:27:43 UTC 2004

         Modified Files:
                 pkgsrc/databases/postgresql73: Makefile.common
         Added Files:
                 pkgsrc/databases/postgresql73/files: netbsd.c netbsd.h

         Log Message:
         Update the NetBSD dynloader wrapper code to use straigh dl*() calls on all
         archs. This fixes support for dynamic loading on mips and also improves
         error reporting.

         Fixes PR pkg/25473 by Byron Servies.

         PKGREVISION not bumped, will ride update to 7.3.7
 ---
         Module Name:    pkgsrc
         Committed By:   jdolecek
         Date:           Sun Oct 10 17:46:07 UTC 2004

         Modified Files:
                 pkgsrc/databases/postgresql73: Makefile.common distinfo
                 pkgsrc/databases/postgresql73-client: Makefile
                 pkgsrc/databases/postgresql73-lib: Makefile
                 pkgsrc/databases/postgresql73-pltcl: Makefile
                 pkgsrc/databases/postgresql73-server: Makefile
                 pkgsrc/doc: CHANGES

         Log Message:
         Update to PostgreSQL 7.3.7.

         Changes:
              * Prevent possible loss of committed transactions during crash
                Due to insufficient interlocking between transaction commit and
                checkpointing, it was possible for transactions committed just
                before the most recent checkpoint to be lost, in whole or in part,
                following a database crash and restart. This is a serious bug that
                has existed since PostgreSQL 7.1.
              * Remove asymmetrical word processing in tsearch (Teodor)
              * Properly schema-qualify function names when pg_dump'ing a CAST
 ---
         Module Name:    pkgsrc
         Committed By:   jdolecek
         Date:           Sun Oct 10 17:48:34 UTC 2004

         Modified Files:
                 pkgsrc/databases/jdbc-postgresql: Makefile distinfo
                 pkgsrc/doc: CHANGES

         Log Message:
         Update to JDBC driver included with PostgreSQL 7.3.7.

         Notable change in 7.3.5:
              * Remove  ability  to bind a list of values to a single parameter in
                JDBC (prevents possible SQL-injection attacks)
 ---
         Module Name:    pkgsrc
         Committed By:   kristerw
         Date:           Thu Oct 14 17:58:43 UTC 2004

         Modified Files:
                 pkgsrc/databases/postgresql73-docs: Makefile PLIST

         Log Message:
         Correct PLIST.
         Bump PKGREVISION.
 ---
         Module Name:    pkgsrc
         Committed By:   jdolecek
         Date:           Sun Oct 10 18:26:00 UTC 2004

         Modified Files:
                 pkgsrc/databases/postgresql73: distinfo
                 pkgsrc/databases/postgresql73/patches: patch-ad
         Added Files:
                 pkgsrc/databases/postgresql73/patches: patch-aj

         Log Message:
         add patches to make it possible to compile PL/Python
 ---
         Module Name:    pkgsrc
         Committed By:   jdolecek
         Date:           Mon Oct 25 17:40:01 UTC 2004

         Modified Files:
                 pkgsrc/databases/jdbc-postgresql: Makefile distinfo
                 pkgsrc/databases/postgresql73: Makefile.common distinfo
                 pkgsrc/databases/postgresql73-docs: Makefile
                 pkgsrc/doc: CHANGES

         Log Message:
         Update all postgresql73 packages to 7.3.8. This fixes following two issues:

         * A vulnerability exists due to the insecure creation of temporary files,
           which could possibly let a malicious user overwrite arbitrary files

         * Repair possible failure to update hint bits on disk
           Under rare circumstances this oversight could lead to "could not access
           transaction status" failures, which qualifies it as a potential-data-loss bug.
 ---
         Module Name:    pkgsrc
         Committed By:   he
         Date:           Mon Nov  1 22:32:26 UTC 2004

         Modified Files:
                 pkgsrc/databases/postgresql73-docs: PLIST

         Log Message:
         Correct PLIST after upgrade to postgresql 7.3.8.


 To generate a diff of this commit:
 cvs rdiff -r1.23 -r1.23.6.1 pkgsrc/databases/jdbc-postgresql/Makefile
 cvs rdiff -r1.9 -r1.9.8.1 pkgsrc/databases/jdbc-postgresql/distinfo
 cvs rdiff -r1.2 -r1.2.2.1 pkgsrc/databases/postgresql73/Makefile.common
 cvs rdiff -r1.1.1.1 -r1.1.1.1.2.1 pkgsrc/databases/postgresql73/distinfo
 cvs rdiff -r1.1.1.1 -r1.1.1.1.2.1 \
     pkgsrc/databases/postgresql73-client/Makefile
 cvs rdiff -r1.1.1.1 -r1.1.1.1.2.1 pkgsrc/databases/postgresql73-docs/Makefile \
     pkgsrc/databases/postgresql73-docs/PLIST
 cvs rdiff -r0 -r1.1.2.1 pkgsrc/databases/postgresql73/files/netbsd.c \
     pkgsrc/databases/postgresql73/files/netbsd.h
 cvs rdiff -r1.1.1.1 -r1.1.1.1.2.1 \
     pkgsrc/databases/postgresql73/patches/patch-ad
 cvs rdiff -r0 -r1.1.2.1 pkgsrc/databases/postgresql73/patches/patch-aj

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:
 >Quarter:
 >Keywords:
 >Date-Required:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.