oweals/cde.git
6 years agoUse installed X11 includes and libs
Ulrich Wilkens [Thu, 28 Jun 2018 02:29:17 +0000 (04:29 +0200)]
Use installed X11 includes and libs

6 years agoFix DtMail compilation on Sun with GCC
Matthew R. Trower [Wed, 27 Jun 2018 03:47:09 +0000 (22:47 -0500)]
Fix DtMail compilation on Sun with GCC

6 years agoReenable gcc support on FreeBSD and OpenBSD
Ulrich Wilkens [Wed, 27 Jun 2018 01:55:19 +0000 (03:55 +0200)]
Reenable gcc support on FreeBSD and OpenBSD

6 years agoEnable building against an arbitrary Motif installation
Matthew R. Trower [Tue, 12 Jun 2018 00:59:44 +0000 (19:59 -0500)]
Enable building against an arbitrary Motif installation

* Give MotifProjectRoot priority over system libs
* Switch to UseInstalledMotif (but retain necessary imports)

6 years agolinux/site.def: use an if !defined() gaurd for DtLocalesToBuild
Jon Trulson [Sun, 24 Jun 2018 18:48:14 +0000 (12:48 -0600)]
linux/site.def: use an if !defined() gaurd for DtLocalesToBuild

Without this, you cannot use the command line to select the languages
to build, you would have to edit site.def directly.

With this fix, you can build a language on linux with something like:

make World IMAKE_DEFINES='-DDtLocalesToBuild="de_DE.ISO8859-1 es_ES.ISO8859-1"'

to build the DE (German) and es (Spanish) locales.

6 years agolibtt: if local hostname lookup fails, default to localhost
Jon Trulson [Wed, 20 Jun 2018 22:59:34 +0000 (16:59 -0600)]
libtt: if local hostname lookup fails, default to localhost

A recurring problem, mainly on the BSD's, and also on some Linux
installations, is a failure for ttsession to start and any clients
trying to attach to it failing due to having a hostname that is not
associated with an IP address.

This is due to code which looks up the hostname, and if it does not
have a valid host record, then TT just fails.

This has required those users to add an alias for their host name in
their /etc/hosts file.

With this commit, this should no longer be necessary.  Now, if
_XGethostbyname() fails when looking up the local name, a default of
"localhost" is used, which should always exist.

This was run tested on Linux and FreeBSD 11.1.  It was compile tested
on OpenBSD 6.2.

6 years agoMinor corrections and cleanup to sun.cf
Matthew R. Trower [Tue, 12 Jun 2018 04:10:39 +0000 (23:10 -0500)]
Minor corrections and cleanup to sun.cf

6 years agoResolve inconsistent strcasestr availability on Sun
Matthew R. Trower [Tue, 19 Jun 2018 20:25:20 +0000 (15:25 -0500)]
Resolve inconsistent strcasestr availability on Sun

6 years agoAdd SMF service on Sun
Matthew R. Trower [Mon, 18 Jun 2018 09:20:43 +0000 (04:20 -0500)]
Add SMF service on Sun

6 years agoimake: Refactor and fix get_sun_compiler_versions()
Matthew R. Trower [Wed, 13 Jun 2018 10:15:01 +0000 (05:15 -0500)]
imake: Refactor and fix get_sun_compiler_versions()

* Improve maintainability
* Improve robustness
* Correct gcc version detection
* Correct gcc include path detection

6 years agoOpenBSD: tone down compiler warnings a bit
Jon Trulson [Fri, 15 Jun 2018 20:52:21 +0000 (13:52 -0700)]
OpenBSD: tone down compiler warnings a bit

So many of these are just noise.  Someday maybe we can eliminate
these, but for now they just obscure real problems.

6 years agoCDE-ICONS: create compatibility symlinks as relative rather than absolute
Jon Trulson [Fri, 15 Jun 2018 19:42:52 +0000 (12:42 -0700)]
CDE-ICONS: create compatibility symlinks as relative rather than absolute

Some icons are actually symlinks to other icons, presumably for
compatibility with older systems.  These were absolute symlinks.  This
commit makes them relative symlinks instead.

