Commit Graph
100 Commits
Author SHA1 Message Date
Jon Trulson 2d0c4d6d39 Kill off OSMAJORVERSION and OSMINORVERSION defines/cpp flags
This has meant very little for a long time as configure.ac just
hardcoded these values depending on the current OS versions at the
time.

The only place where this is really 'needed' is XlationSvc.c in DtSvc
so that differences between locale specifications on various versions
of an OS can be accounted for. So for now, we just define those when
building DtSvc.

We could probably safely remove them as well with an update to the
Xlate locale DB to remove ancient cruft we don't care about anymore.

For various other modules, like dtlogin, dtsession, etc we just use
the code that was already being used due to the hardcoded values we've
had for the last 10-ish years.
2022-08-06 17:57:44 -06:00
Jon Trulson 6fddca178f dtlogin: remove HP BLS B1 simple authentication support (BLS) 2022-08-06 17:57:44 -06:00
Jon Trulson 37367d5e12 libtt: remove OPT_LOCAL_MOUNT_TYPE, OS_VERSION - never used anywhere
OS_VERSION was used with a '#if defined(sun)', but since it was never
set anywhere it just omitted that block.  If the block turns up to be
broken on sun systems, then someone will fix it properly.
2022-08-06 17:57:44 -06:00
Jon Trulson a3e491d648 doc: re-enable building the dtinfo guides on netbsd
As long as you have enough space in /tmp (10MB is the default! change
this!) these will build fine.
2022-08-06 13:09:01 -06:00
Jon Trulson 2d355712ea C locales: recursively delete C locale directories on make install
In previous versions of CDE (<2.5.0), these were directories with
en_US symlinked to them.  Attempting to do a 'make install' with 2.5.0
would yield errors since only a non-recursive 'rm' was being done.

On 2.5.0+, these are symlinks to the en_US versions now.
2022-08-06 12:30:56 -06:00
Jon Trulson 47cc5d4a72 configure.ac: remove extra -lm check, move dl check to after libm check
In addition, do not fail the configure if libdl[d] is not found.
Building may still fail in that case, but then it may not :)
2022-07-31 20:00:09 -06:00
Jon Trulson a3d056f56e configure.ac: bump version to 2.5.0a 2022-07-23 18:27:48 -06:00
Jon Trulson d1c935e716 Prep for 2.5.0 release 2022-07-23 14:52:32 -06:00
Jon Trulson eb526f1ecf CONTRIBUTORS: add Martijn Dekker (ksh93) 2022-07-09 17:57:01 -06:00
Jon Trulson 81c3c7b0eb ksh93: fix BSD builds due to iconv confusion
For the BSD's we do not want to pass CFLAGS since it includes a
-I/usr/local/incude directive.

This breaks ksh's iconv detection due to the weird way in which iconv
seems to be handled on the BSD's - both a libc impl (preferred), and a
possibly external GNU iconv impl installed in /usr/local.

/usr/local/include is added to CFLAGS by the X11/Motif detection logic
- since that is where all of the needed headers are on the BSDs.

One of the patches from Martijn Decker added CFLAGS to the ksh93 build
CCFLAGS which made this problem show up.

