NetBSD Problem Report #24378

Received: (qmail 9535 invoked by uid 605); 10 Feb 2004 08:57:46 -0000
Message-Id: <200402100858.i1A8wNx29786@polaris.garbled.net>
Date: Tue, 10 Feb 2004 01:58:23 -0700 (MST)
From: root@garbled.net
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: root@garbled.net
To: gnats-bugs@gnats.netbsd.org
Subject: packages which require automake 1.8 are broken by tools.mk
X-Send-Pr-Version: 3.95

>Number:         24378
>Category:       pkg
>Synopsis:       packages which require automake 1.8 are broken by tools.mk
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 10 08:58:00 +0000 2004
>Closed-Date:    Wed Feb 11 02:15:28 +0000 2004
>Last-Modified:  Wed Feb 11 02:15:28 +0000 2004
>Originator:     Tim Rightnour
>Release:        NetBSD 1.6.1
>Organization:

>Environment:


System: NetBSD polaris 1.6.1 NetBSD 1.6.1 (POLARIS) #7: Tue Oct 21 16:55:38 MST 2003 root@polaris:/usr/src/netbsd16/sys/arch/i386/compile/POLARIS i386
Architecture: i386
Machine: i386
>Description:

Any package that requires automake version 1.8 to rebuild it's configure
script as part of the build process, will not function properly due to the
changes in tools.mk.

The tools.mk AUTOCONF_OVERRIDE settings, create stub scripts for each auto-tool
which calls missing, to prevent the running of automake tools during the build.
However, this has the side-effect, of preventing those tools from running at
all when expressly called by the package.  

net/zebra is a good example of how this fails.  The package attempts to
execute ${AUTORECONF} in the pre-configure stage.  autoreconf tries to run
aclocal, and the other auto-tools, but instead can only find the stubs we have
created for them in work/.tools/bin.  It then fails to rebuild the
configure script.  In this case, the package has expressly asked that
configure be rebuilt, but it cannot be, because the build machinery prevents
it from working properly.  Even if you call ${ACLOCAL} manually, rather than
via autoreconf, it will fail, because it cannot find the proper autom4te
binary. See output:

===> Configuring for zebra-0.94nb1
cd /obj/net/zebra/work/zebra-0.94 && /usr/pkg/bin/autoreconf --force
WARNING: `aclocal' is missing on your system.  You should only need it if
         you modified `acinclude.m4' or `configure.ac'.  You might want
         to install the `Automake' and `Perl' packages.  Grab them from
         any GNU archive site.

The zebra pkg will build, though it is likely not building correctly.  Had
zebra been one of the packages that ships without a configure script in the
tarball, it would have not passed the configure stage, as no configure script
would have been generated.

It would seem that packages that use automake-1.4, are immune to this problem,
only by virtue of the fact that the older aclocal program, does not attempt
to call autom4te.


>How-To-Repeat:
cd pkgsrc/net/zebra
make configure


>Fix:
Rather than setting AUTOMAKE_OVERRIDE=NO in all packages that attempt to use
automake to rebuild configure, we should take advantage of the packages that
set AUTOMAKE_REQD=1.x in thier Makefile's.  When AUTOMAKE_REQD is set to
a specific value, and automake.mk is included, we should generate stubs for the
automake programs to point to the correct set of tools, rather than have
them all set to "missing".



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jlam 
State-Changed-When: Wed Feb 11 01:08:45 UTC 2004 
State-Changed-Why:  
Awaiting feedback on whether revision 1.26 of tools.mk fixes the 
reported problem. 

