From nobody@FreeBSD.org  Sat Jul 28 10:33:40 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 33F7616A418
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 28 Jul 2007 10:33:40 +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 1FA5913C4D3
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 28 Jul 2007 10:33:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6SAXdal021957
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 28 Jul 2007 10:33:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l6SAXdon021956;
	Sat, 28 Jul 2007 10:33:39 GMT
	(envelope-from nobody)
Message-Id: <200707281033.l6SAXdon021956@www.freebsd.org>
Date: Sat, 28 Jul 2007 10:33:39 GMT
From: Benno <bennovandenberg@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] automake16 doesn't build because of autoconf261
X-Send-Pr-Version: www-3.0

>Number:         114989
>Category:       ports
>Synopsis:       [patch] automake16 doesn't build because of autoconf261
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 28 10:40:00 GMT 2007
>Closed-Date:    Sat Jul 28 21:01:58 GMT 2007
>Last-Modified:  Sat Jul 28 21:01:58 GMT 2007
>Originator:     Benno
>Release:        6.2-RELEASE
>Organization:
>Environment:
FreeBSD freebsd6.internal.hatchan.nl 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:40:53 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When trying to build automake16 it will build autoconf261 if its not installed. After its installed it will give the following error: 'configure: error: Autoconf 2.52 or better is required'

When building autoconf261 it doesn't add a '-' to the suffix (like autoconf259 or autoconf253 do). So it installs the executables as *2.61 instead of *-2.61 (ex: autoconf2.61 instead of autoconf-2.61)

Also some help files and uninstall scripts don't work because of this.
>How-To-Repeat:
Uninstall any autoconf and/or automake packages
cd /usr/ports/devel/automake16/
make install clean
>Fix:
--- Makefile.old        Sat Jul 28 12:06:12 2007
+++ Makefile    Sat Jul 28 12:06:55 2007
@@ -7,7 +7,7 @@

 PORTNAME=      autoconf
 PORTVERSION=   2.61
-PORTREVISION=  1
+PORTREVISION=  2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=    autoconf
@@ -31,7 +31,7 @@

 GNU_CONFIGURE= yes
 CONFIGURE_ENV+=        CONFIG_SHELL=${SH} M4=${LOCALBASE}/bin/gm4
-CONFIGURE_ARGS=        --program-suffix=${BUILD_VERSION} --without-lispdir
+CONFIGURE_ARGS=        --program-suffix=-${BUILD_VERSION} --without-lispdir
 CONFIGURE_TARGET=      --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}

 GENERIC_TOOLS= config.guess config.sub elisp-comp install-sh mdate-sh missing
@@ -42,11 +42,11 @@
 MAN1=          ${MAN1_PAGES:S/$/-${BUILD_VERSION}.1/g}

 post-patch:
-       @(cd ${WRKSRC} && ${REINPLACE_CMD} -E 's,(PACKAGE=autoconf),\1${BUILD_VERSION},' configure)
+       @(cd ${WRKSRC} && ${REINPLACE_CMD} -E 's,(PACKAGE=autoconf),\1-${BUILD_VERSION},' configure)
        @(cd ${WRKSRC}/man && \
                for file in *.[1x]; do \
-                       ${REINPLACE_CMD} -E 's,([^-]auto)(conf|make|reconf|update|header|scan),\1\2${BUILD_VERSION},g ; \
-                                               s,(config\.guess|config\.sub|ifnames),\1${BUILD_VERSION},g' $$file ; \
+                       ${REINPLACE_CMD} -E 's,([^-]auto)(conf|make|reconf|update|header|scan),\1\2-${BUILD_VERSION},g ; \
+                                               s,(config\.guess|config\.sub|ifnames),\1-${BUILD_VERSION},g' $$file ; \
                done)
        @(cd ${WRKSRC}/doc && \
                ${RM} -f *.info && \

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ade 
Responsible-Changed-By: chinsan 
Responsible-Changed-When: Sat Jul 28 13:41:28 UTC 2007 
Responsible-Changed-Why:  
It has been fixed by ade@, thx. :) 


http://www.freebsd.org/cgi/query-pr.cgi?pr=114989 
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Sat Jul 28 21:01:28 UTC 2007 
State-Changed-Why:  
Update autoconf261 to the _2 PORTREVISION, and things will be happy. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=114989 
>Unformatted:
