GNU bug report logs - #65292
30.0.50; unportable shell construct in configure

Previous Next

Package: emacs;

Reported by: Thomas Klausner <wiz <at> gatalith.at>

Date: Mon, 14 Aug 2023 16:11:01 UTC

Severity: normal

Found in version 30.0.50

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65292 in the body.
You can then email your comments to 65292 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#65292; Package emacs. (Mon, 14 Aug 2023 16:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Thomas Klausner <wiz <at> gatalith.at>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 14 Aug 2023 16:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thomas Klausner <wiz <at> gatalith.at>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; unportable shell construct in configure
Date: 14. August 2023 at 15:21:12 CEST
NetBSD's sh doesn't like:

if test -n "${ndk_commands//\n }"

(it works in bash)

This construct has been in m4/ndk-build.m4 for quite some time, I'm not
sure how it ended up in configure now, but I guess it was one of the
recent Android changes.

I don't build emacs every day, so I think it appeared between Aug 5 and
Aug 13.


In GNU Emacs 30.0.50 (build 1, x86_64--netbsd, GTK+ Version 3.24.38,
cairo version 1.16.0) of 2023-08-05 built on yt.nih.at
Repository revision: 60e5f212182ca2f41f89a4315075e38433bc8ac0
Repository branch: HEAD
System Description: NetBSD yt.nih.at 10.99.7 NetBSD 10.99.7 (MIAU) #148: Fri Aug 11 20:13:44 CEST 2023  wiz <at> yt.nih.at:/disk/6/archive/foreign/src/sys/arch/amd64/compile/obj/MIAU amd64

Configured using:
'configure --srcdir=/scratch/wip/emacs-git/work/emacs
--localstatedir=/var --with-native-compilation --without-ns
--without-imagemagick --without-xaw3d --with-x-toolkit=gtk3
--prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd
--infodir=/usr/pkg/info --mandir=/usr/pkg/man
--enable-option-checking=yes 'CFLAGS=-O2 -g -g -fstack-clash-protection
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0
-I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include/harfbuzz
-I/usr/pkg/include/libdrm' 'CPPFLAGS=-g -I/usr/pkg/include
-I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0
-I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include
-I/usr/pkg/include/harfbuzz -I/usr/pkg/include/libdrm'
'LDFLAGS=-Wl,-R/usr/pkg/gcc13/lib -Wl,-zrelro -Wl,-znow -L/usr/pkg/lib
-Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER PNG RSVG SOUND
SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM
XINPUT2 XPM GTK3 ZLIB

Important settings:
 value of $LC_CTYPE: de_AT.UTF-8
 value of $LC_TIME: de_AT.UTF-8
 locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
 nerd-icons-ivy-rich-mode: t
 ivy-rich-mode: t
 global-flycheck-mode: t
 flycheck-mode: t
 global-company-mode: t
 company-mode: t
 dtrt-indent-global-mode: t
 dtrt-indent-mode: t
 counsel-mode: t
 ivy-mode: t
 which-key-mode: t
 server-mode: t
 tooltip-mode: t
 global-eldoc-mode: t
 eldoc-mode: t
 show-paren-mode: t
 electric-indent-mode: t
 mouse-wheel-mode: t
 file-name-shadow-mode: t
 global-font-lock-mode: t
 font-lock-mode: t
 blink-cursor-mode: t
 line-number-mode: t
 indent-tabs-mode: t
 transient-mark-mode: t
 auto-composition-mode: t
 auto-encryption-mode: t
 auto-compression-mode: t

Load-path shadows:
/home/wiz/.emacs.d/elpa/transient-20230602.2121/transient hides /usr/pkg/share/emacs/30.0.50/lisp/transient

