Commit Graph

121 Commits

Author SHA1 Message Date
Liang Chang
38eb7b43d3 DtMmdb: install spec files to datadir. 2021-12-15 00:21:08 +08:00
Liang Chang
16e67fec81 Merge branch 'master' into dtdocbook 2021-12-12 20:01:35 +08:00
Liang Chang
e85356165f dtinfogen: update include directives. 2021-12-11 10:46:31 +08:00
Liang Chang
26818c2a22 dtinfogen: update prefix for lex source. 2021-12-11 09:07:23 +08:00
Liang Chang
3212d19a78 dtinfogen: replace Xt-related functions. 2021-12-11 06:07:37 +08:00
Liang Chang
ad58dca2aa DtMmdb: repair lex source in schema dir. 2021-12-11 05:40:20 +08:00
Jon Trulson
f8877e8e24 dtinfo: fix some installation issues 2021-12-10 12:52:07 -07:00
Liang Chang
5bff5c5514 DtMmdb: repair lex source in compression dir. 2021-12-11 00:47:56 +08:00
Liang Chang
ef6d06fb88 DtMmdb: repair lex and yacc source in StyleSheet dir. 2021-12-11 00:08:35 +08:00
Liang Chang
206632cfbb dtinfogen: file renaming. 2021-12-10 07:59:47 +08:00
Liang Chang
ff439cb2f4 DtMmdb: prepare for building dtinfoge. 2021-12-10 07:12:02 +08:00
Jon Trulson
e437a02e0b dtinfo/dtinfogen: make it build
Now, as to whether it all actually works, I guess we will see.
2021-12-06 17:47:00 -07:00
Jon Trulson
93a3d73ef7 dtinfo: install required stuff, also in localized/ 2021-12-06 11:59:00 -07:00
Jon Trulson
b6c938fb47 dtinfo: move the dtinfo_dfiles_hfiles.mk makefile include into dtinfo/src/ 2021-12-05 19:48:48 -07:00
Jon Trulson
89cdc161d0 dtinfo: move the dtinfo_env.mk makefile include to programs/dtinfo/ 2021-12-05 19:15:05 -07:00
Liang Chang
d6ce4d14f5 dtinfogen: Remove an unused environment variable. 2021-12-06 06:49:24 +08:00
Liang Chang
07e8d816d3 dtinfogen: Migrate to UTF-8. 2021-12-06 06:49:23 +08:00
Liang Chang
4104341be1 dtinfogen: preserve NBSP. 2021-12-06 06:49:22 +08:00
Liang Chang
ab1ea96d79 dtinfo: change the default encoding to UTF-8. 2021-12-06 06:49:21 +08:00
Liang Chang
88361e2c47 DtMmdb: change the default encoding to UTF-8. 2021-12-06 06:49:21 +08:00
Liang Chang
c6ffe6061c dtinfogen: fix a space character. 2021-12-06 06:49:21 +08:00
Liang Chang
bcdd71df8c dtinfogen: repair lex and yacc source. 2021-12-06 06:45:42 +08:00
Liang Chang
00c5ba3508 dtinfo: improve MessageMgr to avoid unexpected behavior. 2021-12-06 06:42:36 +08:00
Liang Chang
a16ba22f1a DtMmdb: add UTF-8 encoding for nbsp. 2021-12-06 06:42:36 +08:00
Liang Chang
dd4431719f DtMmdb: check if the log file exists before deleting to avoid
crash.
2021-12-06 06:42:35 +08:00
Liang Chang
4ddd76449c dtinfo: make search highlight works for UTF-8. 2021-12-06 06:42:35 +08:00
Liang Chang
e2216838d1 dtinfo: Fix a font issue to make the multilingual text can be
displayed correctly.
2021-12-06 06:42:34 +08:00
Liang Chang
e38f1ae3cf DtMmdb: Remove an extra space from the environment variable "schemaDEBUG". 2021-12-06 06:42:33 +08:00
Liang Chang
c2fd541ffc DtMmdb: Initialize "oid_in_string_buf" to 0 to ensure "get_oid_2" returns a
correct "oid".
2021-12-06 06:42:33 +08:00
Jon Trulson
b9dbea9d3a dtinfo/dtinfo: get it to build
After fixing up some problems with the dtinfo/mmdb library, dtinfo now
links.
2021-12-05 11:57:50 -07:00
Jon Trulson
7540b13e2b dtinfo/dtinfo/src: more changes to the way the libs are made 2021-12-05 11:57:50 -07:00
Jon Trulson
10c77328fa dtinfo/DtMmdb: Fix up another build issue 2021-12-05 11:57:50 -07:00
Jon Trulson
97b2f86eba dtinfo/mmdb: redo the way this library is built
Specifically:

- use libtool so that the top level library contains the actual
  objects, and not just the sub-archives, which the linker will just
  ignore.
- create the source files via symlinks rather than referencing them
  with relative paths.  Doing it that way causes a 'make clean' to
  delete objects in DtMmdb/ which is wrong.
- fix up utility/ - it seemed to be building more source files than
  the original Imakefile listed.  Other changes may need to be done
  here if similar mistakes were made in other subdirs.
2021-12-05 11:57:50 -07:00
Jon Trulson
b24fd04619 dtinfo: get src/UAS building, finish msg and res building
Also, rework the way we build convenience libs for the classes to use
libtool.  This fixes some potential linking issues and dependency
checking.

Next up will be to see if we can link and install it, along with it's
message catalogs, resources, etc.
2021-12-05 11:57:50 -07:00
Jon Trulson
bdf9256ab2 dtinfo/dtinfo: initial stab at making it build 2021-12-05 11:57:50 -07:00
Jon Trulson
c12e6fea5b dtinfo: remove endian checks from Makefile, handled by autotools now 2021-10-23 22:08:48 -06:00
Jon Trulson
b876ab3932 dtinfo: use autotools endian detection instead of cpu-specific checks
This affects the definitions of OLIAS_BIG_ENDIAN and
OLIAS_LITTLE_ENDIAN when building mmdb.
2021-08-07 18:25:36 -06:00
Jon Trulson
31c2e82eea include: move dtinfo/DtMmdb/oliasdb/Mmdb.h -> include/Dt/Mmdb.h 2021-07-17 16:52:33 -06:00
Liang Chang
3909c8dbcc dtinfo: Fix a segmentation fault.
The return value from CanvasRenderer::_dofont is a pointer. It will be passed
to the free function. Ensure that pointer always points to a dynamically
allocated memory to avoid segmentation faults.
2021-06-02 19:56:29 -06:00
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
Jon Trulson
9f5021a81f pm_randon.h: fix conversion warning (int to float) 2021-06-01 18:23:46 -06:00
Chase
58ccd05459 dtinfo: make auxillary libs and programs build 2021-02-28 20:32:46 -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
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
Jon Trulson
90e61dda5f Merge branch 'master' into autotools-conversion 2020-11-24 16:53:24 -07:00
Peter Howkins
67f62e5a8a all: remove deprecated sys_errlist[] and replace with ANSI C strerror() 2020-11-02 05:30:08 +00:00
Jon Trulson
5852c4742f Fix erroneous uses of ${prefix} rather than $(CDE_INSTALLATION_TOP)
Some Makefiles use prefix when they should be using
CDE_INSTALLATION_TOP.

Patch by Peter G.
2020-03-23 13:10:07 -06:00
Jon Trulson
c329d5cfd7 Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
Also, restructure some of the dependencies in the lib/tt binaries.  We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS.  Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00