pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases databases/postgresql*: Work around autoconf ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/544f3b564c01
branches:  trunk
changeset: 386866:544f3b564c01
user:      gdt <gdt%pkgsrc.org@localhost>
date:      Sun Oct 16 14:42:49 2022 +0000

description:
databases/postgresql*: Work around autoconf mkdir bug

autoconf does not accept NetBSD mkdir (this bug has already been fixed
in upstream autoconf).  This leads to install.sh, and thus
postgresql's workaround for a relative path in pgxs, and then that
being used in postgis.  Somewhere in that chain there is a bug leading
to postgis failing to make a directory at install time.

This passes in an autoconf cache variable so that for mkdir it uses
mkdir (which it does on GNU/Linux, and thus that situation is
well-tested).

diffstat:

 databases/postgresql10-client/Makefile |  3 ++-
 databases/postgresql10/Makefile.common |  8 +++++++-
 databases/postgresql11-client/Makefile |  3 ++-
 databases/postgresql11/Makefile.common |  8 +++++++-
 databases/postgresql13-client/Makefile |  3 ++-
 databases/postgresql13/Makefile.common |  8 +++++++-
 databases/postgresql14-client/Makefile |  3 ++-
 databases/postgresql14/Makefile.common |  8 +++++++-
 8 files changed, 36 insertions(+), 8 deletions(-)

diffs (136 lines):

diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql10-client/Makefile
--- a/databases/postgresql10-client/Makefile    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql10-client/Makefile    Sun Oct 16 14:42:49 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.28 2022/08/15 20:59:35 adam Exp $
+# $NetBSD: Makefile,v 1.29 2022/10/16 14:42:49 gdt Exp $
 
 PKGNAME=       ${DISTNAME:S/-/10-client-/}
+PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql10/Makefile.common"
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql10/Makefile.common
--- a/databases/postgresql10/Makefile.common    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql10/Makefile.common    Sun Oct 16 14:42:49 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.35 2022/08/15 20:59:35 adam Exp $
+# $NetBSD: Makefile.common,v 1.36 2022/10/16 14:42:49 gdt Exp $
 #
 # This Makefile fragment is included by all PostgreSQL packages built from
 # the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -68,6 +68,12 @@
 CONFIGURE_ARGS+=       --without-python
 CONFIGURE_ARGS+=       --without-tcl
 
+# Work around a bug in autoconf, that thinks almost all mkdir
+# implementations are deficient, and a bug someplace between postgis
+# and pgxs, that causes topology/Makefile.in to run pgxs's install-sh
+# but without a path.
+CONFIGURE_ENV+=                ac_cv_path_mkdir="mkdir"
+
 # avoid pointing to a wrapper
 CONFIGURE_ENV+=                MSGFMT=${TOOLS_PATH.msgfmt}
 
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql11-client/Makefile
--- a/databases/postgresql11-client/Makefile    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql11-client/Makefile    Sun Oct 16 14:42:49 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2022/08/15 20:59:36 adam Exp $
+# $NetBSD: Makefile,v 1.25 2022/10/16 14:42:50 gdt Exp $
 
 PKGNAME=       ${DISTNAME:S/-/11-client-/}
+PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql11/Makefile.common"
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql11/Makefile.common
--- a/databases/postgresql11/Makefile.common    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql11/Makefile.common    Sun Oct 16 14:42:49 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.29 2022/10/03 07:50:27 nia Exp $
+# $NetBSD: Makefile.common,v 1.30 2022/10/16 14:42:50 gdt Exp $
 #
 # This Makefile fragment is included by all PostgreSQL packages built from
 # the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -68,6 +68,12 @@
 CONFIGURE_ARGS+=       --without-python
 CONFIGURE_ARGS+=       --without-tcl
 
+# Work around a bug in autoconf, that thinks almost all mkdir
+# implementations are deficient, and a bug someplace between postgis
+# and pgxs, that causes topology/Makefile.in to run pgxs's install-sh
+# but without a path.
+CONFIGURE_ENV+=                ac_cv_path_mkdir="mkdir"
+
 # avoid pointing to a wrapper
 CONFIGURE_ENV+=                MSGFMT=${TOOLS_PATH.msgfmt}
 
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql13-client/Makefile
--- a/databases/postgresql13-client/Makefile    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql13-client/Makefile    Sun Oct 16 14:42:49 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.20 2022/08/15 20:59:38 adam Exp $
+# $NetBSD: Makefile,v 1.21 2022/10/16 14:42:50 gdt Exp $
 
 PKGNAME=       ${DISTNAME:S/-/13-client-/}
+PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql13/Makefile.common"
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql13/Makefile.common
--- a/databases/postgresql13/Makefile.common    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql13/Makefile.common    Sun Oct 16 14:42:49 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.15 2022/10/03 07:50:27 nia Exp $
+# $NetBSD: Makefile.common,v 1.16 2022/10/16 14:42:50 gdt Exp $
 #
 # This Makefile fragment is included by all PostgreSQL packages built from
 # the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -68,6 +68,12 @@
 CONFIGURE_ARGS+=       --without-python
 CONFIGURE_ARGS+=       --without-tcl
 
+# Work around a bug in autoconf, that thinks almost all mkdir
+# implementations are deficient, and a bug someplace between postgis
+# and pgxs, that causes topology/Makefile.in to run pgxs's install-sh
+# but without a path.
+CONFIGURE_ENV+=                ac_cv_path_mkdir="mkdir"
+
 # avoid pointing to a wrapper
 CONFIGURE_ENV+=                MSGFMT=${TOOLS_PATH.msgfmt}
 
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql14-client/Makefile
--- a/databases/postgresql14-client/Makefile    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql14-client/Makefile    Sun Oct 16 14:42:49 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2022/08/15 20:59:39 adam Exp $
+# $NetBSD: Makefile,v 1.11 2022/10/16 14:42:50 gdt Exp $
 
 PKGNAME=       ${DISTNAME:S/-/14-client-/}
+PKGREVISION=   1
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql14/Makefile.common"
diff -r 4a7a3ab2ca6a -r 544f3b564c01 databases/postgresql14/Makefile.common
--- a/databases/postgresql14/Makefile.common    Sun Oct 16 13:58:50 2022 +0000
+++ b/databases/postgresql14/Makefile.common    Sun Oct 16 14:42:49 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.7 2022/08/15 20:59:39 adam Exp $
+# $NetBSD: Makefile.common,v 1.8 2022/10/16 14:42:50 gdt Exp $
 #
 # This Makefile fragment is included by all PostgreSQL packages built from
 # the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -68,6 +68,12 @@
 CONFIGURE_ARGS+=       --without-python
 CONFIGURE_ARGS+=       --without-tcl
 
+# Work around a bug in autoconf, that thinks almost all mkdir
+# implementations are deficient, and a bug someplace between postgis
+# and pgxs, that causes topology/Makefile.in to run pgxs's install-sh
+# but without a path.
+CONFIGURE_ENV+=                ac_cv_path_mkdir="mkdir"
+
 # avoid pointing to a wrapper
 CONFIGURE_ENV+=                MSGFMT=${TOOLS_PATH.msgfmt}
 



Home | Main Index | Thread Index | Old Index