Commit Graph

1634 Commits

Author SHA1 Message Date
Jon Trulson 61b58271f9 dticon, dtpad, dtterm: fix session save issues (sprintf bogosity)
Diff supplied by: Giacomo Comes <comes@naic.edu>
2023-02-18 15:40:08 -07:00
Jon Trulson b909f1a9e8 dtksh: enable SHOPT_ECHOPRINT 2023-02-18 15:33:09 -07:00
Jon Trulson 61dbd624b2 dtfile/dterror.ds: fix script defines typo 2023-02-18 15:25:53 -07:00
Jon Trulson d45a233e50 pgadmin.dt: set icon from pgadmin to pgadmin3 2023-02-18 15:16:14 -07:00
Cy Schubert 8a24d70d5e Fix build under LLVM15
Fix many -Wint-conversion errors such as the example below, including
an aso atomics error.

connect.c:87:12: error: incompatible pointer to integer conversion initializing 'LONG' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
   DB_ADDR mdba = NULL;   /* db address of current member record */
           ^      ~~~~
2023-02-18 14:47:38 -07:00
Jon Trulson 02b4302a73 Apply various patches from Giacomo Comes <comes@naic.edu>
This makes certain changes if you are bold enough to use a different
installation prefix than /usr/dt:

- fix MANDIR output from dtsearchpath
- missing dtopn_* links
- /usr/dt/bin is always needed
- fix DTKORNSHELL output for dtlp
2023-02-04 13:03:49 -07:00
Peter Howkins 8dff0e37b7 (Pascal Stumpf) dtlogin: On OpenBSD start X as root (it drops privileges later) 2023-01-22 23:31:42 +00:00
Peter Howkins 85022e0218 (Pascal Stumpf) Makefile.am change several places where ${prefix} should be $(CDE_INSTALLATION_TOP) 2023-01-22 23:23:53 +00:00
hyousatsu e201ef0a7b dtwm: add a new feature -- window rename. 2023-01-22 13:59:40 -07:00
hyousatsu 8ed81a67a7 localized: fix the character encoding errors in zh_TW.UTF-8. 2023-01-22 13:59:40 -07:00
hyousatsu 0011ed2f70 dtwm: optimize EWMH processing. 2023-01-22 13:59:40 -07:00
hyousatsu a90666402c dtwm: add support for _NET_WM_VISIBLE_NAME and
_NET_WM_VISIBLE_ICON_NAME.
2023-01-22 13:59:40 -07:00
hyousatsu 69d47966ad dtwm: fix compiler warnings. 2023-01-22 13:59:39 -07:00
hyousatsu bba694f5f2 dtwm: fix a title bar resizing issue. 2023-01-22 13:59:39 -07:00
Liang Chang 1d451e0e2e dtsession: help xterm load the appropriate font. 2022-08-28 17:51:24 +00:00
Jon Trulson 3300d665a0 Upgrade ksh93 to 1.0.3
This commit upgrades ksh93 to the latest version.  Some minor changes
were required in the dtkcmds.c to make this work.

Most of the changes were in Makefile.am - primarily ensuring that
SHOPTS_* defines matched between dtksh and ksh93 builds, and that
ksh93 was actually told about them :)

The SHOPTS_* defines need to be assigned as the integer 1 as well, or
various preprocessor checks in ksh93 would fail.

Also:

- got rid of SUIDEXECDEFINES - this is a holdover from the Imake days
  and was never defined anyway.

- removed some SHOPT_* defines that no longer existed.

- do not pass CFLAGS to the ksh build at all - no need to complicate
  things.