6 years agonsgml: Resolve symbol collision when building with SunStudio 12.1
Matthew R. Trower [Thu, 14 Jun 2018 03:16:14 +0000 (22:16 -0500)]
nsgml: Resolve symbol collision when building with SunStudio 12.1

6 years agoFreeBSD: turn off some warnings
Jon Trulson [Fri, 15 Jun 2018 01:05:40 +0000 (01:05 +0000)]
FreeBSD: turn off some warnings

Someday these can be addressed, but for now they are just noise.

6 years agoFreeBSD 11: Fix clang (v6) builds
Jon Trulson [Fri, 15 Jun 2018 00:00:46 +0000 (00:00 +0000)]
FreeBSD 11: Fix clang (v6) builds

While CDE builds fine with gcc6 on FreeBSD 11, the default clang build
was broken in a few places.  This commit allows CDE to build now using
the default clang 6 system compiler.

6 years agoXPM: Replace calls to XmeXpm*() with regular Xpm*()
Jon Trulson [Sat, 9 Jun 2018 00:28:23 +0000 (18:28 -0600)]
XPM: Replace calls to XmeXpm*() with regular Xpm*()

This is no longer needed on modern Motif's.

6 years agoOpenBSD 6+: use installed X11 and Motif
Jon Trulson [Thu, 14 Jun 2018 18:59:21 +0000 (12:59 -0600)]
OpenBSD 6+: use installed X11 and Motif

This commit removes the need to setup X11 and motif import symlinks
before building CDE.  With OpenBSD v6+, the installed versions of X11 and
Motif will be used.

This may work with earlier versions of OpenBSD as well, but I don't
have access to those older versions.  If you try it, and it works,
send a patch to the CDE mailing list.

This was tested on OpenBSD 6.2

6 years agobuilding_release_archive: omit '-src' in archive filename
Jon Trulson [Thu, 14 Jun 2018 19:08:20 +0000 (13:08 -0600)]
building_release_archive: omit '-src' in archive filename

6 years agoFreeBSD 11: Don't use imported x11/motif, use installed versions for build
Jon Trulson [Thu, 14 Jun 2018 00:59:38 +0000 (00:59 +0000)]
FreeBSD 11: Don't use imported x11/motif, use installed versions for build

With this patch, the import symlinks for x11 and motif do not need to
be created.  The build will use the installed headers in
/usr/local/include/{X11, Xm}.

This will work for FreeBSD 11 only ATM as I don't have older systems
to test with.

It may work for FreeBSD 10 or earlier versions as well.  If so, edit
config/cf/FreeBSD.cf and change the OSMajorVersion check for
UseInstalledX11 appropriately.  And send a patch to the CDE mailing
list :)

6 years agodtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C
Jon Trulson [Wed, 13 Jun 2018 23:10:35 +0000 (23:10 +0000)]
dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C

This caused a compilation failure using gcc6 on FBSD 11.1-STABLE.

6 years agolibDtTerm: Fix for a coredump seen on OpenBSD
Jon Trulson [Wed, 13 Jun 2018 19:27:46 +0000 (13:27 -0600)]
libDtTerm: Fix for a coredump seen on OpenBSD

6 years agodocnook.tcl: Add shebang
chase [Tue, 12 Jun 2018 11:46:08 +0000 (06:46 -0500)]
docnook.tcl: Add shebang

6 years agocreate .depend files for Solaris+Illumos
Ulrich Wilkens [Mon, 11 Jun 2018 21:00:41 +0000 (23:00 +0200)]
create .depend files for Solaris+Illumos

6 years agoinstallCDE.src: remove duplicate code
chase [Sun, 10 Jun 2018 16:02:07 +0000 (11:02 -0500)]
installCDE.src: remove duplicate code

6 years agoRemove reallyoldsun defines
chase [Sat, 9 Jun 2018 02:01:54 +0000 (21:01 -0500)]
Remove reallyoldsun defines

6 years agocde: change version to 2.2.4a, for a development release 2.2.4a
Jon Trulson [Fri, 8 Jun 2018 19:03:39 +0000 (13:03 -0600)]
cde: change version to 2.2.4a, for a development release

