* 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
Created attachment 682477 [details] config.log
Upstream https://github.com/ruby/ruby/commit/fcc88da5eb162043adcba552646677d2ab5adf55.patch should fix it.
That patch won't apply to ruby-2. I've tried to backport it but I had no success.
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.
Created attachment 682492 [details, diff] ruby-2.7.2-autoconf-2.70.patch ruby-2.7.2-autoconf-2.70.patch works for me.
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(-)