1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Allow building on AIX

This makes ksh build at least on AIX 7.1 on RISC (PowerPC).

There are 4 regression test failures:

        leaks.sh[159]: memory leak on PATH reset before PATH search
        (leaked approx 220 KiB after 16384 iterations)

        pty.sh[351]: POSIX sh 104(C): line 364: expected
        "^done\r?\n$", got EOF

        signal.sh[280]: subshell ignoring signal does not send
        signal to parent (expected 'SIGUSR1', got 'done')

        signal.sh[282]: parent does not wait for child to complete
        before handling signal

src/cmd/INIT/iffe.sh:
- Unset LIBPATH on AIX. The features/pty output{ ... }end will fail
  to link to libiconv otherwise, causing a build failure. See:
  https://www.ibm.com/support/pages/member-libiconvso2-not-found-archive

src/cmd/builtin/pty.c:
- CMIN is not defined on AIX, so set it to 1 if it's not defined.

src/cmd/ksh93/README:
- Update list of tested OSs.
This commit is contained in:
Martijn Dekker 2021-01-27 00:44:26 +00:00
parent 308696ec95
commit 28f97ba85c
4 changed files with 22 additions and 13 deletions

View file

@ -26,6 +26,9 @@
# NOTE: .exe a.out suffix and [\\/] in path patterns for dos/nt
(command set -o posix) 2>/dev/null && set -o posix
case `uname -s` in
AIX) unset LIBPATH ;;
esac
command=iffe
version=2012-07-17 # update in USAGE too #