Commit Graph

113 Commits

Author SHA1 Message Date
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
Jon Trulson 349802ddd3 dthelpprint: make it build. 2020-04-13 16:21:27 -06: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 313b4a8e0b Merge branch 'master' into autotools-conversion 2020-01-26 12:17:44 -07:00
Jon Trulson 4d12673147 configure: detect and use jpeg library 2020-01-05 16:27:17 -07:00
Jon Trulson 2f8a2ec066 FreeBSD 12/libDtHelp: fix link errors with missing libjpeg 2020-01-04 14:36:06 -07:00
Jon Trulson c40f0c9f08 Get /usr/dt/config populated correctly on make install 2019-12-02 14:33:05 -07:00
Jon Trulson 82059bf240 Merge branch 'master' into autotools-conversion after 2.3.1 release 2019-11-16 16:35:56 -07:00
Chase 88b46c6a28 il: remove various deprecated files 2019-11-01 17:23:48 -06:00
Chase 0f36a57eff remove more internal jpeg headers 2019-11-01 17:23:24 -06:00
Jon Trulson 86bae29d78 Protect inclusions of autotools_config.h with HAVE_CONFIG_H 2019-10-28 15:01:02 -06:00
Jon Trulson b0cc0c8747 DtHelp: make it build
Use configure's endian checks to determine whether to set LSB in il/.

Add locale.h check, include to Helpos.c

Both via including autotools_config.h.
2019-10-26 16:05:48 -06:00
Jon Trulson 369308b737 The great includes migration of 2019 (autotools)
Ok - so one of the steps in building CDE is an early phase called the
includes phase (make includes).  At this point, all of the public
header files are exported to exports/include/Dt, DtI, ...

Then, the software is built using that include dir.

This of course does not work in autotools.  Much of the software does
things like #include <Dt/something.h>, so in order for the build to
succeed, this behavior must be represented/replicated in some way.

It seems the usual way of dealing with this is to place all public
headers (and in some projects, ALL headers) into a toplevel include
directory.

We now do this for all public headers - they have been moved from
wherever they were and placed in the appropriate spot in includes/

This will break the Imake 'make includes' phase unless the Imakefiles
are fixed (remove the HEADERS = stuff, and the incdir defines).  This
has not been done at this point since in reality, once autotools works
properly, there will be no need for the Imake stuff anymore, and I
intend to get rid of it.

This is just a warning for now - Imake builds in this tree will now
fail at the 'includes' stage.

This commit is only the migration.  In upcoming commits, libtt will be
fixed so that the hack being used before to get around this problem is
removed as there will no longer be any need.

