From lennox@cs.columbia.edu  Sun May 25 19:13:28 2008
Return-Path: <lennox@cs.columbia.edu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DF3F1106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 May 2008 19:13:27 +0000 (UTC)
	(envelope-from lennox@cs.columbia.edu)
Received: from cnr.cs.columbia.edu (cnr.cs.columbia.edu [128.59.19.133])
	by mx1.freebsd.org (Postfix) with ESMTP id B510D8FC1C
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 May 2008 19:13:27 +0000 (UTC)
	(envelope-from lennox@cs.columbia.edu)
Received: from cnr.cs.columbia.edu (localhost [127.0.0.1])
	by cnr.cs.columbia.edu (8.13.6/8.13.6) with ESMTP id m4PJDQYY035332
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 May 2008 15:13:26 -0400 (EDT)
	(envelope-from lennox@cnr.cs.columbia.edu)
Received: (from lennox@localhost)
	by cnr.cs.columbia.edu (8.13.6/8.13.6/Submit) id m4PJDQje035329;
	Sun, 25 May 2008 15:13:26 -0400 (EDT)
	(envelope-from lennox)
Message-Id: <200805251913.m4PJDQje035329@cnr.cs.columbia.edu>
Date: Sun, 25 May 2008 15:13:26 -0400 (EDT)
From: Jonathan Lennox <lennox@cs.columbia.edu>
Reply-To: Jonathan Lennox <lennox@cs.columbia.edu>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/autoconf262 doesn't build with system texinfo on FreeBSD 5.x
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         123985
>Category:       ports
>Synopsis:       devel/autoconf262 doesn't build with system texinfo on FreeBSD 5.x
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 25 19:20:02 UTC 2008
>Closed-Date:    Sun May 25 23:04:28 UTC 2008
>Last-Modified:  Sun May 25 23:04:28 UTC 2008
>Originator:     Jonathan Lennox
>Release:        FreeBSD 5.5-RELEASE-p20 i386
>Organization:
Columbia University
>Environment:
System: FreeBSD cnr.cs.columbia.edu 5.5-RELEASE-p20 FreeBSD 5.5-RELEASE-p20 #27: Thu Apr 17 12:35:22 EDT 2008 lennox@cnr.cs.columbia.edu:/usr/obj/usr/src/sys/CNR i386


	
>Description:

The port devel/autoconf262 doesn't build using the system texinfo on FreeBSD
5.x.  The build fails as follows:

