Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475248 - =sys-devel/autoconf-2.69 + /bin/sh -> dash + AS_INIT (m4sh) produces bad ./configure scripts
Summary: =sys-devel/autoconf-2.69 + /bin/sh -> dash + AS_INIT (m4sh) produces bad ./co...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 18:26 UTC by Sergei Trofimovich (RETIRED)
Modified: 2013-06-30 18:28 UTC (History)
0 users

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 Sergei Trofimovich (RETIRED) gentoo-dev 2013-06-29 18:26:13 UTC
Steps to reproduce:

0. set shell to dash:
    /bin/sh -> dash

1. create configure.ac with following contents:
    dnl cat configure.ac
    AC_INIT([test stuff], [], [test@localhost])
    AS_INIT dnl this like includes buggy m4sh
    AC_CONFIG_SRCDIR(.)
    AC_MSG_CHECKING([Hi])
    AC_OUTPUT

2. autoconf -Wall

3. test bash:

    $ bash ./configure
    checking Hi... configure: creating ./config.status

  works

4. test dash:
    $ dash ./configure
    <HUNG>^C

Looks like shell switch to 'bash' broke.

I've found the issue on real-world ebuild:
    games-action/garden-1.0.8

Thanks!
Comment 1 SpanKY gentoo-dev 2013-06-30 03:50:52 UTC
no code should be calling AS_INIT directly.  it's handled automatically by AC_INIT.  given that, seems like we should just change any packages which are pointlessly calling the macro.