Features:
(shadow sort mail-extr emacsbug message yank-media puny rfc822 mml
mml-sec epa derived epg rfc6068 epg-config gnus-util time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
term/screen term/xterm xterm eglot external-completion jsonrpc
flymake-proc flymake thingatpt ert pp ewoc debug backtrace filenotify
imenu use-package-core comp comp-cstr warnings icons nerd-icons-ivy-rich
ivy-rich nerd-icons-dired nerd-icons nerd-icons-faces nerd-icons-data
nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon
nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon
nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon
nerd-icons-data-pomicon nerd-icons-data-ipsicon company-box
company-box-doc frame-local company-box-icons company-oddmuse
company-keywords company-etags etags fileloop generator company-gtags
company-dabbrev-code company-dabbrev company-files company-clang
company-capf company-cmake company-semantic company-template
company-bbdb leuven-theme flycheck find-func dash company dtrt-indent
advice cus-load finder-inf counsel xdg xref project dired dired-loaddefs
compile text-property-search comint ansi-osc ansi-color swiper cl-extra
help-mode ivy delsel ring ivy-faces ivy-overlay colir color which-key
server avy-autoloads bison-mode-autoloads clang-format+-autoloads
clang-format-autoloads cmake-mode-autoloads company-box-autoloads
company-php-autoloads company-autoloads ac-php-core-autoloads
counsel-autoloads csv-mode-autoloads deadgrep-autoloads
dtrt-indent-autoloads f-autoloads flycheck-eglot-autoloads
flycheck-autoloads frame-local-autoloads rx leuven-theme-autoloads
lua-mode-autoloads magit-autoloads pcase git-commit-autoloads
magit-section-autoloads dash-autoloads markdown-mode-autoloads
nerd-icons-completion-autoloads nerd-icons-dired-autoloads
nerd-icons-ivy-rich-autoloads nerd-icons-autoloads ivy-rich-autoloads
php-mode-autoloads popup-autoloads rust-mode-autoloads s-autoloads
swiper-autoloads ivy-autoloads transient-autoloads which-key-autoloads
with-editor-autoloads info compat-autoloads xcscope-autoloads
yaml-mode-autoloads package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv
bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind kqueue
dynamic-setting system-font-setting font-render-setting cairo gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process
native-compile emacs)

Memory information:
((conses 16 293061 19152) (symbols 48 20858 0) (strings 32 89514 4261)
(string-bytes 1 2719570) (vectors 16 35404)
(vector-slots 8 691039 18205) (floats 8 442 8229)
(intervals 56 399 53) (buffers 984 11))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65292; Package emacs. (Tue, 15 Aug 2023 02:24:01 GMT) Full text and rfc822 format available.

Message #8 received at 65292 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Thomas Klausner <wiz <at> gatalith.at>
Cc: 65292 <at> debbugs.gnu.org
Subject: Re: bug#65292: 30.0.50; unportable shell construct in configure
Date: Tue, 15 Aug 2023 10:23:24 +0800
Appears that I neglected to copy the bug tracker into my initial reply.
Resending.

Thomas Klausner <wiz <at> gatalith.at> writes:

> NetBSD's sh doesn't like:
>
> if test -n "${ndk_commands//\n }"
>
> (it works in bash)
>
> This construct has been in m4/ndk-build.m4 for quite some time, I'm
> not
> sure how it ended up in configure now, but I guess it was one of the
> recent Android changes.

Indeed.  However, the function containing that substitution is not
utilized under NetBSD.

Does its presence lead to actual difficulties during configure, or is it
merely an error reported when running sh -n?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65292; Package emacs. (Tue, 15 Aug 2023 06:23:01 GMT) Full text and rfc822 format available.

Message #11 received at 65292 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Thomas Klausner <wiz <at> gatalith.at>
Cc: 65292 <at> debbugs.gnu.org
Subject: Re: bug#65292: 30.0.50; unportable shell construct in configure
Date: Tue, 15 Aug 2023 14:21:56 +0800
Thomas Klausner <wiz <at> gatalith.at> writes:

