From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 8 00:40:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 754B91065670 for ; Mon, 8 Jun 2009 00:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDF28FC12 for ; Mon, 8 Jun 2009 00:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n580e1Ba099506 for ; Mon, 8 Jun 2009 00:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n580e1nk099505; Mon, 8 Jun 2009 00:40:01 GMT (envelope-from gnats) Resent-Date: Mon, 8 Jun 2009 00:40:01 GMT Resent-Message-Id: <200906080040.n580e1nk099505@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sahil Tandon Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F047F106564A for ; Mon, 8 Jun 2009 00:30:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id DE1AC8FC0A for ; Mon, 8 Jun 2009 00:30:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n580UvcA084495 for ; Mon, 8 Jun 2009 00:30:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n580UvFt084494; Mon, 8 Jun 2009 00:30:57 GMT (envelope-from nobody) Message-Id: <200906080030.n580UvFt084494@www.freebsd.org> Date: Mon, 8 Jun 2009 00:30:57 GMT From: Sahil Tandon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/135340: [PATCH] dns/powerdns: amend Makefile so installation does not fail in case of custom PREFIX X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 00:40:02 -0000 >Number: 135340 >Category: ports >Synopsis: [PATCH] dns/powerdns: amend Makefile so installation does not fail in case of custom PREFIX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 08 00:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Sahil Tandon >Release: 7.1-RELEASE >Organization: >Environment: FreeBSD internal.hamla.org 7.1-RELEASE FreeBSD 7.1-RELEASE >Description: See one-line description or build failture log: http://qatty.tecnik93.com//errors/7-STABLE-FPT-CustDir/powerdns-2.9.22.log >How-To-Repeat: Install with port with non-default PREFIX. >Fix: Apply patch in which we: - bump PORTREVISION - modify CONFIGURE_ARGS when WITH_PGSQL is set (which is the default) - fix upstream configure script to look for PGSQL includes where they are actually installed, no matter the value of PREFIX. Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/dns/powerdns/Makefile,v retrieving revision 1.65 diff -u -r1.65 Makefile --- Makefile 1 Feb 2009 16:51:56 -0000 1.65 +++ Makefile 8 Jun 2009 00:21:04 -0000 @@ -7,6 +7,7 @@ PORTNAME= powerdns PORTVERSION= 2.9.22 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ \ http://mirrors.evolva.ro/powerdns.com/releases/ @@ -64,6 +65,7 @@ .if defined(WITH_PGSQL) USE_PGSQL?= YES CONFIGURE_MODULES+= "gpgsql" +CONFIGURE_ARGS+= --with-pgsql=${PREFIX} PLIST_SUB+= WITHPGSQL="" .else CONFIGURE_ARGS+= --disable-pgsql @@ -124,7 +126,11 @@ -e 's;@modulelibs@;@modulelibs@ -llber;' \ ${WRKSRC}/pdns/Makefile.in .endif - +.if defined(WITH_PGSQL) +pre-configure: + @${REINPLACE_CMD} -E -e 's;(PGSQL_inc_check="\$$withval/include/pgsql)";\1 \$$withval/include";' \ + ${WRKSRC}/configure +.endif post-install: .if !exists(${PREFIX}/etc/pdns/pdns.conf) ${INSTALL_DATA} ${PREFIX}/etc/pdns/pdns.conf-dist ${PREFIX}/etc/pdns/pdns.conf >Release-Note: >Audit-Trail: >Unformatted: