Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14340 - Autoconf 2.5x doesn't properly install
Summary: Autoconf 2.5x doesn't properly install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 23:02 UTC by Jeld The Dark Elf
Modified: 2003-06-30 05:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeld The Dark Elf 2003-01-21 23:02:51 UTC
I tried to compile a program from source ( CVS build of knights ) when I came up
with an error regarding autoconf not finding some file in
/var/tmp/portage/autoconf-2.57/work... and some directories in there.

I then did a grep for 'var/tmp/portage' in the autoconf libraries and came up
with following results:
computa root # grep -lr 'var/tmp/portage' /usr/share/autoconf/*
/usr/share/autoconf/autoconf/autoconf.m4f
/usr/share/autoconf/autotest/autotest.m4f
/usr/share/autoconf/m4sugar/m4sugar.m4f
/usr/share/autoconf/m4sugar/m4sh.m4f

There are a lot of matches. Remerging 2.54 came up with exactly the same results
( except that directory was called autoconf-2.54 ). I think when autoconf merges
it somehow parses its files and hard codes install paths.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-22 03:44:41 UTC
try this

export WANT_AUTOCONF_2_5=1
Comment 2 Jeld The Dark Elf 2003-01-22 13:16:43 UTC
The variable is not the problem. Autoconf 2.13 works just fine, but some
applications complain about needing version 2.5 ( for example most KDE apps ).
The problem is that autoconf 2.5x doesn't install properly.
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-01-22 13:19:15 UTC
this is the way we choose the version in ebuilds

setting 2_5="1" enables to use 2.5x
Comment 4 Jeld The Dark Elf 2003-01-22 13:22:56 UTC
Yes, I know. Still, this is not the problem. The problem is that some files in
the merged autoconf 
2.5x point to /var/tmp/portage/autoconf..... instead of /usr/share/autoconf
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-23 01:30:43 UTC
Can you add a log with the errors you get ?

Thing is, that when it creats the frozen m4 macro's,  It hardcode the paths
of the source macro's used.  Thus in theory, even if you install directly
to /, you will still get 'invalid' paths in there.  I have used autoconf-2.5
a lot for patches that need Makefile.in's regenerated, and have not yet have
any problems ...
Comment 6 Jeld The Dark Elf 2003-01-23 09:03:52 UTC
For example:

knights $ export WANT_AUTOCONF_2_5=1
knights $ make -f Makefile.dist 
This Makefile is only for the CVS repository
This will be deleted before making the distribution

*** Creating acinclude.m4
!!! If you get recursion errors from autoconf, it is advisable to set the
    environment variable M4 to something including "--nesting-limit=500"
*** Creating list of subdirectories
*** Creating configure.in
*** Creating aclocal.m4
*** Creating configure
configure.in:73: error: m4_popdef: undefined macro: AC_Dest
/var/tmp/portage/autoconf-2.57/work/autoconf-2.57/lib/autoconf/status.m4:844:
AC_CONFIG_FILES is expanded from...
configure.in:73: the top level
autom4te-2.57: /usr/bin/m4 failed with exit status: 1
make[1]: *** [cvs] Error 1
make: *** [all] Error 2
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-01-23 16:12:44 UTC
*** This bug has been marked as a duplicate of 14453 ***
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-24 14:00:30 UTC
Martin, you sure this is a dup ?
Comment 9 Jeld The Dark Elf 2003-01-25 14:18:12 UTC
I am fairly sure it is not. The other bug is about an error in the wrapper
script. This one is about insorrect installation of autoconf libraries.
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-26 01:47:08 UTC
Ill repeat again:  .m4f files are 'frozen' .m4 macro's, meaning that they
                   are a merge of all needed .m4 macro's.  The embedded path's
                   are just the names of the source macro's.

Even if you install it without portage, its still going to contain the paths
to the dir from where you did the 'make && make install'.  Something else
must be misbehaving here.

Can you up a tarball of knights source that I can use to check it out ?
Comment 11 Jeld The Dark Elf 2003-01-26 20:43:33 UTC
All the recent knights CVS does that. To get the CVS tree you have to 
cvs -d:pserver:anonymous@cvs.knights.sourceforge.net:/cvsroot/knights login
cvs -z3 -d:pserver:anonymous@cvs.knights.sourceforge.net:/cvsroot/knights co knights
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-02 16:07:34 UTC
This is what you get if you remove the frozen files (.m4f):

----------------------------------------------------
azarah@nosferatu knights.test $ WANT_AUTOCONF_2_5=1 make -f Makefile.dist 
This Makefile is only for the CVS repository
This will be deleted before making the distribution

*** Creating acinclude.m4
!!! If you get recursion errors from autoconf, it is advisable to set the
    environment variable M4 to something including "--nesting-limit=500"
*** Creating list of subdirectories
*** Creating configure.in
*** Creating aclocal.m4
*** Creating configure
configure.in:73: error: m4_popdef: undefined macro: AC_Dest
/usr/share/autoconf/autoconf/status.m4:844: AC_CONFIG_FILES is expanded from...
configure.in:73: the top level
autom4te-2.57: /usr/bin/m4 failed with exit status: 1
make[1]: *** [cvs] Error 1
make: *** [all] Error 2
azarah@nosferatu knights.test $ 
--------------------------------------------------------

So it seems its a problem with either autoconf in general, or the
way how knights use it.
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2003-06-30 05:34:31 UTC
closing old crusty bugs