From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 13 13:55:49 2011 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FE7A106564A; Wed, 13 Apr 2011 13:55:49 +0000 (UTC) (envelope-from fw@moov.de) Received: from krusty.moov.de (krusty.moov.de [77.73.249.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1644A8FC14; Wed, 13 Apr 2011 13:55:48 +0000 (UTC) Received: from krusty.moov.de (localhost [127.0.0.1]) by krusty.moov.de (inotronic CheckMail) with ESMTP id 647485642E; Wed, 13 Apr 2011 15:40:40 +0200 (CEST) X-Filter-Status: scanned by inotronic CheckMail X-Spam-Flag: NO X-Spam-Score: -2.856 X-Spam-Level: X-Spam-Status: No, score=-2.856 tagged_above=-9999 tests=[ALL_TRUSTED=-1, AWL=0.044, BAYES_00=-1.9] autolearn=ham Received: from krusty.moov.de ([127.0.0.1]) by krusty.moov.de (krusty.moov.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ldmsTKC7nzYh; Wed, 13 Apr 2011 15:40:10 +0200 (CEST) Received: from www.moov.de (localhost [127.0.0.1]) by krusty.moov.de (inotronic CheckMail) with ESMTP id 60FB556423; Wed, 13 Apr 2011 15:40:09 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Wed, 13 Apr 2011 15:40:09 +0200 From: Frank Wall To: , , In-Reply-To: <201104131050.p3DAo5kE009100@freefall.freebsd.org> References: <201104131050.p3DAo5kE009100@freefall.freebsd.org> Message-ID: <3217cae4d23aa71674cb2192dc78e58a@localhost> X-Sender: fw@moov.de User-Agent: inotronic CheckMail Cc: Subject: Re: ports/156367: net/pecl-yaz still BROKEN 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: Wed, 13 Apr 2011 13:55:49 -0000 Well, I think the pre-configure section in the Makefile is the reason for this problem. The REINPLACE_CMD seems to be wrong. I tried to figure out what happens and did a little tracing on the configure script: /usr/ports/net/pecl-yaz/work/yaz-1.0.14# sh -x configure 2>&1 |grep YAZ + printf %s\n configure:4054: checking for YAZ support + printf %s checking for YAZ support... checking for YAZ support... + test = set + PHP_YAZ=no + PHP_YAZ=yes + printf %s\n #define HAVE_YAZ 1 + ICU_CPPFLAGS= -I/usr/local/include -D YAZ_HAVE_ICU=1 + YAZVERSION=4.1.7 + YAZLIB=-lyaz [..] As you can see, the version information is written to the YAZVERSION variable, but the REINPLACE_CMD modifies the configure script to use the YAZ_VERSION variable. So I suggest to NOT use the REINPLACE_CMD for yaz 4.1.7 and newer. I remember this was introduced with ports/154527 [1]. So this all seems somewhat odd to me. This patch fixes it for me. --- net/pecl-yaz/Makefile.orig 2011-03-23 17:45:30.000000000 +0100 +++ net/pecl-yaz/Makefile 2011-04-13 15:34:50.000000000 +0200 @@ -27,7 +27,7 @@ .include pre-configure: - @if [ `${PKG_INFO} 'yaz>=4.1.4' > /dev/null 2>&1` ]; then \ + @if ${PKG_INFO} 'yaz<=4.1.6' > /dev/null 2>&1; then \ ${REINPLACE_CMD} -e 's|YAZVERSION|YAZ_VERSION|g' \ ${WRKSRC}/configure; fi By using this patch configure is happy again: ===> Configuring for pecl-yaz-1.0.14_3 [...] checking for PHP extension directory... /usr/local/lib/php/20060613 [...] checking for YAZ support... yes, shared checking for YAZ version... 4.1.7 [...] [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/154527 Bye - Frank