Commit Graph

73 Commits

Author SHA1 Message Date
Jon Trulson bfd694e8c7 doc: fix dtdocbook so it can handle parallel builds
Enable parallel building of the help files.
2021-11-11 10:03:50 -07:00
Jon Trulson 1bb5a9f030 doc: remove some no longer needed Imakefiles 2021-11-10 18:45:50 -07:00
Jon Trulson d340e07794 Setup some missing files needed for help to build correctly 2021-11-10 11:04:10 -07:00
Jon Trulson f4bd53c82e Re-add doc2sdl/SGML directory so dtdocbook can work 2021-11-08 20:28:12 -07:00
Jon Trulson d880853113 tptregexp/regsub.c: use string.h 2021-10-23 14:13:33 -06:00
Jon Trulson 51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06: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 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
Liang Chang 12f2fb1f10 dtdocbook: fix a segmentation fault. 2021-01-01 03:07:37 +08:00
Jon Trulson 2b338e4241 dtdocbook/xlate_locale: add proper include for strcmp 2020-09-08 08:44:19 -06:00
Jon Trulson cc12058502 dtdocbook: make it build under autotools
Remove a pile of old SGML stuff we no longer need in dtdocbook since
we use NSGMLS.

Use some TCL macros from m4/tcl.m4 to loacate and use information in
the tclConfig.sh script installed with TCL.  I had to modify it to
export TCL_INCLUDE_SPEC, which was present but not imported.
2020-09-07 17:43:01 -06:00
Jon Trulson e481f4cb93 Merge branch 'master' into autotools-conversion 2019-12-01 13:31:21 -07:00
Marcin Cieślak 5cebd7c4da dtdocbook/instant: fix buffer overlow on German umlaut in latin-1
One-off error:

Old buffer length was 6 for one character (3 * 1 + 3)
We need one more byte par character in the buffer for
the hex representation of it.

+0 '"'
+1 '\\'
+2 'x'
+3 'f'
+4 'c'
+5 '"'
+6 0x0 << overflow

tcl combined with RCHECK will abort because memory blocks
are allocated contiguously and we overwrite the magic marker
of the next block.
2019-11-30 10:13:43 -07:00
Jon Trulson 730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Chase 2d136b7062 programs/dtdocbook: add automake files 2019-10-23 15:34:20 -06:00
Jose Rubio 507665352f Link TCL libraries and restrict tcl8.6 to SuSE only. 2019-09-16 14:58:21 +02:00
Jon Trulson c575ca9315 dtdockbook/instant: Add the proper paths for TCL on NetBSD
Patch submitted by Danilo Pecher <danilo.pecher@data-experts.biz>
2019-02-24 12:54:42 -07:00
Matthew R. Trower 012862e8ee Add default TCLLIB, and allow override in host.def
Restores build on Sun, and maybe others.
2018-10-25 11:43:43 -06:00
Jon Trulson 2fb1f12654 dtdocbook/instant: add Tcl_GetErrorLine check for older versions of Tcl 2018-10-07 13:28:04 -06:00
Jon Trulson 77a027039c docbook.tcl, instant: finish remaining help generation issues with tcl
In this commit, we convert FreeBSD and OpenBSD to use a system version
of TCL (8.6).

We also get rid of the hairy and buggy "CompareI18NStrings" custom Tcl
function and use the newer Tcl's builtin dictionary sort mechanism for
generating the Indexes and Glossaries, which were silently broken in
previous commits.

It was just not possible to use the same Tcl code in modern versions
of Tcl in addition to the ancient version included with CDE - so, now
we will always depend on the system version.  It's been tested with
8.6 and 8.7 versions of Tcl with great results.
2018-09-22 12:27:27 -06:00
Jon Trulson 1fb82e3327 Remove ancient included tcl code 2018-09-22 12:27:09 -06:00
Jon Trulson 1c40db8eb0 dtdocbook/tcl/tcl.h: Add compatibility defines for old Tcl
dtdocbook/instant has been modified to use a more modern Tcl (8.6),
which means certain functions are not present when we are using the
dtdocbook/tcl (7.5) version of tcl instead of a modern system version.

So, create some defines that should work around this problem.
2018-09-20 16:50:28 -06:00
Jon Trulson e82991579f use system tcl: clean up Imake files for dtdocbook/instant 2018-09-19 17:49:15 -06:00
Jon Trulson 23c4c0667d instant: encode 8bit chars to keep Tcl happy 2018-09-19 17:40:25 -06:00
Jon Trulson 7712950fb7 docbook/instant: fix a few more issues 2018-09-19 17:40:25 -06:00
Jon Trulson 776e031b60 docbook.tcl: fix up some problems using a modern Tcl
One issue that came up was attempting to read array values indexed by
a key that didn't exist when generating indexes and glossaries.

I am not sure why this hasn't been a problem before, but for now, we
simply won't try to emit array values for non-existant array indexes.
2018-09-19 17:40:25 -06:00
Jon Trulson 68559d4f76 tcl: use the system version, initial work only on linux for now 2018-09-19 17:40:25 -06:00
Jon Trulson fa4d519aef sgmls: remove from repository - we always use nsgmls
This was part of Chase's sgml removal patch, but was not properly
merged by me, leaving the files intact.
2018-08-26 13:17:46 -06:00
chase fcdeb932d3 Dtdocbook: Remove old sgmls program 2018-08-25 16:54:16 -06:00
Peter Howkins 160728d895 dtdocbook: Coverity 86683 2018-07-04 02:18:20 +01:00
Peter Howkins 82e8b80612 dtdocbook: Coverity 86996 2018-07-04 02:01:15 +01:00
Peter Howkins 751505e6ab dtdocbook: Coverity 86763 2018-07-04 01:59:42 +01:00
Jon Trulson 94e69a00a7 dtdocbook/tcl/tclUtil.c: fix merge error 2018-06-27 22:48:30 -06:00
Jon Trulson 44f999c1de dtdocbook/regexp.c, remove register keyword 2018-06-27 22:23:40 -06:00
Jon Trulson 55a80f00cf dtdocbook: remove register keyword 2018-06-27 22:14:51 -06:00
Peter Howkins 948baafd17 dtdocbook: Change to ANSI function definitions 2018-06-28 04:12:10 +01:00
chase a35a7685b4 docnook.tcl: Add shebang 2018-06-12 17:11:22 -06:00
chase 809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -06:00
chase 4f5e7fe5e3 Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
chase 07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase 8a4f389634 Remove UXPDS support 2018-05-15 20:27:22 -06:00
chase 0f8233dadd sgml-mode.el: fix address, dt-toolbox: delete 2018-05-13 13:13:49 -06:00
chase 33d2749ea3 Last of the spelling fixed 2018-04-28 12:36:44 -06:00
chase 1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -06:00
chase 07722f5c13 More spelling fixes 2018-04-22 12:15:08 -06:00
Peter Howkins 49d1ca38e4 dtdocbook: glibc 2.27 drops support for matherr() support in math.h 2018-03-27 03:55:32 +01:00
Ulrich Wilkens 8b38d9ea49 Fix broken build on OpenBSD 2015-05-09 16:21:32 -06:00
Peter Howkins 93f3878b4e dtdocbook: resolve 49 compiler warnings. 2015-01-06 17:22:50 +00:00
Ulrich Wilkens 01d6c363fa OpenIndiana and Solaris port 2014-10-28 13:40:11 -06:00
Jon Trulson b2db23c0af cleanup: eliminate "implicit declaration" warnings.
Also fixed a potential core/memory corruption in dticon.
2014-03-24 15:58:11 -06:00