6 years agoFix imake segfault on OpenIndiana
Matthew R. Trower [Mon, 4 Jun 2018 05:34:52 +0000 (00:34 -0500)]
Fix imake segfault on OpenIndiana

Version string changed in distributed GCC6, confusing
get_sun_compiler_versions().

6 years agoinstallCDE: Only install locales that were built
Jon Trulson [Sat, 2 Jun 2018 01:47:41 +0000 (19:47 -0600)]
installCDE: Only install locales that were built

We pass the DtLocalesToBuild to installCDE.src, which can then check
to see what locales were built.  We then only install packages for
those locales.

6 years agosite.def: Only build C/en_US locales by default for Linux
Jon Trulson [Fri, 1 Jun 2018 23:11:15 +0000 (17:11 -0600)]
site.def: Only build C/en_US locales by default for Linux

6 years agolinux.cf: disable stripping of installed binaries
Jon Trulson [Fri, 1 Jun 2018 19:53:41 +0000 (13:53 -0600)]
linux.cf: disable stripping of installed binaries

The build system should not generally strip binaries - that's up to
the packaging systems (for creating 'release' vs. 'debug' packages for
example).

6 years agoinstallCDE: unset FIGNORE to workaround potential ksh bug
Jon Trulson [Fri, 1 Jun 2018 17:32:39 +0000 (11:32 -0600)]
installCDE: unset FIGNORE to workaround potential ksh bug

6 years agoconfigTT: remove inetd support
Jon Trulson [Thu, 31 May 2018 23:29:14 +0000 (17:29 -0600)]
configTT: remove inetd support

6 years agoconfigMin: remove inetd support, 'pam' support
Jon Trulson [Thu, 31 May 2018 23:23:42 +0000 (17:23 -0600)]
configMin: remove inetd support, 'pam' support

I'm not sure what the pam stuff wanted to do, but it was disabled
anyway and we do not need it.  Someday, we will want to integrate with
PAM properly, but this wasn't it.

6 years agoconfigRun: remove inetd support
Jon Trulson [Thu, 31 May 2018 23:17:56 +0000 (17:17 -0600)]
configRun: remove inetd support

I don't believe anyone uses inetd anymore.  If you do, you are on your
own.

6 years agoconfigRun: leave dtmail alone, UDB handles it's perms correctly
Jon Trulson [Thu, 31 May 2018 22:54:51 +0000 (16:54 -0600)]
configRun: leave dtmail alone, UDB handles it's perms correctly

6 years agocde.desktop: add xpm icon
chase [Sun, 27 May 2018 18:13:41 +0000 (13:13 -0500)]
cde.desktop: add xpm icon

6 years agofix files not registering as scripts
chase [Sun, 27 May 2018 15:58:08 +0000 (10:58 -0500)]
fix files not registering as scripts

6 years agodtsession: fix screen saver/locking on linux
Jon Trulson [Tue, 29 May 2018 18:28:21 +0000 (12:28 -0600)]
dtsession: fix screen saver/locking on linux

The POSIX __linux__ commit broke the special detection on linux used
to determine whether a secure system was in use or not.

This commit reworks the logic a little bit to avoid special casing
linux in main().

It also reworks the logic in CanReAuthenticate() to fix up some issues
"fixed" to correct converity warnings.  The logic in this case was
mostly ok, but still didn't account for the proper usage of this
function.  Error detection improved somewhat as a result.

6 years agocde.desktop:Add keywords to desktop entry
chase [Sat, 26 May 2018 20:28:08 +0000 (15:28 -0500)]
cde.desktop:Add keywords to desktop entry

6 years agodtcm: NULL is not 0
Jon Trulson [Sat, 26 May 2018 19:13:13 +0000 (13:13 -0600)]
dtcm: NULL is not 0

6 years agolibDtCmP: use TIRPC on linux, fix some warnings
Jon Trulson [Sat, 26 May 2018 19:07:40 +0000 (13:07 -0600)]
libDtCmP: use TIRPC on linux, fix some warnings

6 years agodtcm/graphics: NULL is not 0
Jon Trulson [Sat, 26 May 2018 19:04:57 +0000 (13:04 -0600)]
dtcm/graphics: NULL is not 0