2022-08-27 18:04:53 -06:00
Jon Trulson 3a68f5db40 Merge commit '97ef0077f06cef6f6bb93b0dae22441078647486' as 'cde/programs/dtksh/ksh93' 2022-08-27 13:53:17 -06:00
Jon Trulson 4bea26e4b7 Remove ksh 1.0.0beta 2022-08-27 13:52:40 -06:00
Liang Chang 3449ea6767 dtsession: help applications enable "international". 2022-08-13 13:55:48 -06:00
Liang Chang f63a747814 dtdocbook: set locale explicitly. 2022-08-13 13:55:48 -06:00
Jon Trulson dcee51c158 #130: Xserver.src: fix sun X server path 2022-08-07 15:15:33 -06:00
Jon Trulson e03eabfd59 #127: dtcm: solaris - use readdir instead of readdir_r 2022-08-07 15:11:21 -06:00
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 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
Chase 45cee195bd Generify source code
Previously we would fail in some parts of the code if we did not have a
premade configuration, now we use any code that was marked as Linux, BSD and
Solaris as our basis in order to support building unknown Unix systems.
2022-08-06 11:31:51 -06:00
Chase b38c2b02a8 Remove detected -lcrypt flag 2022-08-06 11:31:50 -06:00
Chase 60e60b9836 configure: detect libm 2022-07-31 18:33:49 -06:00
Chase 9a9d586e87 configure: detect libdl 2022-07-31 18:33:49 -06:00
Chase 4370a95a84 dthelp: remove obsolete and non-compiled code 2022-07-30 19:36:32 -06:00
Liang Chang 1e7374e2f9 fontaliases: install to DESTDIR correctly. 2022-07-28 22:03:49 +00:00
Chase edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Chase bd83b53d56 dtfile/dtcopy: remove duplicate icons 2022-07-23 17:49:33 -06:00
Chase cfc1664a31 configure.ac: remove patch requirement 2022-07-23 17:49:33 -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
Martijn Dekker bf00d3b274 dtksh: Upgrade ksh93 to 1.0.0-beta.2 2021-12-28
Patch from current ksh93 maintainer <https://github.com/ksh93/ksh>.

cde/programs/dtksh/ksh93/**:
- Upgraded. A load of bugs fixed, some minor features added.
  See NEWS from 2021-02-01 upwards.

cde/programs/dtksh/Makefile.am:
- Don't cd into ksh93 any more to invoke the package or shtests
  scripts; they now automatically find their directories.
- Pass $(CFLAGS) to build ksh with optimisation.
- Remove -D_std_malloc flag as vmalloc is now deprecated and disabled
  by default.
- Add a 'make check' target to Makefile.am that runs the ksh93
  regression tests on dtksh to make sure the additions don't interfere
  with anything. It skips running the tests with shcomp because CDE
  doesn't use that. The tests all pass here on Slackware 14.2. :-)

cde/programs/dtksh/init.patch:
- Removed; I've upstreamed it. It was the only one that wasn't upstreamed
  yet, and more code cleanups are coming, breaking downstream patches. If
  something needs updating, just email me a diff.

cde/programs/dtksh/dtkcmds.h:
- Update the ADDBUILTIN macro to remove the __PROTO__ macro use. The
  proto(1) tool, responsible for all such pre-C89 K&R C compatibility
  voodoo, has been removed, so that macro is no longer defined.

cde/programs/dtksh/setup.sh:
- Workaround script removed. I rewrote 'bin/package flat make' in a way
  that works correctly and changed Makefile.am to use that instead.

Hope this helps. Happy new year.
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
Peter Howkins 1f5ec7f034 Allow the window manager to handle centered, fit and fill backdrops 2022-07-06 17:00:49 -06:00
Jon Trulson 65cedf8dfd Remove remaining Imakefiles, tmpls, and the delete-later dir 2022-07-04 22:49:44 -06:00
Liang Chang 2a988df4c3 dtdocbook: fix a crash caused by type casting. 2022-04-16 08:18:06 -06:00
Liang Chang c051e6d3bc dtcm: set default calendar version to avoid segfault. 2022-04-15 11:09:05 +00:00
Liang Chang 3180a9e02c dtdocbook: only check LC_CTYPE to determine the locale for
DtSearch.
2022-04-15 11:00:06 +00:00
Liang Chang a046a95d81 dtdocbook: ensure the correct data type is passed into the variable
argument list.
2022-04-14 03:33:35 -04:00
Liang Chang 6fdcc6b8b5 dtinfo: update help callback name to XmNhelpCallback. 2022-03-03 13:44:27 +00:00
Liang Chang a84595bf03 dtinfo: ensure the print setup dialog initializing properly. 2022-03-03 13:44:27 +00:00
Liang Chang 342386bfab dtinfo: prevent allocating redundant DtPrintSetupData. 2022-03-03 13:44:27 +00:00
Liang Chang bad30e1b1a dtinfo: fix a highlighting issue. 2022-03-03 13:44:26 +00:00
Liang Chang b796f9fce4 dtinfo: fix a crash. 2022-03-03 13:44:25 +00:00
Liang Chang 6cb67ad217 dtdocbook: update the token of new line. 2022-03-03 13:44:24 +00:00