Date: Thu, 29 Nov 2001 00:24:46 +0300 (MSK) From: Alexey Neyman <alex.neyman@auriga.ru> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/32362: postgresql7 port should install more *.h files Message-ID: <200111282124.fASLOki16130@vagabond.auriga.ru>
next in thread | raw e-mail | index | archive | help
>Number: 32362 >Category: ports >Synopsis: postgresql7 port should install more *.h files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Nov 28 13:30:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Alexey Neyman >Release: FreeBSD 4.4-STABLE i386 >Organization: Auriga, Inc. >Environment: System: FreeBSD vagabond.auriga.ru 4.4-STABLE FreeBSD 4.4-STABLE #2: Tue Nov 27 20:23:30 MSK 2001 root@vagabond.auriga.ru:/usr/obj/usr/src/sys/VAGABOND i386 >Description: It is unable to compile an library that uses PostgreSQL SPI (server programming interface) with its default installation. All SPI functions are declared in executor/spi.h, which is not installed by default. This is not the only file needed to compile such applications, though. As using this database interface does not require anything except these headers, I think they should be installed with postgresql7 port, or at least made optional at install time. >How-To-Repeat: >Fix: Workaround: cd /usr/ports/databases/postgresql7 make configure cd work/postgresql-7.1.3/src/include cp -r * /usr/local/include/pgsql/ Fix: [I'm not good at black plist magic, so this should be done with some ports-experienced guy] Index: Makefile =================================================================== RCS file: /usr/local/cvsroot/ports/databases/postgresql7/Makefile,v retrieving revision 1.89 diff -u -r1.89 Makefile --- Makefile 24 Sep 2001 22:54:42 -0000 1.89 +++ Makefile 28 Nov 2001 21:14:31 -0000 @@ -145,6 +145,10 @@ > ${PREFIX}/etc/rc.d/010.pgsql.sh @ ${CHMOD} 554 ${PREFIX}/etc/rc.d/010.pgsql.sh @ ${CHOWN} root:pgsql ${PREFIX}/etc/rc.d/010.pgsql.sh +.if defined(WITH_ALL_HEADERS) + @ cd ${WRKSRC} ;\ + make install-all-headers +.endif .if defined(WITH_TCL) # Preparing a loadable TCL-package (pkgIndex.tcl) @${MKDIR} ${PREFIX}/lib/tcl${WITH_TCL}/Pgtcl1.3 Index: scripts/configure.postgresql =================================================================== RCS file: /usr/local/cvsroot/ports/databases/postgresql7/scripts/configure.postgresql,v retrieving revision 1.7 diff -u -r1.7 configure.postgresql --- scripts/configure.postgresql 13 Jun 2001 14:37:45 -0000 1.7 +++ scripts/configure.postgresql 28 Nov 2001 21:09:31 -0000 @@ -15,11 +15,11 @@ fi if [ "${BATCH}" ]; then - set \"MultiByte\" \"ODBC\" \"SSL\" \"TCL\" \"TCLTK\" + set \"MultiByte\" \"ODBC\" \"SSL\" \"TCL\" \"TCLTK\" \"Headers\" else /usr/bin/dialog --title "configuration options" --clear \ --checklist "\n\ -Please select desired options:" -1 -1 7 \ +Please select desired options:" -1 -1 8 \ JDBC "Java DataBase Connectivity" OFF \ MultiByte "Multibyte for Multilingualism" ON \ ODBC "Open Database Connectivity" ON \ @@ -27,6 +27,7 @@ TCLTK "Tcl/Tk" ON \ SSL "Secure Socket Layer" ON \ KRB5 "Kerberos 5" OFF \ +Headers "Install all header files" ON \ 2> /tmp/checklist.tmp.$$ retval=$? @@ -130,6 +131,11 @@ ;; \"KRB5\") KRB5=1 + ;; + \"Headers\") + echo "#All headers" + echo "WITH_ALL_HEADERS=YES" + echo ;; \"nothing\"|true) ;; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111282124.fASLOki16130>