6 years agorpc.cmsd: use TIRPC on Linux
Jon Trulson [Sat, 26 May 2018 18:58:14 +0000 (12:58 -0600)]
rpc.cmsd: use TIRPC on Linux

6 years agoXlationSvc: remove a "'" added in previous spelling commit that causes warnings
Jon Trulson [Sat, 26 May 2018 18:36:20 +0000 (12:36 -0600)]
XlationSvc: remove a "'" added in previous spelling commit that causes warnings

6 years agoSpelling fixes
chase [Sat, 26 May 2018 16:50:47 +0000 (11:50 -0500)]
Spelling fixes

6 years agoImake.tmpl: don't delete logfiles (make.log MakeOut)
Jon Trulson [Sat, 26 May 2018 17:56:17 +0000 (11:56 -0600)]
Imake.tmpl: don't delete logfiles (make.log MakeOut)

6 years agoinstallCDE.src: Add a -destdir <dir> option
Jon Trulson [Fri, 25 May 2018 02:07:18 +0000 (20:07 -0600)]
installCDE.src: Add a -destdir <dir> option

Using this option, all files are installed under <dir> rather than
root '/'.

6 years agoFix warnings on FreeBSD
Ulrich Wilkens [Fri, 1 Jun 2018 01:55:10 +0000 (03:55 +0200)]
Fix warnings on FreeBSD

6 years agoFixes for OpenBSD
Ulrich Wilkens [Fri, 1 Jun 2018 01:29:42 +0000 (03:29 +0200)]
Fixes for OpenBSD

6 years agoFix Linux rpc problems with new glibc
Ulrich Wilkens [Thu, 31 May 2018 20:50:44 +0000 (22:50 +0200)]
Fix Linux rpc problems with new glibc

6 years agoFix BSD and Sun problems after coverity fixes
Ulrich Wilkens [Thu, 31 May 2018 20:47:27 +0000 (22:47 +0200)]
Fix BSD and Sun problems after coverity fixes

6 years agodinstallCDE.src: add linux and *BSD support
chase [Fri, 25 May 2018 18:51:21 +0000 (13:51 -0500)]
dinstallCDE.src: add linux and *BSD support

6 years agott_xdr_utils: fix up some warnings
Jon Trulson [Fri, 25 May 2018 17:16:04 +0000 (11:16 -0600)]
tt_xdr_utils: fix up some warnings

6 years agott_old_db: use TT_DB_OK instead of NULL
Jon Trulson [Fri, 25 May 2018 16:23:18 +0000 (10:23 -0600)]
tt_old_db: use TT_DB_OK instead of NULL

6 years agoTermPrimSetUtmp: fix lost define broken by last patch
Jon Trulson [Fri, 25 May 2018 00:52:53 +0000 (18:52 -0600)]
TermPrimSetUtmp: fix lost define broken by last patch

6 years agoUse POSIX macros for linux
chase [Thu, 24 May 2018 21:24:41 +0000 (16:24 -0500)]
Use POSIX macros for linux

6 years agoremove OSF1 support
chase [Thu, 24 May 2018 19:50:03 +0000 (14:50 -0500)]
remove OSF1 support

6 years agoCDE-DEMOS: remove references to Makefile.novell
Jon Trulson [Sun, 20 May 2018 19:00:06 +0000 (13:00 -0600)]
CDE-DEMOS: remove references to Makefile.novell

6 years agoUse /var/spool instead of /usr/spool and /var/mail instead of /usr/mail
chase [Sun, 20 May 2018 01:54:27 +0000 (20:54 -0500)]
Use /var/spool instead of /usr/spool and /var/mail instead of /usr/mail

6 years agoRemove Unixware and openserver support
chase [Sun, 20 May 2018 00:50:35 +0000 (19:50 -0500)]
Remove Unixware and openserver support

6 years agoCDE-MAN-DEV.udb: remove extra }, added when UXP support was removed
Jon Trulson [Wed, 16 May 2018 03:18:53 +0000 (21:18 -0600)]
CDE-MAN-DEV.udb: remove extra }, added when UXP support was removed

6 years agoRemove UXPDS support
chase [Wed, 16 May 2018 01:11:08 +0000 (20:11 -0500)]
Remove UXPDS support

