The Arch Linux PKGBUILD at https://aur.archlinux.org/packages/ksh/ wouldn't compile any more so I adopted it and got it to compile. In the process I had to switch from Debian sources to the AT&T sources. Since I didn't know that everyone was using ast-ksh I started with ast-base. I found two bugs that have been there a while. The PKGBUILD has the sed lines and the full description of the patches. Here are the brief descriptions:
Arch Linux does not have a /usr/tmp. I patched 5 files changing /usr/tmp to /tmp . This is only a half patch since this may not be appropriate for all systems. Seems to me that this would be auto detected. src/lib/libast/features/stdio defines L_tmpnam to a blank value. This is invalid but sufficient to block the defaults in src/lib/libast/comp/tmpnam.c and src/lib/libast/path/pathtmp.c . I couldn't get patches to stick in stdio so I patched the two .c files. YYSTYPE is now a typedef. The new name for defined() is YYSTYPE_IS_DECLARED in src/lib/libexpr/expr.h. Any commentary on the text of the PKGBUILD and how I handled the license requirements would be appreciated. Has anyone else tried mixing the beta INIT and the release ast-base? Here are some other problems unrelated to compiling. Add a copyright and author to the end of the ksh man page similar to the one on nmake. Fix <YEAR>... in the BSD copyright. Fix the build errors that happen after ksh. Fix test, or tell me what I didn't do to get it to complete. Interactive shells must have Midnight Commander subshell integration. *** https://www.midnight-commander.org/wiki/doc/faq 6.4 I am using ksh. Can I use functions defined in the .kshrc within MC? Sorry, MC only supports bash, tcsh and zsh functions. Ksh functions are not supported because ksh lacks the necessary hooks needed for subshell integration. Switch to bash or zsh. They are both quite compatible with ksh. Your ksh functions should work as such or after minimal changes. _______________________________________________ ast-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-users
