Date: Tue, 22 Nov 2005 15:56:03 GMT From: "Scot W. Hetzel" <swhetzel@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/89422: comms/gnokii: post-build failure when postgresql is installed Message-ID: <200511221556.jAMFu3QJ089575@www.freebsd.org> Resent-Message-ID: <200511221600.jAMG0aFq055049@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 89422 >Category: ports >Synopsis: comms/gnokii: post-build failure when postgresql is installed >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 22 16:00:36 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Scot W. Hetzel >Release: FreeBSD 5.x >Organization: >Environment: >Description: The port fails to get past the post-build stage when databases/mysql*-client and databases/postgresql*-client are both installed (may also happen when only databases/postgresql*-client is installed). The port gives the following error: sed: 1: "s/^DB_LIBS = libfile.la ...": unescaped newline inside substitute pattern >How-To-Repeat: Install both databases/mysql*-client and database/postgresql*-client. Then build the port with WITH_SMSD defined. # make configure -DWITH_SMSD : # make post-build -DWITH_SMSD sed: 1: "s/^DB_LIBS = libfile.la ...": unescaped newline inside substitute pattern *** Error code 1 Stop in /usr/ports/comms/gnokii. >Fix: The problem is a missing "/" at the end of the second -e expression for the REPLACE_CMD that is enabled when WITH_PGSQL is defined. Index: Makefile =================================================================== RCS file: /home/ncvs/ports/comms/gnokii/Makefile,v retrieving revision 1.51 diff -u -r1.51 Makefile --- Makefile 13 Nov 2005 18:28:39 -0000 1.51 +++ Makefile 22 Nov 2005 05:51:39 -0000 @@ -147,7 +147,7 @@ @${REINPLACE_CMD} -e 's/^DB_LIBS := libfile.la$$/DB_LIBS = libfile.la libmysql.la/' ${WRKSRC}/smsd/Makefile .endif .if defined(WITH_PGSQL) - @${REINPLACE_CMD} -e 's/^DB_LIBS := libfile.la$$/DB_LIBS = libfile.la libpq.la/' -e 's/^DB_LIBS = libfile.la libmysql.la$$/DB_LIBS = libfile.la libpq.la libmysql.la' ${WRKSRC}/smsd/Makefile + @${REINPLACE_CMD} -e 's/^DB_LIBS := libfile.la$$/DB_LIBS = libfile.la libpq.la/' -e 's/^DB_LIBS = libfile.la libmysql.la$$/DB_LIBS = libfile.la libpq.la libmysql.la/' ${WRKSRC}/smsd/Makefile .endif @cd ${WRKSRC}/smsd && ${GMAKE} all .endif >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511221556.jAMFu3QJ089575>