Commit Graph

536 Commits

Author SHA1 Message Date
Liang Chang b816b85575 DtTerm: enable post-process output. 2021-12-03 22:10:57 +09:00
Jon Trulson 23b3b76c1d lib/csa: fix implicit-function-declaration warnings 2021-11-12 16:21:34 -07:00
Jon Trulson 5223d0408e lib/DtTerm: fix implicit-function-declaration warnings 2021-11-12 16:14:18 -07:00
Jon Trulson fd3be337fa lib/DtWidgets: fix implicit-function-declaration warnings 2021-11-12 15:05:56 -07:00
Jon Trulson 6d50de9448 DialogBox.c: fix ptr<->int conversion 2021-10-23 16:40:22 -06:00
Jon Trulson f61316c4f4 tt_ldpath: fix broken logic in find_lib 2021-10-23 14:50:40 -06:00
Liang Chang c47e290379 Remove DtXpm. 2021-10-18 10:10:20 -06:00
Liang Chang 0672e9e0cf DtHelp: use libXpm directly. 2021-10-18 10:10:20 -06:00
OBATA Akio 4316bb797d libcsa: fix to use proper xdr function for time_t 2021-10-12 17:24:26 +09:00
OBATA Akio 008bcba766 libcsa: always use time_t for tick 2021-10-12 17:24:26 +09:00
OBATA Akio 194ae3639f libcsa: remove duplicated function prototype
Just `_DtCm_clnt_call` is used anycase.
2021-10-12 17:24:13 +09:00
OBATA Akio 16fe76ed65 Fix to include system header files for using functions 2021-10-08 14:40:56 +09:00
OBATA Akio ed90eb7f45 Change to use POSIX confirmed `select` argments unconditionally
Current condition is unsufficient, and It is already used unconditionally
in other sources.
2021-09-30 15:53:59 +09:00
OBATA Akio 20c1768a19 Change to detect iconv implementation with autoconf
Use iconv.m4 (and required macros) form gettext-0.21.
2021-09-21 14:04:40 +09:00
Jon Trulson be6bc0aa54 Remove some unused imake *.tmpl files
We still keep some of them for doc/ and dtinfo until those are
building properly.
2021-09-19 14:42:11 -06:00
b'Jon Trulson d43e6bd6c2 Merge /u/obache/cdesktopenv/ branch fix/missing-version-bump into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/31/
2021-09-19 18:57:22 +00:00
OBATA Akio 692771fb07 Get rid of support of ancient signal handler return type int
Such environments are missing void type, older K&R C, and
such supports already had been removed in various places.
Furthermore, current hardcoded 'SIGNALRETURNSINT' is wrong.
2021-09-19 18:08:41 +09:00
OBATA Akio 483a4c314f lib/tt: fix missing version bump 2021-09-14 18:40:29 +09:00
Jon Trulson 3e81d4c4de csa: specify correct time_t type in _DtCm_print_tick() prototype 2021-08-07 18:32:33 -06:00
Jon Trulson cc60fb8241 configure: remove freetype checks, we do not need freetype anymore 2021-07-08 16:35:51 -06:00
Jon Trulson 2730367844 utempter: complete the implementation
Liang Chang added utempter support to the dtterm widget in
pre-autoconf CDE.  While the code itself was merged, it was still not
"turned on" for autoconf builds.

This commit completes the implementation allowing dtterm on Linux and
the BSDs to be installed without having to be setuid root -- as long
as the libutempter headers and libraries are installed.
2021-07-04 16:45:57 -06:00
Adam Sampson 67ef980644 DtSvc: fix error return from DtHelpReturnSelectedWidgetId
return(NULL) is correct for the other functions here but not for this
one, since it's meant to return a DtHELP_ error code. The man page also
says it should also set *widget to NULL on error.
2021-07-04 13:17:30 -06:00
Adam Sampson d9769e4774 DtSvc: add missing #include (for malloc) 2021-07-04 13:15:33 -06:00
Jon Trulson ac8bd41373 Revert "Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym"
This reverts commit 15a2032626.

This is wrong - it is missing the proper include file, and the
new function takes 4 arguments not 3.
2021-07-04 13:00:51 -06:00
Jon Trulson 369b3e89d9 Begin removal of some Imakefiles, and other no longer useful cruft
This commit will not completely remove all Imake files, specifically
those for sections that have not been completed yet.

Also, the databases dir has been moved to databases-delete-later until
we have everything building and installed properly.
2021-07-03 18:23:40 -06:00
Jon Trulson 727baab329 Bump version to 2.4.0a for upcoming merge 2021-07-03 17:24:22 -06:00
Jon Trulson 5a03b6a5e8 Merge branch 'master' into autotools-conversion 2021-07-03 16:56:54 -06:00
Jon Trulson 8e4de15495 Bump version to 2.4.0 for release 2021-07-03 13:35:15 -06:00
Jon Trulson 4338ac2e2a Merge branch 'master' into autotools-conversion 2021-06-26 15:06:38 -06:00
Jon Trulson 2a3e91383b autotools: get the PAM support from master working on linux and freebsd 2021-06-02 19:57:23 -06:00
Jon Trulson b5cc42e029 Apply a patch from Roger Brown for risc-v and other minor fixes
Summary:

