From owner-freebsd-ports@FreeBSD.ORG Mon Jan 30 15:50:35 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C949F106564A for ; Mon, 30 Jan 2012 15:50:35 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9532E8FC1B for ; Mon, 30 Jan 2012 15:50:35 +0000 (UTC) Received: by iaeo4 with SMTP id o4so8987801iae.13 for ; Mon, 30 Jan 2012 07:50:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=o+jfzTxiH9CMi2VL2Lmbx7ta+HwmNfd5XRpAzRGoAik=; b=ixJGiLtpC4hcC8LRzAe7u7VnsbhKWn5LNmQ33w7HrjfkUF/CDxRMPfne+vofM+YwsS 03ZyXgnSjbNx49oluoClF1E2F615O0+3rwvfbpClTgzFs4IBwfW5TAiRPu/u+trsNf+E GlGYoWJPgFpThemIVeV6jdbq6Djdl40aM/Bww= Received: by 10.50.153.234 with SMTP id vj10mr18271209igb.16.1327938634856; Mon, 30 Jan 2012 07:50:34 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.183.21 with HTTP; Mon, 30 Jan 2012 07:50:03 -0800 (PST) In-Reply-To: <4F26AEE4.20005@gmail.com> References: <4F2699BC.4040108@gmail.com> <4F26AEE4.20005@gmail.com> From: Chris Rees Date: Mon, 30 Jan 2012 15:50:03 +0000 X-Google-Sender-Auth: 2WUg8e73W6XmjWTGMg3PA0M1t9s Message-ID: To: Volodymyr Kostyrko Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD ports list Subject: Re: databases/postgresql91-server - fails to compile with selected options X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2012 15:50:35 -0000 On 30 January 2012 14:53, Volodymyr Kostyrko wrote: > Volodymyr Kostyrko wrote: >> >> I'm in process of upgrading FreeBSD to 9.0 on my servers. Today I found >> that databases/postgresql91-server stops building with my selected >> options. The one that pains me most is absence of pam integration. > > > I've found who to blame: > > "/usr/ports/Mk/bsd.port.mk", line 1258: warning: > OPTIONSFILE:/var/db/ports/postgresql/options UNIQUENAME:postgresql > "/usr/ports/Mk/bsd.port.mk", line 5935: warning: > OPTIONSFILE:/var/db/ports/postgresql91/options UNIQUENAME:postgresql91 > "/usr/ports/Mk/bsd.port.mk", line 6056: warning: > OPTIONSFILE:/var/db/ports/postgresql91/options UNIQUENAME:postgresql91 > > 4 days ago +crees added UNIQUNAME declaration to port and now it actually > fails to find correct configuration. > > Dunno how to fix though... D'oh! The Makefile defines DISTVERSION, but UNIQUENAME depends on PORTVERSION, which isn't set at that point. This means that UNIQUENAME changes halfway through bsd.port.mk. I'm really sorry about that; I'm not sure how it went unnoticed. Thank you for the report, I'll fix it when I get home. For now, just replace the PORTVERSION in UNIQUENAME with DISTVERSION, it'll work then. Chris