6 years agosgml-mode.el: fix address, dt-toolbox: delete
chase [Sun, 13 May 2018 18:29:44 +0000 (13:29 -0500)]
sgml-mode.el: fix address, dt-toolbox: delete

6 years agocde.desktop: remove deprecated encoding key
chase [Sun, 13 May 2018 17:50:17 +0000 (12:50 -0500)]
cde.desktop: remove deprecated encoding key

6 years agoRemove examples/motif
chase [Sun, 13 May 2018 00:31:03 +0000 (17:31 -0700)]
Remove examples/motif

6 years agoAdd generated binaries to gitignore from programs/localized/
chase [Sat, 12 May 2018 23:24:46 +0000 (16:24 -0700)]
Add generated binaries to gitignore from programs/localized/

6 years agoRemove bsdi support
chase [Sat, 12 May 2018 23:18:11 +0000 (16:18 -0700)]
Remove bsdi support

6 years agoAdd missing license headers on *.hh files and others
chase [Sat, 12 May 2018 16:36:25 +0000 (09:36 -0700)]
Add missing license headers on *.hh files and others

6 years agodtwm: Resolve coverity warnings related to uninitialised variables and missing return...
Peter Howkins [Tue, 1 May 2018 19:45:55 +0000 (20:45 +0100)]
dtwm: Resolve coverity warnings related to uninitialised variables and missing return statements

6 years agodtappbuilder: Coverity fixes mostly related to uninitialised variables
Peter Howkins [Tue, 1 May 2018 18:02:14 +0000 (19:02 +0100)]
dtappbuilder: Coverity fixes mostly related to uninitialised variables

6 years agodthelp: Further coverity fixes
Peter Howkins [Mon, 30 Apr 2018 03:11:44 +0000 (04:11 +0100)]
dthelp: Further coverity fixes

6 years agodtfile/File.c: implement a hack to fix Ticket #19, tree icons are black
Jon Trulson [Mon, 30 Apr 2018 01:44:31 +0000 (19:44 -0600)]
dtfile/File.c: implement a hack to fix Ticket #19, tree icons are black

The real issue seems to be a bug in Motif.  The background color for
these tree icons is always black.  Depending on what Palette you have
selected, it's possible for the foreground color to be black.  When
this happens, you will see a black square since both fg and bg are now
black.

You can select another Palette that works (ie: foreground is white)
and the problem goes away.  So, for now, we always force a white
foreground color so the actual symbols are visible in tree mode.

6 years agodticon: Fix broken string length calculation
Peter Howkins [Mon, 30 Apr 2018 00:51:15 +0000 (01:51 +0100)]
dticon: Fix broken string length calculation

6 years agodtimsstart: Fix brackets on previous coverity fix
Peter Howkins [Mon, 30 Apr 2018 00:47:53 +0000 (01:47 +0100)]
dtimsstart: Fix brackets on previous coverity fix

6 years agodtsession: A few extra snprintf's for buffer safety
Peter Howkins [Sun, 29 Apr 2018 01:11:23 +0000 (02:11 +0100)]
dtsession: A few extra snprintf's for buffer safety

6 years agodtlogin: Resolve some coverity issues, including those thought previously fixed
Peter Howkins [Sat, 28 Apr 2018 22:47:05 +0000 (23:47 +0100)]
dtlogin: Resolve some coverity issues, including those thought previously fixed

6 years agodtfile: batch coverity fixes
Peter Howkins [Sat, 28 Apr 2018 22:12:04 +0000 (23:12 +0100)]
dtfile: batch coverity fixes

6 years agodtimsstart: Fix derp in previoua fix set
Peter Howkins [Sat, 28 Apr 2018 22:09:45 +0000 (23:09 +0100)]
dtimsstart: Fix derp in previoua fix set

6 years agodtimsstart: Coverity fixes
Peter Howkins [Sat, 28 Apr 2018 20:44:27 +0000 (21:44 +0100)]
dtimsstart: Coverity fixes

6 years agodtimsstart: Resolve all compiler warnings
Peter Howkins [Sat, 28 Apr 2018 20:17:28 +0000 (21:17 +0100)]
dtimsstart: Resolve all compiler warnings

