Commit Graph

89 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 a6e78364d0 Use bindir in install hooks rather than CDE_INSTALLATION_TOP
Patch supplied by Peter G.
2020-03-23 13:00:54 -06:00
Jon Trulson 1aaf63f2a0 dtterm, dtsession, dtappgather, dtmail: set correct perms on make install 2020-01-05 20:53:03 -07:00
Jon Trulson afabfd8bd7 configure: rework libXinerama detection a bit, remove hardcoded -lXinerama's
Make -lXinerama a dep on libDtXinerama so it doen't need to be
specified in Makefile.am files or in LIBS as it was being done
previously.

This still needs a little work, ideally Xinerama should be completely
optional and only enabled if present.  But we can save that for
later.
2019-11-21 14:14:59 -07:00
Jon Trulson b71a319133 dtmailpr: fix vla warning 2019-11-21 14:13:48 -07: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
Jon Trulson 77dfe92b3c dtmail: Make it build. There is more work to be done here.
Specifically, we should be able to have libDtMail subdir build all of
it's objects directly w/o intervening Makefile.am's and archive .a
libs.
2019-10-29 18:34:05 -06:00
Jon Trulson 24171c3194 configure: add programs/ dthelp, dsdm, dtmail, dtpad, and dtfile
At this stage, these certainly won't actually build yet.

Just fix up the relevent Makefile.am files so that autogen does not
emit errors and warnings for them.

Removed AIX/HPUX support in Makefile.am files.  No point in
propogating that stuff when we've already removed much of that
unmaintained code from the codebase.

Commented out all of the Sun Pro stuff.  Someone whos using that will
need to go through and fix it.  This is mostly in dtmail and dthelp.

In fact, someone who does Solaris in general will need to go through
this stuff.

Next up, we'll replace any remaining 'if SUN' conditionals with 'if
SOLARIS' which is a more appropriate name and was already defined in
configure.ac.

Then we'll see about getting these new directories building.
2019-10-28 18:54:17 -06:00
Chase d08d22cb5d programs/dtmail: add automake files 2019-10-23 15:34:20 -06:00
Jon Trulson ab863f212d dtmail: fix extra format args warnings 2019-10-15 21:22:11 -06:00
Jon Trulson a38f72c0c8 dtmail: fix NULL char embedded in format string 2019-10-15 21:12:17 -06:00
wmoxam ab741a1241 'notdef' means it's not used, so we remove it 2019-10-15 20:32:13 -06:00
Jose Rubio c900cedbc9 Fix to delete-incomplete warnings. 2019-10-11 13:43:08 +02:00
Chase 4d7f9df692 Use iconv on linux 2019-01-14 10:48:28 -07:00
Jon Trulson a4a5413cd5 Merge branch 'master' into cde-next 2018-06-28 16:55:04 -06:00
Jon Trulson d0a4f777d8 dtmail: remove register keyword 2018-06-27 22:20:34 -06:00
Matthew R. Trower cd52651a3a Fix DtMail compilation on Sun with GCC 2018-06-27 11:34:00 -06:00
Matthew R. Trower 408f8256cd Resolve inconsistent strcasestr availability on Sun 2018-06-20 12:14:53 -06:00
Jon Trulson ac883b6972 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.
2018-06-14 18:32:35 -06:00
chase 4172308892 Remove reallyoldsun defines 2018-06-09 18:32:42 -06:00
chase 809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -06:00
Ulrich Wilkens 885b65a09a Fixes for OpenBSD 2018-05-31 21:48:07 -06:00
Ulrich Wilkens 07f272122d Fix Linux rpc problems with new glibc 2018-05-31 18:00:22 -06:00
chase 4f5e7fe5e3 Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
chase 164e695cd0 remove OSF1 support 2018-05-24 14:25:26 -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 3ccf3a8b86 Add missing license headers on *.hh files and others 2018-05-12 15:49:13 -06:00
chase 33d2749ea3 Last of the spelling fixed 2018-04-28 12:36:44 -06:00
chase 6d3a19d8f9 Even more spelling fixed 2018-04-28 12:36:33 -06:00
chase 1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -06:00
chase 0aa8780fa1 Small spelling fixes 2018-04-25 19:40:19 -06:00
chase 00fc1c54c1 Rewrite csh scripts in sh, use sh instead of csh in scripts 2018-04-25 19:35:49 -06:00
Peter Howkins 3cf92f3741 dtmail: Further Coverity fixes 2018-04-24 02:38:56 +01:00
Peter Howkins f905d25392 dtmail: resolve coverity warnings related to uninitialised members in C++ classes 2018-04-20 02:36:24 +01:00
Peter Howkins 0b38496bd8 dtmail: resolve 'deference before null check' errors related to if(!NULL) checks around free() calls 2018-04-02 20:29:28 +01:00
Jon Trulson 77d10002bf dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect 2018-03-31 18:55:56 -06:00
Jon Trulson ecee8b3f3a dtmail/DtMailRc.C: coverity CID 88975; use after free 2018-03-31 17:46:53 -06:00
Swift Griggs 1fdcd4c93d Patches from pkgsrc-WIP 2016-08-05 11:21:06 -06:00
Peter Howkins 2ea057d511 Disable all code related to libXp
deprecated and mostly no longer included on current OSes
2016-04-20 20:17:22 +01:00
Ulrich Wilkens f8fdf4920f Fix FreeBSD 10.2 build 2015-10-21 19:23:05 -06:00
Ulrich Wilkens 8b38d9ea49 Fix broken build on OpenBSD 2015-05-09 16:21:32 -06:00
Ulrich Wilkens 2b8b5f25b5 Support for new Solaris/OpenIndiana versions 2015-05-09 16:19:08 -06:00
Peter Howkins 90bd9101e3 dtmail: add a stdint.h include for openbsd, as reported by Daniel Diaz via the wiki. 2015-01-09 16:30:43 +00:00
Peter Howkins 0a0e1eebf5 dtmail: Resolve 50 compiler warnings. 2015-01-06 15:07:55 +00:00
Ulrich Wilkens 01d6c363fa OpenIndiana and Solaris port 2014-10-28 13:40:11 -06:00
Jon Trulson abfcb71d1d dtmail: MotifCmds.C: NULL is not False 2014-09-14 14:20:21 -06:00
Jon Trulson 10e295b967 WMSaveSession.C: NULL is not 0 2014-04-06 16:54:31 -06:00
Jon Trulson 4a22f0671b SendMsgDialog.C: NULL is not 0 2014-04-06 16:53:05 -06:00
Jon Trulson 20265cd088 RoamMenuWindow.C: NULL is not 0 2014-04-06 16:51:16 -06:00