Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 750191

Summary: =sys-devel/autoconf-2.70_beta2-r1: Gentoo patch causes overquoting in AC_INIT, breaks dev-lang/ghc-8.8.4: * Failed Running autoconf !
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: haskell
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732648    
Attachments: emerge-info.txt
autoconf.out
dev-lang:ghc-8.8.4:20201019-113300.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-10-19 16:42:27 UTC
 * ERROR: dev-lang/ghc-8.8.4::gentoo failed (prepare phase):
 *   Failed Running autoconf !
 * 

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20201019-041507

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Oct 19 10:41:32 AM UTC 2020

emerge -qpvO dev-lang/ghc
--- Invalid atom in /etc/portage/package.mask/00common: /s6
Comment 1 Toralf Förster gentoo-dev 2020-10-19 16:42:28 UTC
Created attachment 666971 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-10-19 16:42:30 UTC
Created attachment 666974 [details]
autoconf.out
Comment 3 Toralf Förster gentoo-dev 2020-10-19 16:42:31 UTC
Created attachment 666977 [details]
dev-lang:ghc-8.8.4:20201019-113300.log
Comment 4 Toralf Förster gentoo-dev 2020-10-19 16:42:32 UTC
Created attachment 666980 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2020-10-19 16:42:34 UTC
Created attachment 666983 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2020-10-19 16:42:35 UTC
Created attachment 666986 [details]
etc.portage.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-10-19 16:42:36 UTC
Created attachment 666989 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-20 08:29:43 UTC
Yeah, temp/autoconf.out says we are using removed?) macro:

configure.ac:16: error: possibly undefined macro: AC_PACKAGE_VERSION
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-20 09:18:19 UTC
Minimal examle:

$ cat configure.ac
AC_INIT([The Glorious Glasgow Haskell Compilation System], [9.1.0], [glasgow-haskell-bugs@haskell.org], [ghc-AC_PACKAGE_VERSION])

echo "$PACKAGE_VERSION"

AC_OUTPUT
$ autoconf-2.69
$ ./configure
9.1.0
configure: creating ./config.status

$ autoconf-2.70_beta2
configure.ac:1: error: possibly undefined macro: AC_PACKAGE_VERSION
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-20 21:24:13 UTC
Asked upstream at https://lists.gnu.org/archive/html/bug-autoconf/2020-10/msg00012.html

Apparently it's a negative effect of Gentoo-specific patch: autoconf-2.70_beta2-AC_INIT_argument_quoting.patch

Reassigning to base-system@.
Comment 11 Larry the Git Cow gentoo-dev 2020-10-21 07:00:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=071cf1ca76377ce19b3f4267327436d36da6df50

commit 071cf1ca76377ce19b3f4267327436d36da6df50
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2020-10-21 06:57:45 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-10-21 07:00:11 +0000

    Revert "sys-devel/autoconf: Revbump to improve AC_INIT arg quoting"
    
    This reverts commit c95e99d3956c8d0f6816937107fb0cfeae12366e.
    As slyfox reported in bug #750191, this patch breaks AC_INIT for many
    packages and thus has not been added to autoconf upstream repo.
    
    Bug: https://bugs.gentoo.org/750191
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 ..._beta2-r1.ebuild => autoconf-2.70_beta2.ebuild} |   4 -
 ...oconf-2.70_beta2-AC_INIT_argument_quoting.patch | 573 ---------------------
 2 files changed, 577 deletions(-)