6 years agoMerge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde...
Peter Howkins [Sat, 28 Apr 2018 19:34:39 +0000 (20:34 +0100)]
Merge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde-fixups-1

6 years agodticon: coverity fixes
Peter Howkins [Sat, 28 Apr 2018 19:33:44 +0000 (20:33 +0100)]
dticon: coverity fixes

6 years agoLast of the spelling fixed
chase [Wed, 18 Apr 2018 11:43:05 +0000 (04:43 -0700)]
Last of the spelling fixed

6 years agoEven more spelling fixed
chase [Wed, 18 Apr 2018 05:00:05 +0000 (22:00 -0700)]
Even more spelling fixed

6 years agoFix typo in license headers
chase [Thu, 26 Apr 2018 08:00:28 +0000 (01:00 -0700)]
Fix typo in license headers

6 years agodtappbuilder: Further coverity, resource leaks, copy intofixed size buffer and derefe...
Peter Howkins [Sat, 28 Apr 2018 01:51:10 +0000 (02:51 +0100)]
dtappbuilder: Further coverity, resource leaks, copy intofixed size buffer and dereference before null checl

6 years agoSmall spelling fixes
chase [Tue, 24 Apr 2018 05:41:14 +0000 (22:41 -0700)]
Small spelling fixes

6 years agoRewrite csh scripts in sh, use sh instead of csh in scripts
chase [Tue, 24 Apr 2018 02:49:30 +0000 (19:49 -0700)]
Rewrite csh scripts in sh, use sh instead of csh in scripts

6 years agodtappbuilder: Fix for very wrong sized buffer
Peter Howkins [Thu, 26 Apr 2018 00:50:33 +0000 (01:50 +0100)]
dtappbuilder: Fix for very wrong sized buffer

6 years agodtappbuilder: Coverity fixes for mising return value and copy into fixed size buffer
Peter Howkins [Thu, 26 Apr 2018 00:36:02 +0000 (01:36 +0100)]
dtappbuilder: Coverity fixes for mising return value and copy into fixed size buffer

6 years agodtappbuilder: Resolve all compiler warnings
Peter Howkins [Tue, 24 Apr 2018 20:55:56 +0000 (21:55 +0100)]
dtappbuilder: Resolve all compiler warnings

6 years agodtlogin: Two additional coverity fixes
Peter Howkins [Tue, 24 Apr 2018 02:57:35 +0000 (03:57 +0100)]
dtlogin: Two additional coverity fixes

6 years agodtinfo: Extra fixes for previous believed fixed things (coverity)
Peter Howkins [Tue, 24 Apr 2018 02:25:54 +0000 (03:25 +0100)]
dtinfo: Extra fixes for previous believed fixed things (coverity)

6 years agodtsr: Coverity fixes for string buffer issues
Peter Howkins [Tue, 24 Apr 2018 02:03:06 +0000 (03:03 +0100)]
dtsr: Coverity fixes for string buffer issues

6 years agodtmail: Further Coverity fixes
Peter Howkins [Tue, 24 Apr 2018 01:38:56 +0000 (02:38 +0100)]
dtmail: Further Coverity fixes

6 years agolibtt: Fixes for Coverity fixes that I thought I'd already fixed.
Peter Howkins [Mon, 23 Apr 2018 23:05:56 +0000 (00:05 +0100)]
libtt: Fixes for Coverity fixes that I thought I'd already fixed.

6 years agodtpdm: Coverity 87632, 87664, 87923
Peter Howkins [Mon, 23 Apr 2018 02:43:48 +0000 (03:43 +0100)]
dtpdm: Coverity 87632, 87664, 87923

6 years agoMerge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde...
Peter Howkins [Mon, 23 Apr 2018 01:21:30 +0000 (02:21 +0100)]
Merge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde-fixups-1

6 years agodtinfo: Fix coverity warning related to using delete not delete []
Peter Howkins [Mon, 23 Apr 2018 01:20:23 +0000 (02:20 +0100)]
dtinfo: Fix coverity warning related to using delete not delete []

6 years agoMore spelling fixes
chase [Wed, 18 Apr 2018 01:10:17 +0000 (18:10 -0700)]
More spelling fixes