public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/14120] New: build process creates autom4te.cache directory in source dir
@ 2012-05-18 18:35 aj at suse dot de
  2012-05-19 10:21 ` [Bug build/14120] " allan at archlinux dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: aj at suse dot de @ 2012-05-18 18:35 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14120

             Bug #: 14120
           Summary: build process creates autom4te.cache directory in
                    source dir
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: aj@suse.de
                CC: carlos@systemhalted.org
    Classification: Unclassified


Running configure always creates a directory autom4te.cache.

We do not support building in the source dir, so let's not touch it by default.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
@ 2012-05-19 10:21 ` allan at archlinux dot org
  2012-05-19 12:19 ` schwab@linux-m68k.org
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: allan at archlinux dot org @ 2012-05-19 10:21 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14120

Allan McRae <allan at archlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allan at archlinux dot org

--- Comment #1 from Allan McRae <allan at archlinux dot org> 2012-05-19 10:21:01 UTC ---
Creating that directory can be disabled by putting this in .autom4te.cfg in the
source directory:

begin-language: "Autoconf-without-aclocal-m4"
args: --nocache
end-language: "Autoconf-without-aclocal-m4"

Obviously, that disables its creation altogether...   I don't think it can be
configured to create the directory in the build directory.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
  2012-05-19 10:21 ` [Bug build/14120] " allan at archlinux dot org
@ 2012-05-19 12:19 ` schwab@linux-m68k.org
  2012-05-21 20:59 ` carlos_odonell at mentor dot com
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: schwab@linux-m68k.org @ 2012-05-19 12:19 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> 2012-05-19 12:18:29 UTC ---
IMHO we should just remove that check.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
  2012-05-19 10:21 ` [Bug build/14120] " allan at archlinux dot org
  2012-05-19 12:19 ` schwab@linux-m68k.org
@ 2012-05-21 20:59 ` carlos_odonell at mentor dot com
  2012-12-03 23:58 ` carlos at systemhalted dot org
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: carlos_odonell at mentor dot com @ 2012-05-21 20:59 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14120

Carlos O'Donell <carlos_odonell at mentor dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |carlos_odonell at mentor
                   |                            |dot com

--- Comment #3 from Carlos O'Donell <carlos_odonell at mentor dot com> 2012-05-21 20:58:08 UTC ---
(In reply to comment #2)
> IMHO we should just remove that check.

Post a patch? I'll review it.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (2 preceding siblings ...)
  2012-05-21 20:59 ` carlos_odonell at mentor dot com
@ 2012-12-03 23:58 ` carlos at systemhalted dot org
  2013-10-02 19:44 ` eblake at redhat dot com
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: carlos at systemhalted dot org @ 2012-12-03 23:58 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14120

Carlos O'Donell <carlos at systemhalted dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|carlos_odonell at mentor    |
                   |dot com                     |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (3 preceding siblings ...)
  2012-12-03 23:58 ` carlos at systemhalted dot org
@ 2013-10-02 19:44 ` eblake at redhat dot com
  2013-10-03  1:00 ` allan at archlinux dot org
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: eblake at redhat dot com @ 2013-10-02 19:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

Eric Blake <eblake at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eblake at redhat dot com

--- Comment #4 from Eric Blake <eblake at redhat dot com> ---
Running 'autoconf' normally creates autom4te.cache, but running 'configure'
does not, at least not for configure files generated by autoconf.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (4 preceding siblings ...)
  2013-10-02 19:44 ` eblake at redhat dot com
@ 2013-10-03  1:00 ` allan at archlinux dot org
  2013-10-03  1:04 ` carlos at redhat dot com
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: allan at archlinux dot org @ 2013-10-03  1:00 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #5 from Allan McRae <allan at archlinux dot org> ---
>From a fresh git checkout, running "../glibc/configure --prefix=/usr" in a
build directory leaves this directory:

$ ls ../glibc/autom4te.cache/
output.0t  requests  traces.0t

All those files have zero size.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (5 preceding siblings ...)
  2013-10-03  1:00 ` allan at archlinux dot org
@ 2013-10-03  1:04 ` carlos at redhat dot com
  2013-10-11 23:23 ` eblake at redhat dot com
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: carlos at redhat dot com @ 2013-10-03  1:04 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #6 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Allan McRae from comment #5)
> From a fresh git checkout, running "../glibc/configure --prefix=/usr" in a
> build directory leaves this directory:
> 
> $ ls ../glibc/autom4te.cache/
> output.0t  requests  traces.0t
> 
> All those files have zero size.

That's odd, configure should not touch anything in the source directory. We
should support read-only source trees with the ability to have multiple builds
going from one source tree.

I wonder what's changed... bug in autotools?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (6 preceding siblings ...)
  2013-10-03  1:04 ` carlos at redhat dot com
@ 2013-10-11 23:23 ` eblake at redhat dot com
  2013-10-11 23:30 ` joseph at codesourcery dot com
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: eblake at redhat dot com @ 2013-10-11 23:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #7 from Eric Blake <eblake at redhat dot com> ---
Here's the culprit in your configure.in (by the way, newer autotools recommend
the name configure.ac, not .in):

AC_CHECK_PROGS(AUTOCONF, autoconf, no)
case "x$AUTOCONF" in
xno|x|x:) AUTOCONF=no ;;
*)
  AC_CACHE_CHECK(dnl
whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works, libc_cv_autoconf_works, [dnl
  if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
    libc_cv_autoconf_works=yes
  else
    libc_cv_autoconf_works=no
  fi])
  test $libc_cv_autoconf_works = yes || AUTOCONF=no
  ;;
esac
if test "x$AUTOCONF" = xno; then
  aux_missing="$aux_missing autoconf"
fi

Fix that macro to quit trying to run autoconf in $(srcdir) as part of
configure, and you will no longer be stuck with a cache file in $(srcdir).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (7 preceding siblings ...)
  2013-10-11 23:23 ` eblake at redhat dot com
@ 2013-10-11 23:30 ` joseph at codesourcery dot com
  2013-10-12 10:27 ` allan at archlinux dot org
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: joseph at codesourcery dot com @ 2013-10-11 23:30 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #8 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
On Fri, 11 Oct 2013, eblake at redhat dot com wrote:

> Here's the culprit in your configure.in (by the way, newer autotools recommend
> the name configure.ac, not .in):

