Subject: pkg/12944: databases/postgresql doesn't build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <eric@cirr.com>
List: netbsd-bugs
Date: 05/14/2001 22:45:45
>Number: 12944
>Category: pkg
>Synopsis: databases/postgresql 7.1.1 doesn't build/install
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 14 20:45:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Eric Schnoebelen
>Release: 20010514
>Organization:
Central Iowa (Model) Railroad, Dallas, TX US
>Environment:
System: NetBSD milo.cirr.com 1.5.1_BETA NetBSD 1.5.1_BETA (MILO) #6: Fri Apr 13 13:53:34 CDT 2001 eric@milo.cirr.com:/home/milo/eric/work/usr/src/sys/arch/alpha/compile/MILO alpha
>Description:
databases/postgresql doesn't successfully install. (see
typescript). It fails to build/install because of a
post-extract rule in Makefile.common, when databases/postgresql
doesn't extract. (databases/postgresql-* do extract.)
Additionally, databases/postgresql-* don't CONFLICT with
databases/postgresql<=7.0.3, and should.
Further, the dependences of databases/postgresql on
databases/postgresql-* were improperly specified.
Script started on Mon May 14 21:15:40 2001
milo-> make
===> Validating dependencies for postgresql-7.1.1
===> Extracting for postgresql-7.1.1
===> Required installed package postgresql-client>=7.1.1: postgresql-client-7.1.1 found
===> Required installed package postgresql-server>=7.1.1: postgresql-server-7.1.1 found
===> Required installed package postgresql-docs>=7.1.1: postgresql-docs-7.1.1 found
===> Required installed package gmake>=3.78: gmake-3.79.1 found
/bin/mkdir -p -p /home/milo/eric/work/pkgsrc/databases/postgresql/work/include
/bin/rm -f /home/milo/eric/work/pkgsrc/databases/postgresql/work/postgresql-7.1.1/src/Makefile.custom
/bin/cp -f /home/milo/eric/work/pkgsrc/databases/postgresql/../../databases/postgresql/files/Makefile.custom /home/milo/eric/work/pkgsrc/databases/postgresql/work/postgresql-7.1.1/src/Makefile.custom
cp: /home/milo/eric/work/pkgsrc/databases/postgresql/work/postgresql-7.1.1/src/Makefile.custom: No such file or directory
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
milo->
Script done on Mon May 14 21:15:46 2001
>How-To-Repeat:
See typescript above.
>Fix:
Possible fix for build/install problem: break out the variables
needed by databases/postgresql from Makefile.common into a
Makefile.version, have Makefile.common include Makefile.version,
and have databases/postgresql/Makefile only include
Makefile.version.
Diff follows.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/postgresql/Makefile,v
retrieving revision 1.64
diff -u -b -w -r1.64 Makefile
--- Makefile 2001/05/14 14:52:36 1.64
+++ Makefile 2001/05/15 03:37:04
@@ -1,14 +1,14 @@
# $NetBSD: Makefile,v 1.64 2001/05/14 14:52:36 jlam Exp $
-.include "../../databases/postgresql/Makefile.common"
+.include "../../databases/postgresql/Makefile.version"
PKGNAME= postgresql-${PG_VERS}
PG_PKG_VERS= # empty
COMMENT= Robust, next generation, object-relational DBMS
-DEPENDS+= postgresql-client>=${PG_BASE_VERS}:../../postgresql-client
-DEPENDS+= postgresql-server>=${PG_BASE_VERS}:../../postgresql-server
-DEPENDS+= postgresql-docs>=${PG_BASE_VERS}:../../postgresql-docs
+DEPENDS+= postgresql-client>=${PG_BASE_VERS}:../../databases/postgresql-client
+DEPENDS+= postgresql-server>=${PG_BASE_VERS}:../../databases/postgresql-server
+DEPENDS+= postgresql-docs>=${PG_BASE_VERS}:../../databases/postgresql-docs
EXTRACT_ONLY= # empty
NO_CHECKSUM= # defined
Index: Makefile.common
===================================================================
RCS file: /cvsroot/pkgsrc/databases/postgresql/Makefile.common,v
retrieving revision 1.13
diff -u -b -w -r1.13 Makefile.common
--- Makefile.common 2001/05/14 15:45:08 1.13
+++ Makefile.common 2001/05/15 03:37:04
@@ -9,77 +9,7 @@
# <lang>-postgresql client-side interface to PostgreSQL
# postgresql-<lang> server-side module for PostgreSQL backend
-DISTNAME= postgresql-${PG_DIST_VERS}
-CATEGORIES+= databases
-MASTER_SITES= http://www.postgresql.org/ftpsite/v${PG_DIST_VERS}/ \
- ftp://ftp.PostgreSQL.org/pub/v${PG_DIST_VERS}/ \
- ftp://ftp.de.postgresql.org/v${PG_DIST_VERS}/ \
- ftp://ch.postgresql.org/mirror/postgresql/pub/v${PG_DIST_VERS}/ \
- ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/v${PG_DIST_VERS}/ \
- ftp://looking-glass.usask.ca/pub/postgresql/v${PG_DIST_VERS}/ \
- ftp://ftp.sunsite.auc.dk/mirrors/www.postgresql.org/pub/v${PG_DIST_VERS}/ \
- ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/v${PG_DIST_VERS}/
-
-MAINTAINER= jlam@netbsd.org
-HOMEPAGE= http://www.postgresql.org/
-
-DISTINFO_FILE= ${.CURDIR}/../../databases/postgresql/distinfo
-COMMON_FILESDIR= ${.CURDIR}/../../databases/postgresql/files
-PATCHDIR= ${.CURDIR}/../../databases/postgresql/patches
-
-# Version numbering scheme:
-#
-# PG_DIST_VERS version number on the postgresql distfile
-# PG_BASE_VERS pkgsrc-mangled version number (convert pl -> .)
-# PG_PKG_VERS pkgsrc revisions of postgresql (nbX, etc.)
-# PG_VERS pkgsrc version number of package
-#
-PG_DIST_VERS= 7.1.1
-PG_BASE_VERS= ${PG_DIST_VERS}
-PG_PKG_VERS?= # empty
-PG_VERS= ${PG_BASE_VERS}${PG_PKG_VERS}
-
-USE_GMAKE= # defined
-GNU_CONFIGURE= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-# PG_MB_ENCODING may be set to any of:
-#
-# SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL,
-# LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, KOI8, WIN, ALT
-#
-# This variable controls the language encoding on the backend process.
-
-.if defined(PG_MB_ENCODING)
-CONFIGURE_ARGS+= --enable-multibyte=${PG_MB_ENCODING}
-.else
-CONFIGURE_ARGS+= --enable-multibyte # accept default
-.endif
-
-CONFIGURE_ARGS+= --disable-odbc
-CONFIGURE_ARGS+= --without-java
-CONFIGURE_ARGS+= --without-perl
-CONFIGURE_ARGS+= --without-python
-CONFIGURE_ARGS+= --without-tcl
-CONFIGURE_ARGS+= --without-tk
-
-CONFIGURE_ARGS+= --includedir=${PREFIX}/include/pgsql
-CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/html/postgresql
-
-CONFIGURE_ARGS+= --disable-readline
-CONFIGURE_ARGS+= --enable-locale
-CONFIGURE_ARGS+= --enable-syslog
-CONFIGURE_ARGS+= --with-CXX
-CONFIGURE_ARGS+= --with-template="${LOWER_OPSYS}"
-
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
-CONFIGURE_ENV+= LIBS="${LIBS}"
-MAKE_ENV+= CUSTOM_COPT="${CFLAGS}"
-
-WRKINCDIR= ${WRKDIR}/include
-CPPFLAGS+= -I${WRKINCDIR}
-CFLAGS+= -I${WRKINCDIR}
+.include "../../databases/postgresql/Makefile.version"
post-extract:
${MKDIR} -p ${WRKINCDIR}
--- /dev/null Mon May 14 22:31:23 2001
+++ Makefile.version Mon May 14 21:23:13 2001
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile.common,v 1.13 2001/05/14 15:45:08 jlam Exp $
+#
+# This Makefile fragment is included by all PostgreSQL packages built from
+# the main sources of the PostgreSQL distribution.
+#
+# The PostgreSQL package naming scheme, aside from the obvious piecewise
+# packages, is as follows:
+#
+# <lang>-postgresql client-side interface to PostgreSQL
+# postgresql-<lang> server-side module for PostgreSQL backend
+
+DISTNAME= postgresql-${PG_DIST_VERS}
+CATEGORIES+= databases
+MASTER_SITES= http://www.postgresql.org/ftpsite/v${PG_DIST_VERS}/ \
+ ftp://ftp.PostgreSQL.org/pub/v${PG_DIST_VERS}/ \
+ ftp://ftp.de.postgresql.org/v${PG_DIST_VERS}/ \
+ ftp://ch.postgresql.org/mirror/postgresql/pub/v${PG_DIST_VERS}/ \
+ ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/v${PG_DIST_VERS}/ \
+ ftp://looking-glass.usask.ca/pub/postgresql/v${PG_DIST_VERS}/ \
+ ftp://ftp.sunsite.auc.dk/mirrors/www.postgresql.org/pub/v${PG_DIST_VERS}/ \
+ ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/v${PG_DIST_VERS}/
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://www.postgresql.org/
+
+DISTINFO_FILE= ${.CURDIR}/../../databases/postgresql/distinfo
+COMMON_FILESDIR= ${.CURDIR}/../../databases/postgresql/files
+PATCHDIR= ${.CURDIR}/../../databases/postgresql/patches
+
+# Version numbering scheme:
+#
+# PG_DIST_VERS version number on the postgresql distfile
+# PG_BASE_VERS pkgsrc-mangled version number (convert pl -> .)
+# PG_PKG_VERS pkgsrc revisions of postgresql (nbX, etc.)
+# PG_VERS pkgsrc version number of package
+#
+PG_DIST_VERS= 7.1.1
+PG_BASE_VERS= ${PG_DIST_VERS}
+PG_PKG_VERS?= # empty
+PG_VERS= ${PG_BASE_VERS}${PG_PKG_VERS}
+
+USE_GMAKE= # defined
+GNU_CONFIGURE= # defined
+
+.include "../../mk/bsd.prefs.mk"
+
+# PG_MB_ENCODING may be set to any of:
+#
+# SQL_ASCII, EUC_JP, EUC_CN, EUC_KR, EUC_TW, UNICODE, MULE_INTERNAL,
+# LATIN1, LATIN2, LATIN3, LATIN4, LATIN5, KOI8, WIN, ALT
+#
+# This variable controls the language encoding on the backend process.
+
+.if defined(PG_MB_ENCODING)
+CONFIGURE_ARGS+= --enable-multibyte=${PG_MB_ENCODING}
+.else
+CONFIGURE_ARGS+= --enable-multibyte # accept default
+.endif
+
+CONFIGURE_ARGS+= --disable-odbc
+CONFIGURE_ARGS+= --without-java
+CONFIGURE_ARGS+= --without-perl
+CONFIGURE_ARGS+= --without-python
+CONFIGURE_ARGS+= --without-tcl
+CONFIGURE_ARGS+= --without-tk
+
+CONFIGURE_ARGS+= --includedir=${PREFIX}/include/pgsql
+CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/html/postgresql
+
+CONFIGURE_ARGS+= --disable-readline
+CONFIGURE_ARGS+= --enable-locale
+CONFIGURE_ARGS+= --enable-syslog
+CONFIGURE_ARGS+= --with-CXX
+CONFIGURE_ARGS+= --with-template="${LOWER_OPSYS}"
+
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ENV+= LIBS="${LIBS}"
+MAKE_ENV+= CUSTOM_COPT="${CFLAGS}"
+
+WRKINCDIR= ${WRKDIR}/include
+CPPFLAGS+= -I${WRKINCDIR}
+CFLAGS+= -I${WRKINCDIR}
>Release-Note:
>Audit-Trail:
>Unformatted: