Lev Kujawski
a6ea2a2d52
Centralize catgets() calls through MsgCat
...
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.
This patch:
- Centralizes (with the exception of ToolTalk) all calls to catopen(),
catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
redundant caching implementations designed to work around a design
peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
the appropriate macros.
2021-06-02 19:55:15 -06:00
Lev Kujawski
3379999106
dtinfo: rename the CATGETS macro to MCATGETS
2021-06-02 19:51:24 -06:00
Lev Kujawski
fc1d29be81
config/cf/Imake.cf: Define AArch64Architecture on the BSDs.
2021-06-02 19:51:24 -06:00
Jon Trulson
7b79d810eb
dthelp/parser: disable parallel building
2021-06-01 18:23:46 -06:00
Jon Trulson
9f5021a81f
pm_randon.h: fix conversion warning (int to float)
2021-06-01 18:23:46 -06:00
Jon Trulson
e8345c9241
autotools: specify tirpc lib to link the tooltalk binaries
...
Newer ubuntu's do not seem to honor the implied library dependency of
libtt->libtirpc, so we must explicitly specify libtirpc when linking
them.
2021-06-01 18:23:46 -06:00
Jon Trulson
248c75515e
libDtTerm: fixes to build in autotools branch for freebsd
2021-06-01 18:23:46 -06:00
Jon Trulson
487305f7cf
dtappbuilder: fixes to build in autotools branch for freebsd
2021-06-01 18:23:37 -06:00
Chase
2642674ed4
dtcm: make /var/spool/calendar for user
2021-03-14 15:09:03 -06:00
Chase
58ccd05459
dtinfo: make auxillary libs and programs build
2021-02-28 20:32:46 -07:00
Chase
08622925c8
dthelp: fix spurious compilation failure
2021-02-22 20:18:26 -07:00
Chase
14c3c6ebd8
dtappbuilder: make it build in parallel
2021-02-21 18:42:42 -07:00
Chase
4b461f5627
dthelp/parser/pass2: make it build
2021-02-21 18:35:52 -07:00
Chase
434943913b
dthelp/parser/canon1: get it to build
2021-02-21 18:35:43 -07:00
Chase
cbdb9cb3fa
dtksh: allow parallel building
2021-02-13 19:19:18 -07:00
Chase
622496bdd6
ttsnoop: make it build under autotools
2021-02-13 18:51:36 -07:00
Chase
6807fbb75e
dthelp/parser/helptag: build under autotools
2021-02-07 19:44:12 -07:00
Jon Trulson
37eba21c97
dtksh: disable parallel builds
...
This module will crash on multicore builds, so disable that for dtksh
until we can investigate and fix, if possible.
2021-01-31 13:43:28 -07:00
Chase
4836c389f6
dtksh: specifically test for patch
2021-01-31 13:22:57 -07:00
Chase
6a62f10047
dtksh: make it build under autotools
2021-01-31 13:22:57 -07:00
Jon Trulson
d9a8325c8d
Disable Japanese locale support since we do not currently support it
...
make distclean ignores the language definitions, as it should.
However, we had options that suggested that the Japanese locale was
supported. Distclean would decend into that locale directory and
fail, since of course we do not actually support that locale and it is
not currently buildable.
2021-01-31 13:11:41 -07:00
Jon Trulson
1fad87f7bd
ksh93: re-add the ksh submodule at 47468f
2021-01-30 19:12:43 -07:00
Jon Trulson
1941713a36
Remove no longer needed Makefile.am for ksh
2021-01-30 19:09:26 -07:00
Jon Trulson
ece5c0ea14
Merge branch 'master' into autotools-conversion
...
Lost the ksh93 submodule so will re-add in a later commit.
2021-01-30 19:04:10 -07:00
Lev Kujawski
9a695e9411
dtprintinfo: don't use rresvport() on Linux systems using the musl C library
...
Disable binding a privileged client port with rresvport() on Linux
systems using the musl C library, where that function is
unsupported. If there is a need for XPrint support, a BSD-licensed
implementation of rresvport() is available in the portable edition of
OpenSSH.
2021-01-30 17:22:27 -07:00
Lev Kujawski
f7227e1b74
dtinfo: Include config.h for the definition of u_int
...
Also, properly include unistd.h as a system header.
2021-01-30 17:22:12 -07:00
Lev Kujawski
c2d2accbad
dtinfo: the musl C library requires the inclusion of the POSIX fcntl header
2021-01-30 17:21:57 -07:00
Lev Kujawski
668b9c19a3
dtdocbook/instant: the musl C library does not define MAXNAMLEN
...
Use the POSIX alternative NAME_MAX instead.
2021-01-30 17:21:16 -07:00
Lev Kujawski
21491c0e52
imake: fix warnings on PowerPC builds
...
Also correct a compile failure occurring within DtMmdb's
atoi_pearson.C by defining PowerPC as a big endian platform.
2021-01-30 17:20:59 -07:00
Jon Trulson
6245f4fe7a
README: update clone instructions
2021-01-30 17:12:10 -07:00
Jon Trulson
eb381022a5
Change version to 2.3.2b for the new ksh93 submodule merge
2021-01-30 16:32:41 -07:00
Jon Trulson
6539c8c71a
ksh93: re-add the ksh submodule at 47468f
2021-01-23 18:40:40 -07:00
Jon Trulson
047cefcf32
Merge branch 'master' into master-ksh93-upgrade
2021-01-23 18:31:28 -07:00
Chase
eab8cf4c16
dtksh: update ksh to commit 47468f (fix musl compiler errors)
2021-01-23 17:13:46 -07:00
Lev Kujawski
e54ee036ac
Fix incompatibilites between the Desktop Korn Shell and the musl C library:
...
- Only check for POSIX's termios.h when deciding to use the POSIX terminal interfaces.
- Check for C99's va_copy in addition to __va_copy.
2021-01-23 16:39:44 -07:00
Chase
ad39eebb2d
dtksh: use std malloc instead of ast malloc
2021-01-18 18:02:11 -07:00
Chase
47dfe49a72
dtksh: make it build under openindiana
2021-01-18 18:00:41 -07:00
Chase
e75a8162ad
dtksh/Imakefile: make patch obey POSIX
2021-01-18 18:00:41 -07:00
Jon Trulson
007b6fa023
udbParseLib.awk: comment out some uneeded commands that cause warnings now
2021-01-15 19:06:38 -07:00
Lev Kujawski
225522cc6b
Define time_t within AccessI.h by including <time.h>.
2021-01-15 18:33:26 -07:00
Lev Kujawski
325132735b
Use the C99 standard va_copy if possible for compatibility with the musl C library.
2021-01-10 18:08:00 -07:00
Lev Kujawski
13c173d22c
On Linux, use SVR4's (now POSIX) mktime() instead of BSD's non-standard timelocal().
2021-01-10 18:08:00 -07:00
Lev Kujawski
0e282a0ad7
On Linux, use the SVR4 (now POSIX) signal and locking interfaces instead of the non-standard BSD equivalents.
2021-01-10 18:08:00 -07:00
Lev Kujawski
5c801a07a0
Hide FILE internals from the musl C library that conflict with the Desktop Korn Shell's SFIO.
2021-01-10 18:08:00 -07:00
Lev Kujawski
d14d956c00
Rename functions within ToolTalk that conflict with the musl C library headers.
2021-01-10 18:08:00 -07:00
Lev Kujawski
5d5523fd6a
Define _DtPLATFORM_MAX_LEN for C libraries (including musl) that do not provide the SVID SYS_NMLN definition. Use sizeof() to replace another #ifdef.
2021-01-10 18:08:00 -07:00
Chase
10f2382561
dtksh/findsym.c: fix compiler warnings
2021-01-01 18:41:26 -07:00
Chase
428223ee80
use a patchfile to augment init.c instead of copying it entirely
2021-01-01 18:41:26 -07:00
Chase
90fff44682
dtksh: use bin/package flat make instead of shell
...
Shell isn't portable, so upstream ksh93 has a "flat" function that we can use
to put binaries in a static place that doesn't require a shell command. We still
do need an intermediate setup.sh shell script due to a bug in ksh that object
files aren't being put in lib, and FEATURE not in include. We also cut out some
unused symbols, and a hpux specific implementation of dynlib (new hpux should
conform to the posix implementation anyhow.)
2021-01-01 18:41:26 -07:00
Liang Chang
12f2fb1f10
dtdocbook: fix a segmentation fault.
2021-01-01 03:07:37 +08:00