So until/unless that is fixed in ksh93, we will avoid sending
anything to the ksh build system except for SUIDEXECDEFINES
2022-07-09 17:50:35 -06:00
Jon Trulson b4e936f6f8 gitignore: split out dtksh gitignores into a separate dtksh/.gitignore
Also, add new files based on upgrade patch from Martjin Dekker (ksh93
maintainer).
2022-07-09 17:50:35 -06:00
Jon Trulson d5e651ecf3 dtinfo: restore dtinfo/dtinfo/src/dtinfo_msg.tmpl, accidentally deleted 2022-07-09 12:53:10 -06:00
Jon Trulson 779e04f2b0 CONTRIBUTORS: remove some duplicates 2022-07-06 17:24:48 -06:00
Jon Trulson 894ad07e10 configure: rework detection of Xrender 2022-07-06 17:01:37 -06:00
Jon Trulson 8e09e4be73 Update CONTRIBUTORS file 2022-07-05 12:24:05 -06:00
Jon Trulson 15595a9c54 .gitignore: update doc/*ISO8858-1 to doc/*UTF-8 names 2022-07-04 22:50:36 -06:00
Jon Trulson 65cedf8dfd Remove remaining Imakefiles, tmpls, and the delete-later dir 2022-07-04 22:49:44 -06:00
Jon Trulson 73c7cdd7fb configure.ac: add --disable-docs option to disable doc building
Using this option to configure will disable the building of the dthelp
and dtinfo documentation files.
2022-07-04 15:53:53 -06:00
Jon Trulson 06460abd36 DtSvc/MsgLog.c: remove extra 'noise' around log events
Previous:
-=-=-=-=
*** INFORMATION(0): dtwm: PID 1758056: Sun Feb 27 15:49:37 2022
Workspace Manager: XmeRenderTableGetDefaultFont() failed, trying a fixed font

*** [142]

-=-=-=-=

New:
-=-=-=-=
*** INFORMATION(0): dtwm: PID 1758839: Sun Feb 27 15:54:09 2022
Workspace Manager: XmeRenderTableGetDefaultFont() failed, trying a fixed font
[142 bytes]

-=-=-=-=
2022-02-27 15:58:48 -07:00
Jon Trulson dcf499ded2 gitignore: dtfile and fontaliases additions 2022-02-26 15:51:19 -07:00
Jon Trulson 383b5e4b59 dtstyle: fix bugs preventing SM save from working properly
All of the dtstyle session save routines used sprintf/snprintf whereby
the destination buffer was also a source buffer, like so:

snprintf(bufr, sizeof(style.tmpBigStr), "%s*Fonts.x: %d\n", bufr, x);
         ^^^^                            ^^                 ^^^^

That results in undefined behavior, which mainly meant missing or
currupted XRM resources being saved in the session file for dtstyle.
2022-02-26 15:51:09 -07:00
Jon Trulson b8e98f9ff8 Remove include of non-existant fonts.am file 2022-02-21 22:05:44 +08:00
Jon Trulson 49c73d57ec dtfile: make sure dterror.ds is generated and installed 2022-02-21 14:03:12 -07:00
Jon Trulson ff7f02ee38 .gitignore: add new entries to for the utf8 doc changes 2022-02-12 18:39:29 -07:00
Jon Trulson 7a0c30b547 docbook/doc_utils: make sure XTOOLLIB follows DTCLIENTLIBS to fix link error 2022-02-12 14:41:29 -07:00
Jon Trulson 75c377065a dtprintinfo: ParseJobs.C: fix some compile errors for solaris
The whole parsing function for solaris printing is really bad and needs
rewritten.
2022-01-15 11:58:12 -07:00
Jon Trulson 31774af2f2 library versioning: try to keep the versions at 2.1.0 for all platforms 2021-12-23 13:06:44 -07:00
Jon Trulson 54728d6b89 tradcpp: don't install it
This is a tool used for building CDE, no need to install it.  We can
always do so in the future if needed.
2021-12-22 14:41:06 -07:00
Jon Trulson 459554b960 configure: bump version to 2.4.0c 2021-12-22 13:23:56 -07:00
Jon Trulson 3a0e92adb6 Rename autotools_config.h to cde_config.h to better reflect it's ownership. 2021-12-22 13:21:43 -07:00
Jon Trulson 1b67815df2 configure, libtt: add check for rpc_inline_t and define if not supported 2021-12-22 13:14:55 -07:00
Jon Trulson 931bcaa494 dtsr, DtSearch: finish removing need for BYTE_SWAP define 2021-12-21 16:42:29 -07:00
Jon Trulson 3a0c2ae879 Move DtXinerama.h and PamSvc.h into include/Dt/ 2021-12-21 16:42:29 -07:00
Jon Trulson e10d06f210 configure/Makefiles: add checks for Xmu, Xext, and Xdmcp
We also remove sun pro specific options, and do some general cleanup
as well as remove hardcoded library refs like -lXm, -lXext, etc...
2021-12-21 16:42:22 -07:00
Jon Trulson 8875a12366 configure: don't bother with dthelpdemo 2021-12-21 09:32:55 -07:00
Jon Trulson 71f46b5a56 backdrops: don't install Makefile.am as a backdrop. Ahem. 2021-12-20 15:14:07 -07:00
Jon Trulson 71132d8cab dthelp.dt.src: hack to make Dthelpview ACTION work
For reasons I have been unable to determine, running:

dtaction Dthelpview

or Selecting 'Help Manager' from the front panel fails trying to run
the appropriate EXEC_STRING.  It get's corrupted in some fashion and
you will usually see an error in ~/.dt/errorlog of the form:

/usr/dt/bin/t/bin/dthelpview: No such file or directory

or more commonly:

/bin/sh: /us: No such file or directory

It is not clear where this corruption is taking place, but it shows up
in 'dttypes' output as well.

This hack simply removes 10 spaces between the two commands that are
run:

 EXEC_STRING     /bin/sh -c '/usr/dt/bin/dthelpgen -dir $HOME/.dt/help/$DTUSERSESSION; \
                           /usr/dt/bin/dthelpview -helpVolume browser
                           '

Which seems to solve (hide) the problem.  Finding the real cause of
this will be saved for a later date when more is known and in
particular whether this happens with other ACTIONS.
2021-12-20 15:06:07 -07:00
Jon Trulson 4029c5b813 dtcm/RFCMIME: fix a guaranteed buffer overflow 2021-12-19 12:25:50 -07:00
Jon Trulson dddca18f9b dtbuilder.c.src: fix empty-body warnings 2021-12-19 12:02:40 -07:00
Jon Trulson 2559a96ee8 dtmail: fix vla warning 2021-12-19 11:48:35 -07:00
Jon Trulson bbba562a22 dtsession: don't change perms of dtsession if HAS_PAM_LIBRARY 2021-12-19 11:30:36 -07:00
Jon Trulson c3c7d8303b autoconf: fix some "obsolete function" warnings with newer (2.7x) autoconfs
We also now require at least autoconf 2.69 - which should be fine as
it was released in 2012.
2021-12-18 14:27:22 -07:00
Jon Trulson 73cf4157b5 configure: don't try PAM support on anything other than Linux and NetBSD
It's not supported on OpenBSD and and FreeBSD, though maybe in the
future...?
2021-12-17 17:39:34 -07:00
Jon Trulson 3c95af9871 guides: disable building on NetBSD until it's fixed (NodeParser) 2021-12-17 15:32:33 -07:00
Jon Trulson 2e4029de70 dtcalc: remove matherr() extern due to reversion of a9175c89 2021-12-17 15:21:24 -07:00
Jon Trulson 35360f9900 Revert "dtcalc: Change the prototype of matherr() to reflect actual usage and remove warnings."
This reverts commit a9175c896d.

This is the wrong fix for matherr() troubles.
2021-12-17 15:19:07 -07:00
Jon Trulson 65d17786a1 dtmail: #118: don't fail install if mail group does not exist 2021-12-16 14:30:27 -07:00
Jon Trulson 17602b4d21 Library (.so) versioning: preserve previous library version
Ticket #120

Change libtool's shared library version info to 3:0:1 to preserve the
previous library version of 2.1.0.

See https://autotools.io/libtool/version.html for the details on how
libtool handles this versioning info.

See https://verbump.de/ for a handy 'version calculator' using
libtools rules.
2021-12-16 12:40:15 -07:00
Jon Trulson 05fa4044f4 Look over the install rules and adjust where appropriate
These are just minor tweaks to make sure the 'make install' part does
what it is supposed to do.  I also removed some commented code in the
dtmail Makefile related to SunOS, as that is not currently suppoerted
anyway.
2021-12-15 15:41:53 -07:00
Jon Trulson b55897489f Fix up a few more implicit-function-declaration warnings on the BSDs 2021-12-13 16:46:02 -07:00
Jon Trulson 5f02c65da0 dthelpdemo: disable it
No one is going to want to build and use this example in the
forseeable future, so just disable it.
2021-12-13 16:46:02 -07:00
Jon Trulson e7d657c376 libtt: remove hardcoded -lstdc++ used to build TT library
Hardcoding a -lstdc++ is wrong, since not all OSs are likely to handle
C++ in the same way.

The issue is that libtt needs to be built as a C++ library, so we use
a fake dummy.cxx file to convince libtool to do so instead, rather
than trying to force the issue by linking a (possibly missing)
libstdc++.
2021-12-13 16:44:01 -07:00
Jon Trulson a5a2d937cb Automate versioning for CDE, set current version to 2.4.0b
Previously in the imake world, changing the CDE version required hand
editing a handful of files.

This commit makes these files into ".in" files.  configure.ac now
holds CDE version information -- both in the AC_INIT() call and in the
CDE_VERSION_* variables a few lines down.

Changing the CDE version now involves editing those two locations in
configure.ac only.

Thereafter, a configure run will replace version information in the
following files with the current CDE version:

copyright
doc/common/help/HELPEnt.sgm
include/Dt/Dt.h
lib/tt/bin/ttauth/ttauth.man

This also causes a catch-22 problem with ToolTalk.  So the
tooltalk.inc file is gone and the relevant TT Makefiles have been
modified to set and define the TT version in those Makefiles that
actually use it.
2021-12-13 16:43:42 -07:00
Jon Trulson a2d3491150 dtmailpr/Makefile.am: remove unsupported defines 2021-12-12 16:45:48 -07:00
Jon Trulson 4a0f9701ab DtHelp: remove unused forced bit order depending on OS type 2021-12-12 15:23:28 -07:00
Jon Trulson a77253f9ce Fix a Wself-assign-field clang warning
The arg that should be on the rhs seems to be commented out for some
reason, and assigning a variable to itself is pointless, so just
comment it out with a comment explaining why.
2021-12-12 13:43:44 -07:00
Jon Trulson ab409095d6 Fix a couple of unused-comparison clang warnings 2021-12-12 12:52:14 -07:00
Jon Trulson 75ea7be520 DtSearch/raima: use autodetected byte endianness rather than forcing based on OS 2021-12-12 12:29:48 -07:00
Jon Trulson c479fe7b9e Fix some logical-not-parentheses warnings 2021-12-11 17:39:35 -07:00
Jon Trulson 24a2f05138 Fix some shift-op-parentheses warnings 2021-12-11 17:39:35 -07:00
Jon Trulson d470302354 Fix several pointer-bool-conversion warnings that could cause cores 2021-12-11 17:39:35 -07:00
Jon Trulson adc056eb83 MIMEBodyPart.C: fix a couple sizeof-pointer-memaccess warnings 2021-12-11 17:39:35 -07:00
Jon Trulson dda11f0e38 Fix a bunch of -Wempty-body warnings reported by clang
Many of these were real bugs, like:

if (cond);
   do_something

etc...

Others were just cosmetic - like placing the ';' on a separate line to
make the intention clear.
2021-12-11 13:10:24 -07:00
Jon Trulson 18e25ce273 dtsession/SmUI.c: fix a build issue on OpenBSD 7 2021-12-10 17:24:40 -07:00
Jon Trulson b900f8a36d DtPamSvc: move PamSvc.h to include/Dt/ 2021-12-10 14:08:02 -07:00
Jon Trulson f8877e8e24 dtinfo: fix some installation issues 2021-12-10 12:52:07 -07:00
Jon Trulson 383f0cf4a0 C/guides: install them 2021-12-10 12:01:48 -07:00
Jon Trulson 30e65c6b14 doc/common/guides/guides_env.am: use HELP_LANG 2021-12-10 09:47:31 -07:00
Jon Trulson b29bd77a2f m4/compiler_flag_chk.m4: fix bug related to not testing the actual flag 2021-12-09 15:48:20 -07:00
Jon Trulson a9e028f7c6 doc/C: get m-guides setup 2021-12-09 15:00:00 -07:00
Jon Trulson eebb078c19 doc/C/guides: build the infolib and search DB 2021-12-09 13:50:21 -07:00
Jon Trulson e26c8fb9a4 doc/C/guides: build the TOCs 2021-12-08 16:58:05 -07: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
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 12c82495fd configure: fix a typo in LIBSEARCH and LIBMMDB 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 41dbfddc10 dtsession/Makefile.am: add config to SUBDIR so PAM config is built/installed
Also, update .gitignore due to some renaming of the PAM config files.
2021-11-22 13:18:17 -07:00
Jon Trulson cf7e51ccb5 dthelp: fix implicit-function-declaration warnings (the rest)
... at least with regard to the non-generated code.
2021-11-16 18:28:23 -07:00
Jon Trulson 4f16e12ed8 dthelp: fix implicit-function-declaration warnings (mostly) 2021-11-16 16:24:58 -07:00
Jon Trulson cc422524f7 dtsr: fix implicit-function-declaration warnings 2021-11-16 15:42:09 -07:00
Jon Trulson e8af2b9ac8 dtpdm: fix implicit-function-declaration warnings 2021-11-16 15:24:09 -07:00
Jon Trulson fd53532bcf dtappbuilder: fix implicit-function-declaration warnings
With the exception of the yy* issues.  Can resolve those at a later
time.
2021-11-16 15:21:44 -07:00
Jon Trulson 0ee97b3645 dtcm: fix implicit-function-declaration warnings 2021-11-16 14:46:48 -07:00
Jon Trulson f6c0a00a7a dtksh: fix implicit-function-declaration warnings
Tis does not fix those warnings in ksh93 itself, only the stuff we are
responsible for.
2021-11-16 12:39:18 -07:00
Jon Trulson 3021e01559 configure.ac: add m4 macros that can check for compiler option support
We now use this to set certain options, if supported by the compilers
(C/C++).  Currently we enable various options, like
-Wno-format-truncation.  We use this to ignore complaints about
possibly truncations due to the use of the snprintf() family of
functions - where forced truncation is the whole point.
2021-11-16 12:27:48 -07:00
Jon Trulson 4b3901f63b dtspcd: fix implicit-function-declaration warnings 2021-11-16 11:45:11 -07:00
Jon Trulson 36c9476a74 dtcalc: fix implicit-function-declaration warnings 2021-11-16 11:42:21 -07:00
Jon Trulson 5a0e223ea1 dtterm: fix implicit-function-declaration warnings 2021-11-16 10:40:44 -07:00
Jon Trulson 3fe7bbeca5 dtsession/SmSave: fix format pointer confusion warnings 2021-11-16 09:57:20 -07:00
Jon Trulson 3f1f2ea0f6 dticon: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson 6f553130a3 dtstyle: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson 086002c372 dthello: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00
Jon Trulson bbabcfd5f0 dtsession: fix implicit-function-declaration warnings 2021-11-15 16:07:28 -07:00