glibc/sysdeps/unix
Patrick 'P. J.' McDermott 0a834ddecb don't use Bash-specific ${parameter/pattern/string} expansion
sysdeps/unix/make-syscalls.sh and sysdeps/unix/Makefile use GNU Bash's
${parameter/pattern/string} parameter expansion.  Non-Bash shells (e.g.
dash or BusyBox ash when built with CONFIG_ASH_BASH_COMPAT disabled)
don't support this expansion syntax.  So glibc will fail to build when
$(SHELL) expands to a path that isn't provided by Bash.

An example build failure:

    for dir in [...]; do \
      test -f $dir/syscalls.list && \
      { sysdirs='[...]' \
        asm_CPP='gcc -c    -I[...]   -D_LIBC_REENTRANT -include include/libc-symbols.h       -DASSEMBLER  -g -Wa,--noexecstack   -E -x assembler-with-cpp' \
        /bin/sh sysdeps/unix/make-syscalls.sh $dir || exit 1; }; \
      test $dir = sysdeps/unix && break; \
    done > [build-dir]/sysd-syscallsT
    sysdeps/unix/make-syscalls.sh: line 273: syntax error: bad substitution

This patch simply replaces the three instances of the Bash-only syntax
in these files with an echo and sed command substitution.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-09-28 23:03:09 -04:00
..
bsd Fix typos. 2013-08-29 09:11:45 +02:00
i386 Remove remaining bounded-pointers support from i386 .S files. 2013-02-21 22:21:52 +00:00
inet Move nss directory into sysdeps Subdirs. 2013-02-05 14:32:48 -08:00
powerpc Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sh Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sysv/linux Add O_TMPFILE to <fcntl.h> 2013-09-11 11:52:46 +02:00
x86_64 Remove bounded-pointers handling from x86_64 assembly sources. 2013-02-17 21:57:26 +00:00
clock_gettime.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_nanosleep.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_settime.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
confstr.h
get_child_max.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getlogin_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getlogin.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getpagesize.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
grantpt.c CVE-2013-2207, BZ #15755: Disable pt_chown. 2013-07-21 15:39:55 -04:00
ifreq.c True stub __ifreq. 2013-08-27 10:42:52 -07:00
Implies
make-syscalls.sh don't use Bash-specific ${parameter/pattern/string} expansion 2013-09-28 23:03:09 -04:00
Makefile don't use Bash-specific ${parameter/pattern/string} expansion 2013-09-28 23:03:09 -04:00
s-proto-cancel.S * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d. 2002-12-30 00:12:56 +00:00
s-proto.S
setxid.h Update. 2004-11-12 01:27:04 +00:00
sockatmark.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
stime.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Subdirs
syscall-template.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscall.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscalls.list Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
sysdep.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00