Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765010 - =dev-lang/ruby-2* with ~sys-devel/autoconf-2.70: ./configure: 4102: Syntax error: "fi" unexpected (expecting "then")
Summary: =dev-lang/ruby-2* with ~sys-devel/autoconf-2.70: ./configure: 4102: Syntax er...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL: https://github.com/ruby/ruby/commit/f...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: autoconf-2.7x
  Show dependency tree
 
Reported: 2021-01-11 21:06 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2021-01-15 09:10 UTC (History)
1 user (show)

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


Attachments
config.log (config.log,7.54 KB, text/plain)
2021-01-11 21:17 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
0001-configure.ac-fix-for-upcoming-autoconf-2.70.patch (0001-configure.ac-fix-for-upcoming-autoconf-2.70.patch,1.87 KB, patch)
2021-01-11 23:45 UTC, Sergei Trofimovich (RETIRED)
Details | Diff
ruby-2.7.2-autoconf-2.70.patch (ruby-2.7.2-autoconf-2.70.patch,964 bytes, patch)
2021-01-11 23:52 UTC, Sergei Trofimovich (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-01-11 21:06:24 UTC
* Package:    dev-lang/ruby-2.7.2
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc gdbm kernel_linux rdoc ssl userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking ruby-2.7.2.tar.xz to /var/tmp/portage/dev-lang/ruby-2.7.2/work
>>> Source unpacked in /var/tmp/portage/dev-lang/ruby-2.7.2/work
>>> Preparing source in /var/tmp/portage/dev-lang/ruby-2.7.2/work/ruby-2.7.2 ...
 * Applying 010-default-gem-location.patch ...
 [ ok ]
 * Unbundling gems...
 * Removing bundled libraries...
 * Running eautoreconf in '/var/tmp/portage/dev-lang/ruby-2.7.2/work/ruby-2.7.2' ...
 * Running aclocal ...
 [ ok ]
 * Running autoconf --force ...
 [ ok ]
 * Running elibtoolize in: ruby-2.7.2/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/ruby-2.7.2/work/ruby-2.7.2 ...
 * econf: updating ruby-2.7.2/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ruby-2.7.2/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating ruby-2.7.2/tool/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating ruby-2.7.2/tool/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/ruby-2.7.2 --htmldir=/usr/share/doc/ruby-2.7.2/html --libdir=/usr/lib64 --program-suffix=27 --with-soname=ruby27 --with-readline-dir=/usr --enable-shared --enable-pthread --disable-rpath --with-out-ext=,dbm,tk --without-jemalloc --disable-jit-support --disable-socks --disable-dtrace --disable-install-doc --enable-ipv6 --disable-static --disable-install-static-library --without-static-linked-ext --disable-debug --with-lookup-order-hack=INET --enable-option-checking=no
./configure: 4102: Syntax error: "fi" unexpected (expecting "then")

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/ruby-2.7.2/work/ruby-2.7.2/config.log
 * ERROR: dev-lang/ruby-2.7.2::gentoo failed (configure phase):
 *   econf failed
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-01-11 21:17:04 UTC
Created attachment 682477 [details]
config.log
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-11 21:53:28 UTC
Upstream https://github.com/ruby/ruby/commit/fcc88da5eb162043adcba552646677d2ab5adf55.patch should fix it.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-01-11 22:43:18 UTC
That patch won't apply to ruby-2. I've tried to backport it but I had no success.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-11 23:45:45 UTC
Created attachment 682489 [details, diff]
0001-configure.ac-fix-for-upcoming-autoconf-2.70.patch

I'm using 0001-configure.ac-fix-for-upcoming-autoconf-2.70.patch (I think it's an unmodified version) against ruby-2.5.8 and 2.6.6-r2.

2.7.2 fails to apply. I'll have a look.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2021-01-11 23:52:59 UTC
Created attachment 682492 [details, diff]
ruby-2.7.2-autoconf-2.70.patch

ruby-2.7.2-autoconf-2.70.patch works for me.
Comment 6 Larry the Git Cow gentoo-dev 2021-01-15 09:10:14 UTC
The bug has been closed via the following commit(s):

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

commit af0c1600e964e55054e7e5f42fb20316a5b0f8be
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2021-01-15 09:09:02 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2021-01-15 09:10:04 +0000

    dev-lang/ruby: make compatible with autoconf 2.70
    
    Closes: https://bugs.gentoo.org/765010
    Package-Manager: Portage-3.0.12, Repoman-3.0.2
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-lang/ruby/files/2.5/002-autoconf-2.70.patch | 65 +++++++++++++++++++++++++
 dev-lang/ruby/files/2.6/002-autoconf-2.70.patch | 65 +++++++++++++++++++++++++
 dev-lang/ruby/files/2.7/002-autoconf-2.70.patch | 26 ++++++++++
 dev-lang/ruby/ruby-2.5.8-r1.ebuild              |  2 +-
 dev-lang/ruby/ruby-2.6.6-r2.ebuild              |  2 +-
 dev-lang/ruby/ruby-2.7.2.ebuild                 |  2 +-
 6 files changed, 159 insertions(+), 3 deletions(-)