As far as I can see, Mike's patch to move to .ac was approved by Carlos 
over a month ago (subject to a wiki update) and no-one objected; I'm not 
sure what's delaying the commit.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (8 preceding siblings ...)
  2013-10-11 23:30 ` joseph at codesourcery dot com
@ 2013-10-12 10:27 ` allan at archlinux dot org
  2013-10-15 18:44 ` carlos at redhat dot com
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: allan at archlinux dot org @ 2013-10-12 10:27 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #9 from Allan McRae <allan at archlinux dot org> ---
Testing for autoconf in a configure script...  interesting!

Looking into the history of this, it appears to have been introduced so that
when the old "--with-cvs" flag was used, calling make would regenerate
configure and friends when their source file was updated.  When building with
"--without-cvs" this check was not performed and make would not update any of
these files.

Can I just kill this check?  It does not seem something that should be done
during configure and make.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (9 preceding siblings ...)
  2013-10-12 10:27 ` allan at archlinux dot org
@ 2013-10-15 18:44 ` carlos at redhat dot com
  2013-10-16  3:49 ` allan at archlinux dot org
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: carlos at redhat dot com @ 2013-10-15 18:44 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

--- Comment #10 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Allan McRae from comment #9)
> Testing for autoconf in a configure script...  interesting!
> 
> Looking into the history of this, it appears to have been introduced so that
> when the old "--with-cvs" flag was used, calling make would regenerate
> configure and friends when their source file was updated.  When building
> with "--without-cvs" this check was not performed and make would not update
> any of these files.
> 
> Can I just kill this check?  It does not seem something that should be done
> during configure and make.

I think the check should get removed since it's clearly leading to problems.
Regenerating these files is an independent and conscious step. Mike's patch to
change the file name should also get checked in.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (10 preceding siblings ...)
  2013-10-15 18:44 ` carlos at redhat dot com
@ 2013-10-16  3:49 ` allan at archlinux dot org
  2013-12-16  1:32 ` allan at archlinux dot org
  2014-06-25 10:57 ` fweimer at redhat dot com
  13 siblings, 0 replies; 15+ messages in thread
From: allan at archlinux dot org @ 2013-10-16  3:49 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

Allan McRae <allan at archlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |allan at archlinux dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (11 preceding siblings ...)
  2013-10-16  3:49 ` allan at archlinux dot org
@ 2013-12-16  1:32 ` allan at archlinux dot org
  2014-06-25 10:57 ` fweimer at redhat dot com
  13 siblings, 0 replies; 15+ messages in thread
From: allan at archlinux dot org @ 2013-12-16  1:32 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

Allan McRae <allan at archlinux dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Allan McRae <allan at archlinux dot org> ---
The autom4te.cache directory is now only created when using
--enable-maintainer-mode.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [Bug build/14120] build process creates autom4te.cache directory in source dir
  2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
                   ` (12 preceding siblings ...)
  2013-12-16  1:32 ` allan at archlinux dot org
@ 2014-06-25 10:57 ` fweimer at redhat dot com
  13 siblings, 0 replies; 15+ messages in thread
From: fweimer at redhat dot com @ 2014-06-25 10:57 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=14120

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-06-25 10:57 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-18 18:35 [Bug build/14120] New: build process creates autom4te.cache directory in source dir aj at suse dot de
2012-05-19 10:21 ` [Bug build/14120] " allan at archlinux dot org
2012-05-19 12:19 ` schwab@linux-m68k.org
2012-05-21 20:59 ` carlos_odonell at mentor dot com
2012-12-03 23:58 ` carlos at systemhalted dot org
2013-10-02 19:44 ` eblake at redhat dot com
2013-10-03  1:00 ` allan at archlinux dot org
2013-10-03  1:04 ` carlos at redhat dot com
2013-10-11 23:23 ` eblake at redhat dot com
2013-10-11 23:30 ` joseph at codesourcery dot com
2013-10-12 10:27 ` allan at archlinux dot org
2013-10-15 18:44 ` carlos at redhat dot com
2013-10-16  3:49 ` allan at archlinux dot org
2013-12-16  1:32 ` allan at archlinux dot org
2014-06-25 10:57 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).