gmake[2]: Entering directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/doc'
Updating ./version.texi
restore=: && backupdir=".am$$" && \
	am__cwd=`pwd` && cd . && \
	rm -rf $backupdir && mkdir $backupdir && \
	if (/bin/sh /usr/ports/devel/autoconf262/work/autoconf-2.62/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \
	  for f in autoconf-2.62.info autoconf-2.62.info-[0-9] autoconf-2.62.info-[0-9][0-9] autoconf-2.62.i[0-9] autoconf-2.62.i[0-9][0-9]; do \
	    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
	  done; \
	else :; fi && \
	cd "$am__cwd"; \
	if /bin/sh /usr/ports/devel/autoconf262/work/autoconf-2.62/build-aux/missing --run makeinfo --no-split  -I . \
	 -o autoconf-2.62.info autoconf-2.62.texi; \
	then \
	  rc=0; \
	  cd .; \
	else \
	  rc=$?; \
	  cd . && \
	  $restore $backupdir/* `echo "./autoconf-2.62.info" | sed 's|[^/]*$||'`; \
	fi; \
	rm -rf $backupdir; exit $rc
autoconf-2.62.texi:1723: Unknown command `'.
autoconf-2.62.texi:3353: Unknown command `'.
autoconf-2.62.texi:3920: Unknown command `'.
[Many more instances of "Unknown command" error omitted.]
makeinfo: Removing output file `autoconf-2.62.info' due to errors; use --force to preserve.
gmake[2]: *** [autoconf-2.62.info] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/doc'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62'
gmake: *** [all] Error 2
*** Error code 2


>How-To-Repeat:

On FreeBSD 5.x:

portinstall devel/autoconf262

>Fix:

The following patch fixes the problem, by using the version of makeinfo from
the print/texinfo port on FreeBSD 5.x.

See also PRs ports/106379 and ports/106385, which fixed the same problem for
m4 and automake respectively.

--- devel/autoconf262/Makefile.orig	Sun May 25 15:03:59 2008
+++ devel/autoconf262/Makefile	Sun May 25 15:04:58 2008
@@ -28,6 +28,13 @@ USE_GMAKE=	yes
 USE_PERL5=	yes
 INFO=		autoconf-${BUILD_VERSION}
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 600000
+BUILD_DEPENDS+=	${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
+CONFIGURE_ENV+=	MAKEINFO="${LOCALBASE}/bin/makeinfo"
+.endif
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV+=	CONFIG_SHELL=${SH} M4=${LOCALBASE}/bin/gm4
 CONFIGURE_ARGS=	--program-suffix=-${BUILD_VERSION} --without-lispdir
@@ -57,4 +64,4 @@ post-install:
 	@${INSTALL_SCRIPT} ${WRKSRC}/build-aux/${FILE} ${PREFIX}/share/autoconf-${BUILD_VERSION}
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ade 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 25 19:20:13 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123985 

From: Kris Kennaway <kris@FreeBSD.org>
To: Jonathan Lennox <lennox@cs.columbia.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/123985: devel/autoconf262 doesn't build with system texinfo
 on FreeBSD 5.x
Date: Sun, 25 May 2008 21:44:53 +0200

 Jonathan Lennox wrote:
 >> Number:         123985
 >> Category:       ports
 >> Synopsis:       devel/autoconf262 doesn't build with system texinfo on FreeBSD 5.x
 >> Confidential:   no
 >> Severity:       serious
 >> Priority:       medium
 >> Responsible:    freebsd-ports-bugs
 >> State:          open
 >> Quarter:        
 >> Keywords:       
 >> Date-Required:
 >> Class:          sw-bug
 >> Submitter-Id:   current-users
 >> Arrival-Date:   Sun May 25 19:20:02 UTC 2008
 >> Closed-Date:
 >> Last-Modified:
 >> Originator:     Jonathan Lennox
 >> Release:        FreeBSD 5.5-RELEASE-p20 i386
 >> Organization:
 > Columbia University
 >> Environment:
 > System: FreeBSD cnr.cs.columbia.edu 5.5-RELEASE-p20 FreeBSD 5.5-RELEASE-p20 #27: Thu Apr 17 12:35:22 EDT 2008 lennox@cnr.cs.columbia.edu:/usr/obj/usr/src/sys/CNR i386
 > 
 > 
 > 	
 >> Description:
 > 
 > The port devel/autoconf262 doesn't build using the system texinfo on FreeBSD
 > 5.x.  The build fails as follows:
 > 
 > gmake[2]: Entering directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/doc'
 > Updating ./version.texi
 > restore=: && backupdir=".am$$" && \
 > 	am__cwd=`pwd` && cd . && \
 > 	rm -rf $backupdir && mkdir $backupdir && \
 > 	if (/bin/sh /usr/ports/devel/autoconf262/work/autoconf-2.62/build-aux/missing --run makeinfo --version) >/dev/null 2>&1; then \
 > 	  for f in autoconf-2.62.info autoconf-2.62.info-[0-9] autoconf-2.62.info-[0-9][0-9] autoconf-2.62.i[0-9] autoconf-2.62.i[0-9][0-9]; do \
 > 	    if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
 > 	  done; \
 > 	else :; fi && \
 > 	cd "$am__cwd"; \
 > 	if /bin/sh /usr/ports/devel/autoconf262/work/autoconf-2.62/build-aux/missing --run makeinfo --no-split  -I . \
 > 	 -o autoconf-2.62.info autoconf-2.62.texi; \
 > 	then \
 > 	  rc=0; \
 > 	  cd .; \
 > 	else \
 > 	  rc=$?; \
 > 	  cd . && \
 > 	  $restore $backupdir/* `echo "./autoconf-2.62.info" | sed 's|[^/]*$||'`; \
 > 	fi; \
 > 	rm -rf $backupdir; exit $rc
 > autoconf-2.62.texi:1723: Unknown command `'.
 > autoconf-2.62.texi:3353: Unknown command `'.
 > autoconf-2.62.texi:3920: Unknown command `'.
 > [Many more instances of "Unknown command" error omitted.]
 > makeinfo: Removing output file `autoconf-2.62.info' due to errors; use --force to preserve.
 > gmake[2]: *** [autoconf-2.62.info] Error 1
 > gmake[2]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62/doc'
 > gmake[1]: *** [all-recursive] Error 1
 > gmake[1]: Leaving directory `/usr/ports/devel/autoconf262/work/autoconf-2.62'
 > gmake: *** [all] Error 2
 > *** Error code 2
 > 
 > 
 >> How-To-Repeat:
 > 
 > On FreeBSD 5.x:
 > 
 > portinstall devel/autoconf262
 > 
 >> Fix:
 > 
 > The following patch fixes the problem, by using the version of makeinfo from
 > the print/texinfo port on FreeBSD 5.x.
 > 
 > See also PRs ports/106379 and ports/106385, which fixed the same problem for
 > m4 and automake respectively.
 > 
 > --- devel/autoconf262/Makefile.orig	Sun May 25 15:03:59 2008
 > +++ devel/autoconf262/Makefile	Sun May 25 15:04:58 2008
 > @@ -28,6 +28,13 @@ USE_GMAKE=	yes
 >  USE_PERL5=	yes
 >  INFO=		autoconf-${BUILD_VERSION}
 >  
 > +.include <bsd.port.pre.mk>
 > +
 > +.if ${OSVERSION} < 600000
 > +BUILD_DEPENDS+=	${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
 > +CONFIGURE_ENV+=	MAKEINFO="${LOCALBASE}/bin/makeinfo"
 > +.endif
 > +
 >  GNU_CONFIGURE=	yes
 >  CONFIGURE_ENV+=	CONFIG_SHELL=${SH} M4=${LOCALBASE}/bin/gm4
 >  CONFIGURE_ARGS=	--program-suffix=-${BUILD_VERSION} --without-lispdir
 > @@ -57,4 +64,4 @@ post-install:
 >  	@${INSTALL_SCRIPT} ${WRKSRC}/build-aux/${FILE} ${PREFIX}/share/autoconf-${BUILD_VERSION}
 >  .endfor
 >  
 > -.include <bsd.port.mk>
 > +.include <bsd.port.post.mk>
 
 Note that support for all FreeBSD 5.x users will be ended on May 31, 
 i.e. in 6 days.
 
 Kris
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Sun May 25 23:03:34 UTC 2008 
State-Changed-Why:  
Given that support for 5.x is going away in 6 days time at the end of May, 
I see no reason to add this in, only to remove it again on June 1st. 

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