And then the autotools work continues...
2019-10-25 17:01:34 -06:00
Jon Trulson 1d7ed3a17e autotools: many fixups, SUN->SOLARIS, typos, etc
This should allow an autoregen and ./confiure to work.  We only
generate Makefiles for lib/* and ./Makefile for now.  We'll ad more as
we go along.

Make still fails as we need to figure out TT - tirpc lib, rpcgen,
etc.  But it's a start!
2019-10-23 17:34:55 -06:00
Chase f6820cc8fd lib/DtHelp: add automakefiles 2019-10-23 15:34:19 -06:00
wmoxam ab741a1241 'notdef' means it's not used, so we remove it 2019-10-15 20:32:13 -06:00
Chase 4107a1b6be Remove old jpeg files 2019-10-14 19:18:40 -06:00
wmoxam 923951b414 Remove NOTDONE code 2019-10-14 11:57:41 -06:00
Jose Rubio 0086a7067e Fix to compile warnings.
* discarded-qualifiers warnings.
* Function definitions, the .h doesn't match the .c.
* Added some include to ensure the .c has function definition.
2019-10-11 10:49:48 +02:00
Jose Rubio db7370b62b Cleanup of -Wpointer-compare warnings. 2019-08-19 18:02:25 +02:00
Peter Howkins cb4075e855 libDtHelp: Fix another regression caused by Coverity fix, clicking 'Help Manager' works again. 2018-11-07 17:04:59 +00:00
Peter Howkins fff0c54538 libDtHelp: Fix a regression with the Help Index pages caused by an overzealous Coverity fix 2018-11-07 01:05:56 +00:00
Jon Trulson 59dc231872 linux: DtHelp/StringFuncs, enable real iconv() support
For some reason, the #include of iconv.h was removed, and dummy stubs
were put in place on linux systems (only).  This caused iconv() calls
to be completely ignored.

Now we use iconv() just like very other OS we support.
2018-11-05 15:33:16 -07:00
Jon Trulson 2c1f56d37c Merge branch 'master' into cde-next 2018-11-04 10:56:04 -07:00
chase dd68514e4f Remove hpversion.h from repository
This patch removes hpversion.h from the repository, this also untangles a
lot of ifdef mess. This closes bug CDExc19524.
2018-10-06 17:00:38 -06:00
chase 90a2b2848a remove ultrix support 2018-09-30 17:27:04 -06:00
Jon Trulson 2dadc23e0e Merge branch 'master' into cde-next 2018-09-22 15:50:13 -06:00
chase bf0b602b9a il: Remove deprecated files 2018-08-26 16:58:38 -06:00
Peter Howkins ddaa606d36 libDtHelp: Cov 88381 2018-08-11 01:28:57 +01:00
Peter Howkins 6a15c3deaa libDtHelp: Cov 88365 2018-08-11 01:26:59 +01:00
Peter Howkins f14e247a41 libDtHelp: Cov 89129 and 88355 2018-08-11 01:18:45 +01:00
Peter Howkins c9f5a14778 libDtHelp: Cov 88302 2018-08-11 01:14:03 +01:00
Peter Howkins 027bc031fd libDtHelp: Cov 88890 and 88294 2018-08-11 01:11:04 +01:00
Peter Howkins b4c10b4d63 libDtHelp: Cov 88275 2018-08-11 01:08:17 +01:00
Peter Howkins 5571bbceae libDtHelp: Cov 88262 and 88459 2018-08-11 01:05:01 +01:00
Peter Howkins f74bf1a29f libDtHelp: Cov 88240 2018-08-11 01:03:23 +01:00
Peter Howkins a97c7370a5 libDtHelp: Cov 88209 2018-08-11 01:01:13 +01:00
Peter Howkins 1c0312de48 libDtHelp: Cov 88162 2018-08-11 00:58:46 +01:00
Peter Howkins 2b2a1225da libDtHelp: Cov 88119 2018-08-11 00:57:11 +01:00
Peter Howkins 30809197c7 libDtHelp: Cov 88109 2018-08-11 00:55:03 +01:00
Peter Howkins 258a7e3803 libDtHelp: Cov 174697 2018-08-11 00:53:10 +01:00
Peter Howkins a895cc3e9c libDtHelp: Cov 89532 2018-08-11 00:51:59 +01:00
Peter Howkins ef54b70ac1 libDtHelp: Cov 89524 2018-08-11 00:50:33 +01:00
Peter Howkins 0be3e91f4d libDtHelp: Cov 89401 2018-08-11 00:47:42 +01:00
Peter Howkins 6441ea4bf4 libDtHelp: Cov 89084 2018-08-11 00:46:06 +01:00
Peter Howkins 7c7e25683b libDtHelp: Cov 89012 2018-08-11 00:44:52 +01:00
Peter Howkins 1ab2d10f01 libDtHelp: Cov 88952 2018-08-11 00:43:46 +01:00
Peter Howkins f896256ec9 libDtHelp: Cov 88724 2018-08-11 00:40:36 +01:00
Peter Howkins d476596c82 libDtHelp: Cov 88526 2018-08-11 00:39:05 +01:00
Peter Howkins e45be6a434 libDtHelp: Cov 88465 2018-08-11 00:37:42 +01:00