1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-25 08:34:36 +00:00
cde/src/cmd/ksh93/tests
Martijn Dekker aa4669ad17 Fix build on Solaris 11.4 (re: d3cd4cf)
It was working on Solaris 11.3, but there were still problems
building on Solaris 11.4 with GCC (as on the evaluation VM
downloaded directly from Oracle):
1. ksh immediately segfaulted. Experimenting with the compiler
   flags Oracle uses revealed that we need to define _XPG6 for ksh
   not to segfault. Why is a mystery.
2. The default path logic used by 'command -p' and the 'getconf
   PATH' builtin command was still broken: the result did not
   include any of the /usr/xpg?/bin directories where the standard
   POSIX utilities actually live. Testing shows that the result of
   the C language probe 'confstr(_CS_PATH,name,length)' is broken
   on Solaris (it only yields the paths to the historic
   non-standard utilities, defeating the purpose) unless _XPG7 is
   defined; but the latter makes ksh segfault again. So another
   solution is needed.

src/cmd/INIT/package.sh, bin/package:
- Add another hack to add the -D_XPG6 flag to CCFLAGS if we're
  running SunOS aka Solaris. (I've tried to add a 'cc.sol11' script
  to src/cmd/INIT/ instead, but for some reason that I just don't
  have time to figure out, the INIT system ignores that on Solaris
  with gcc, so this is the only way I could come up with. Any
  patches for less hacky alternatives would be welcome.)

src/lib/libast/comp/conf.sh:
- Sanitise the code for finding the best 'getconf' utility.

src/lib/libast/comp/conf.tab: PATH:
- Since the C-languge getconf(_CS_PATH,...) is broken on Solaris
  11.4, replace the C language probe with a shell script probe that
  uses the external 'getconf' utility.
- To avoid ksh overriding the result of this probe with the result
  of its own getconf(_CS_PATH,...) call, which would make Solaris
  use the wrong value again, specify this as an AST configuration
  entry instead of a POSIX entry. This should be good enough for
  all systems; the OS 'getconf' utility should be reliable and the
  default path value is constant for each OS, so can be hardcoded.

src/cmd/ksh93/tests/builtins.sh:
- Add another 'sleep .1' to the 'sleep -s 31' test as it was still
  intermittently failing on Solaris and possibly other systems.
2020-08-04 01:02:05 +02:00
..
alias.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
append.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
arith.sh Fix a syntax error when ((...)) is combined with redirections (#68) 2020-07-09 22:12:04 +01:00
arrays.sh Fix creation of extra associative array element '0' (#101) 2020-07-31 17:32:09 +01:00
arrays2.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
attributes.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
basic.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
bracket.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
builtins.sh Fix build on Solaris 11.4 (re: d3cd4cf) 2020-08-04 01:02:05 +02:00
case.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
comvar.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
comvario.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
coprocess.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
cubetype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
enum.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
exit.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
expand.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
functions.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
glob.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
grep.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
heredoc.sh Fix command substitutions run on the same line as a here-doc (#91) 2020-07-24 00:03:57 +01:00
io.sh Fix subshell file descriptor leak 2020-07-21 04:12:40 +01:00
leaks.sh tests/leaks.sh: Avoid spurious leak results 2020-07-29 22:47:30 +01:00
locale.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
math.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
nameref.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
namespace.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
options.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
path.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
pointtype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
pty.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
quoting.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
quoting2.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
readcsv.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
recttype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
restricted.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
return.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
select.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
shtests Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
sigchld.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
signal.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
statics.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
subshell.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
substring.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
tilde.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
timetype.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
treemove.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
types.sh Fix type names starting with lowercase 'a' (#69) 2020-07-10 17:54:51 +01:00
variables.sh Fixes to compile on Solaris variants, NetBSD, and NixOS 2020-08-03 09:24:16 +01:00
vartree1.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00
vartree2.sh shtests: use central temporary directory; add --keep option 2020-07-04 01:28:08 +02:00