> On Tue, Aug 15, 2023 at 10:23:24AM +0800, Po Lu wrote:
>> Appears that I neglected to copy the bug tracker into my initial reply.
>> Resending.
>> 
>> Thomas Klausner <wiz <at> gatalith.at> writes:
>> 
>> > NetBSD's sh doesn't like:
>> >
>> > if test -n "${ndk_commands//\n }"
>> >
>> > (it works in bash)
>> >
>> > This construct has been in m4/ndk-build.m4 for quite some time, I'm
>> > not
>> > sure how it ended up in configure now, but I guess it was one of the
>> > recent Android changes.
>> 
>> Indeed.  However, the function containing that substitution is not
>> utilized under NetBSD.
>> 
>> Does its presence lead to actual difficulties during configure, or is it
>> merely an error reported when running sh -n?
>
> Yes, this is an actual problem. I only noticed this because:
>
> checking for xcrun... no
> checking for GNU Make... make
> checking build system type... x86_64--netbsd
> checking host system type... x86_64--netbsd
> ./configure: 5434: Syntax error: Bad substitution
> *** Error code 2
>
> The command line I used is
>
> ./configure --srcdir=/scratch/wip/emacs-git/work/emacs
> --localstatedir=/var --with-native-compilation --without-ns
> --without-imagemagick --without-xaw3d --with-x-toolkit=gtk3
> --prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd
> --infodir=/usr/pkg/info --mandir=/usr/pkg/man
> --enable-option-checking=yes
>
> in case it matters.
>  Thomas

Should be fixed now, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65292; Package emacs. (Tue, 15 Aug 2023 07:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 65292 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Klausner <wiz <at> gatalith.at>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 65292 <at> debbugs.gnu.org
Subject: Re: bug#65292: 30.0.50; unportable shell construct in configure
Date: Tue, 15 Aug 2023 07:04:26 +0200
On Tue, Aug 15, 2023 at 10:23:24AM +0800, Po Lu wrote:
> Appears that I neglected to copy the bug tracker into my initial reply.
> Resending.
> 
> Thomas Klausner <wiz <at> gatalith.at> writes:
> 
> > NetBSD's sh doesn't like:
> >
> > if test -n "${ndk_commands//\n }"
> >
> > (it works in bash)
> >
> > This construct has been in m4/ndk-build.m4 for quite some time, I'm
> > not
> > sure how it ended up in configure now, but I guess it was one of the
> > recent Android changes.
> 
> Indeed.  However, the function containing that substitution is not
> utilized under NetBSD.
> 
> Does its presence lead to actual difficulties during configure, or is it
> merely an error reported when running sh -n?

Yes, this is an actual problem. I only noticed this because:

checking for xcrun... no
checking for GNU Make... make
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
./configure: 5434: Syntax error: Bad substitution
*** Error code 2

The command line I used is

./configure --srcdir=/scratch/wip/emacs-git/work/emacs --localstatedir=/var --with-native-compilation --without-ns --without-imagemagick --without-xaw3d --with-x-toolkit=gtk3 --prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info --mandir=/usr/pkg/man --enable-option-checking=yes

in case it matters.
 Thomas




Reply sent to Po Lu <luangruo <at> yahoo.com>:
You have taken responsibility. (Wed, 16 Aug 2023 01:37:02 GMT) Full text and rfc822 format available.

Notification sent to Thomas Klausner <wiz <at> gatalith.at>:
bug acknowledged by developer. (Wed, 16 Aug 2023 01:37:03 GMT) Full text and rfc822 format available.

Message #19 received at 65292-done <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Thomas Klausner <wiz <at> gatalith.at>
Cc: 65292-done <at> debbugs.gnu.org
Subject: Re: bug#65292: 30.0.50; unportable shell construct in configure
Date: Wed, 16 Aug 2023 09:36:24 +0800
Thomas Klausner <wiz <at> gatalith.at> writes:

> On Tue, Aug 15, 2023 at 02:21:56PM +0800, Po Lu wrote:
>> Should be fixed now, thanks.
>
> I can confirm that the problem is now gone on my side.
>
> Thank you for the quick fix!
>  Thomas

Thanks, closing.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#65292; Package emacs. (Wed, 16 Aug 2023 02:22:04 GMT) Full text and rfc822 format available.

Message #22 received at 65292 <at> debbugs.gnu.org (full text, mbox):

From: Thomas Klausner <wiz <at> gatalith.at>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 65292 <at> debbugs.gnu.org
Subject: Re: bug#65292: 30.0.50; unportable shell construct in configure
Date: Tue, 15 Aug 2023 21:55:45 +0200
On Tue, Aug 15, 2023 at 02:21:56PM +0800, Po Lu wrote:
> Should be fixed now, thanks.

I can confirm that the problem is now gone on my side.

Thank you for the quick fix!
 Thomas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 13 Sep 2023 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.