From: "Johnny C. Lam" <jlam@NetBSD.org>
To: root@garbled.net
Cc: gnats-bugs@gnats.netbsd.org, jnp@napolinet.dk
Subject: Re: pkg/24378: packages which require automake 1.8 are broken by tools.mk
Date: Wed, 11 Feb 2004 01:08:29 +0000

 I've cc'ed the author of pkg/24382 as he is also experiencing the
 problem you've reported.

 On Tue, Feb 10, 2004 at 01:58:23AM -0700, root@garbled.net wrote:
 [snip]
 > net/zebra is a good example of how this fails.  The package attempts to
 > execute ${AUTORECONF} in the pre-configure stage.  autoreconf tries to run
 > aclocal, and the other auto-tools, but instead can only find the stubs we have
 > created for them in work/.tools/bin.  It then fails to rebuild the
 > configure script.  In this case, the package has expressly asked that
 > configure be rebuilt, but it cannot be, because the build machinery prevents
 > it from working properly.  Even if you call ${ACLOCAL} manually, rather than
 > via autoreconf, it will fail, because it cannot find the proper autom4te
 > binary. See output:
 > 
 > ===> Configuring for zebra-0.94nb1
 > cd /obj/net/zebra/work/zebra-0.94 && /usr/pkg/bin/autoreconf --force
 > WARNING: `aclocal' is missing on your system.  You should only need it if
 >          you modified `acinclude.m4' or `configure.ac'.  You might want
 >          to install the `Automake' and `Perl' packages.  Grab them from
 >          any GNU archive site.
 >
 [snip]
 > >Fix:
 > Rather than setting AUTOMAKE_OVERRIDE=NO in all packages that attempt to use
 > automake to rebuild configure, we should take advantage of the packages that
 > set AUTOMAKE_REQD=1.x in thier Makefile's.  When AUTOMAKE_REQD is set to
 > a specific value, and automake.mk is included, we should generate stubs for the
 > automake programs to point to the correct set of tools, rather than have
 > them all set to "missing".

 No, I don't think this is what we want.  The purpose of overriding
 the auto* tools is just to arrange things so that the make process in
 the build phase can't find these auto* tools and clobber any patches
 to the configure scripts that we may have made.  If the stubs point
 to the real auto* tools, that would defeat this goal.  I've committed
 a change to tools.mk (revision 1.26) that defers creating the stubs
 until just before we enter the build phase.  I've tested by building
 both net/zebra and mail/clamav (pkg/24382) and the autoconf/automake
 processes executed by the package Makefiles at pre-configure time now
 run correctly.

 Please let me know if this fixes things for you.

 	Thanks,

 	-- Johnny Lam <jlam@NetBSD.org>

From: Tim Rightnour <garbled@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/24378 CVS commit: pkgsrc/graphics
Date: Wed, 11 Feb 2004 01:32:06 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	garbled
 Date:		Wed Feb 11 01:32:06 UTC 2004

 Modified Files:
 	pkgsrc/graphics/cal3d: Makefile.common
 	pkgsrc/graphics/cal3d-examples: Makefile

 Log Message:
 Now that PR 24378 has been fixed, take the hack out of Makefile.common so
 these packages build the way they were intended to.


 To generate a diff of this commit:
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/graphics/cal3d/Makefile.common
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/graphics/cal3d-examples/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Tim Rightnour <root@garbled.net>
To: "Johnny C. Lam" <jlam@netbsd.org>
Cc: jnp@napolinet.dk, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/24378: packages which require automake 1.8 are broken by
Date: Tue, 10 Feb 2004 18:33:26 -0700 (MST)

 On 11-Feb-04 Johnny C. Lam wrote:
 > Please let me know if this fixes things for you.

 Fixed.

 ---
 Tim Rightnour <root@garbled.net>
 NetBSD: Free multi-architecture OS http://www.netbsd.org/
 NetBSD supported hardware database: http://mail-index.netbsd.org/cgi-bin/hw.cgi
State-Changed-From-To: feedback->closed 
State-Changed-By: jlam 
State-Changed-When: Wed Feb 11 02:15:05 UTC 2004 
State-Changed-Why:  
PR submitter confirms the problem has been fixed.  Thanks for the PR! 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.