GNU bug report logs - #18612
non-portable shell substitution in configure.ac

Previous Next

Package: emacs;

Reported by: Assaf Gordon <assafgordon <at> gmail.com>

Date: Thu, 2 Oct 2014 19:23:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#18612: closed (non-portable shell substitution in configure.ac)
Date: Thu, 02 Oct 2014 22:34:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 02 Oct 2014 15:33:17 -0700
with message-id <542DD2AD.7040204 <at> cs.ucla.edu>
and subject line Re:  non-portable shell substitution in configure.ac
has caused the debbugs.gnu.org bug report #18612,
regarding non-portable shell substitution in configure.ac
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
18612: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18612
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Assaf Gordon <assafgordon <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: [platform-testers] Emacs pretest 24.3.94
Date: Thu, 02 Oct 2014 15:22:41 -0400
Hello,

On 10/01/2014 09:13 PM, Glenn Morris wrote:
> The next (and hopefully final) pretest for what will be the 24.4 release
> of Emacs (the extensible text editor) is available at
>
>    ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-24.3.94.tar.xz
>
> Please give it as much testing as you can.

I tested it on few systems, builds OK on all the followings (amd64, with only curses support, no X):
  Debian 7.6
  gNewSense 3.1 (based on Debian 6)
  Ubuntu 14.04.1
  Trisquel 6.0.1 (based on Ubuntu 12.04 LTS)
  OpenSUSE 13.1
  CentOS 6.5
  CentOS 7
  FreeBSD 10
  FreeBSD 9.3
  OpenBSD 5.5
  NetBSD 6.1.4
  DilOS 1.3.7 (OpenSolaris/Illumos-based)
  GNU Hurd/Debian 0.5 (i386)

"./configure" fails on MINIX R3.3.0/i386, but MINIX is not officially supported.

On thing I noticed, is that "configure.ac" (and thus "./configure")
has the following statement (line 38):
    srcdir="/${srcdir:0:1}${srcdir:2}"

I believe these are bash-specific variable expansions, not posix-compatible.

This appears in an MINGW-related "if" block, so I guess most of the time it is not encountered.
But in one instance, I got:
    $ ./configure
    ./configure: 3564: Syntax error: Bad substitution

Regards,
 - Assaf


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 18612-done <at> debbugs.gnu.org
Subject: Re:  non-portable shell substitution in configure.ac
Date: Thu, 02 Oct 2014 15:33:17 -0700
Unfortunately POSIX doesn't allow that construction, even in non-executed code, 
so a strict shell is within its rights to reject it.  I installed a simple and 
localized workaround as emacs-24 bzr 117537.


This bug report was last modified 10 years and 292 days ago.

Previous Next


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