Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930502 - app-editors/emacs-29.3-r1: configure error "test: =: unary operator expected" in AC_TYPE_GETGROUPS with autoconf-2.72
Summary: app-editors/emacs-29.3-r1: configure error "test: =: unary operator expected"...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2024-04-23 12:23 UTC by Ulrich Müller
Modified: 2024-04-23 20:10 UTC (History)
1 user (show)

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 Ulrich Müller gentoo-dev 2024-04-23 12:23:15 UTC
Seen in build.log of app-editors/emacs-29.3-r1:

checking type of array argument to getgroups... ./configure: line 34171: test: =: unary operator expected
gid_t

AFAICS the culprit is in line 271 of lib/autoconf/types.m4:

    AS_IF([test $ac_cv_type_gid_t = no],

This fails when $ac_cv_type_gid_t is empty.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-23 12:25:35 UTC
It's nuanced, actually!

Please check out the https://lists.gnu.org/archive/html/autoconf-patches/2024-02/msg00000.html thread.
Comment 3 Ulrich Müller gentoo-dev 2024-04-23 17:30:31 UTC
Thanks for the pointer.

I'm going to backport that fix, eventually. (Probably together with the patch for bug 930086.)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-04-23 18:35:55 UTC
Thanks. Also, sorry, normally, I would give you a heads up about something affecting a package of yours, but I assumed Paul was just going to backport it to 29 and then no point worrying about it, but that didn't happen.
Comment 5 Larry the Git Cow gentoo-dev 2024-04-23 20:09:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/emacs-patches.git/commit/?id=7fb4448355df1d5c0c4cb9eef58fac4c91397f6c

commit 7fb4448355df1d5c0c4cb9eef58fac4c91397f6c
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2024-04-23 19:46:23 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2024-04-23 19:46:23 +0000

    26.3, 27.2, 28.2, 29.3: Compatibility fix for autoconf-2.72
    
    Bug: https://bugs.gentoo.org/930502
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 emacs/26.3/09_all_autoconf-2.72.patch | 24 ++++++++++++++++++++++++
 emacs/27.2/11_all_autoconf-2.72.patch | 24 ++++++++++++++++++++++++
 emacs/28.2/13_all_autoconf-2.72.patch | 24 ++++++++++++++++++++++++
 emacs/29.3/03_all_autoconf-2.72.patch | 24 ++++++++++++++++++++++++
 4 files changed, 96 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2024-04-23 20:10:13 UTC
The bug has been closed via the following commit(s):

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

commit f209f6283f44692afafea6933296fb65730bd465
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2024-04-23 20:08:32 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2024-04-23 20:10:06 +0000

    app-editors/emacs: Fix build with mksh, fix for autoconf-2.72
    
    Closes: https://bugs.gentoo.org/930502
    Closes: https://bugs.gentoo.org/930086
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-editors/emacs/Manifest              |   4 +
 app-editors/emacs/emacs-26.3-r18.ebuild | 379 +++++++++++++++++++
 app-editors/emacs/emacs-27.2-r16.ebuild | 445 +++++++++++++++++++++++
 app-editors/emacs/emacs-28.2-r12.ebuild | 540 +++++++++++++++++++++++++++
 app-editors/emacs/emacs-29.3-r2.ebuild  | 627 ++++++++++++++++++++++++++++++++
 5 files changed, 1995 insertions(+)