cde/config/cf/DtInfo.tmpl - add RISCVArchitecture as little endian
cde/config/cf/Imake.cf    - add AArch64Architecture for NetBSD
cde/config/cf/Imake.cf    - add RISCVArchitecture for Linux
cde/config/cf/linux.cf    - add RISCVArchitecture bit order
cde/lib/DtHelp/Imakefile  - add -ljpeg for OpenBSD
2021-06-02 19:57:23 -06:00
Liang Chang ba1c6bf810 DtTerm: Add libutempter support for utmp/wtmp updates. 2021-06-02 19:56:30 -06:00
Liang Chang 82d4a8bb68 DtTerm: Add pts driver support. 2021-06-02 19:56:30 -06:00
Jon Trulson 49adbfb25d Bump devel version to 2.3.2c 2021-06-02 19:56:30 -06:00
Liang Chang c75169ca3f DtPamSvc: Improve user experience. 2021-06-02 19:56:29 -06:00
Liang Chang 5d85af571a DtPamSvc: use utmpx. 2021-06-02 19:56:29 -06:00
Liang Chang 7cd6b8b714 DtPamSvc: update Imakefile. 2021-06-02 19:56:29 -06:00
Liang Chang c10684c63c Add lib DtPamSvc. 2021-06-02 19:56:29 -06:00
Liang Chang d428d68edb csa: replace sprintf with asprintf to avoid segfaults. 2021-06-02 19:56:26 -06:00
Lev Kujawski 356ac2f327 Purge unused Freetype dependency from CDE
config/cf/{DragonFly,OpenBSD,darwin}.cf: Remove Freetype imake settings
config/cf/darwinLib.tmpl: Do not link against Freetype
debian/control: Remove Freetype and Xft dependencies
*/Imakefile: Purge Freetype includes

lib/DtWidget/ComboBoxP.h
lib/DtWidget/SpinBoxP.h
programs/dtfile/ChangeDirP.c
programs/dtlogin/vgcallback.c
    Undefine USE_XFT so Motif 2.3 doesn't pull in Freetype

CDE included Freetype and Xft solely to satisfy builds of Motif with
Xft support enabled. However, as CDE only supports bitmap fonts, this
dependency was entirely superfluous and unnecessarily broke backwards
compatibility with older systems.
2021-06-02 19:56:26 -06:00
Lev Kujawski 1f52f5ca81 Avoid Global Offset Table (GOT) limits by enabling -fPIC on the BSDs.
config/cf/bsdLib.rules: Switch -fpic to -fPIC
lib/DtXinerama/Imakefile: Use $(PICFLAGS) instead of -fpic

Several tickets have been opened by users encountering the low 8KiB
GOT limit on SPARC systems running BSD. This change makes CDE builds
on BSD more consistent with those on Linux, where -fPIC has been the
default without any reported issues.
2021-06-02 19:56:26 -06:00
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 e8345c9241 autotools: specify tirpc lib to link the tooltalk binaries
Newer ubuntu's do not seem to honor the implied library dependency of
libtt->libtirpc, so we must explicitly specify libtirpc when linking
them.
2021-06-01 18:23:46 -06:00
Jon Trulson 248c75515e libDtTerm: fixes to build in autotools branch for freebsd 2021-06-01 18:23:46 -06:00
Jon Trulson a5da0c39db Apply a patch from Roger Brown for risc-v and other minor fixes
Summary:

cde/config/cf/DtInfo.tmpl - add RISCVArchitecture as little endian
cde/config/cf/Imake.cf    - add AArch64Architecture for NetBSD
cde/config/cf/Imake.cf    - add RISCVArchitecture for Linux
cde/config/cf/linux.cf    - add RISCVArchitecture bit order
cde/lib/DtHelp/Imakefile  - add -ljpeg for OpenBSD
2021-05-30 16:24:51 -06:00
Liang Chang 8f52a65638 DtTerm: Add libutempter support for utmp/wtmp updates. 2021-05-30 14:59:06 -06:00
Liang Chang 3c4e5b3124 DtTerm: Add pts driver support. 2021-05-30 14:59:06 -06:00
Jon Trulson 616dd16c70 Bump devel version to 2.3.2c 2021-05-30 14:54:23 -06:00
Liang Chang 32a2fd8cc9 DtPamSvc: Improve user experience. 2021-05-22 12:17:19 -06:00
Liang Chang d4f8a37852 DtPamSvc: use utmpx. 2021-05-22 12:17:19 -06:00