1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00
Commit graph

2161 commits

Author SHA1 Message Date
Liang Chang
fc118ea6f8 dtfile: fix a segmentation fault that occurred when drag and drop file with the
same name.
2021-06-02 19:56:27 -06:00
Liang Chang
e7402803df dtcm: fix a segfault that occurred when opening the "Appointment List..." in
the "View" menu.
2021-06-02 19:56:26 -06:00
Liang Chang
4190143c91 dtcm: fix a segfault when "Drag Appt" in the dtcm_editor. 2021-06-02 19:56:26 -06:00
Liang Chang
d428d68edb csa: replace sprintf with asprintf to avoid segfaults. 2021-06-02 19:56:26 -06:00
Liang Chang
9e4ad4b2f4 dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Menu Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang
49185f2624 dtappbuilder: fix a segmentation fault that occurred when repeating "Add Item"
-> "Delete" -> "Add Item" in the "Revolving Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang
920465cb5b dtappbuilder: fix a segmentation fault that occurred when clicking "Edit" in
the "Revolving Property Editor".
2021-06-02 19:56:26 -06:00
Liang Chang
4389fdd633 dtappbuilder: apply graceful degradation for font loading to avoid a
segmentation fault.
2021-06-02 19:56:26 -06:00
Liang Chang
1b1078ba7d ttsnoop: fix a segfault that occurred when clicking "Version..." in the "Snoop"
menu.
2021-06-02 19:56:26 -06:00
Lev Kujawski
39a72ca69b Specify SPARC and SPARC64 as big endian platforms
config/cf/DtInfo.tmpl: Modify ByteOrderDefines define
2021-06-02 19:56:26 -06:00
Lev Kujawski
a4d9902a48 Switch default backdrop from SkyLight to KnitLight
programs/dtwm/Dtwm.defs.src: Update default Dtwm backdrop
localized/*/app-defaults/Dtwm.tmsg: Update translations to reflect change

For CDE users with sufficiently high resolution screens, the abrupt
transition towards the end of the default SkyLight backdrop image bore
a close enough resemblance to graphical corruption to spur bug
reports. This problem likely did not manifest to the original CDE
developers using the typical monitors of the 1990s.

This patch changes the default backdrop to KnitLight, which comports
well with CDE's low distraction UI while still offering something
visually interesting enough to showcase CDE's support for bitmap
backdrops. Because of the repeating pattern within KnitLight, this
problem will not occur in the future. Additionally, SkyLight will be
retained as a CDE backdrop.
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
Jon Trulson
14eb374e0a .gitignore: Add some MsgCat.c generated files 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
Lev Kujawski
3379999106 dtinfo: rename the CATGETS macro to MCATGETS 2021-06-02 19:51:24 -06:00
Lev Kujawski
fc1d29be81 config/cf/Imake.cf: Define AArch64Architecture on the BSDs. 2021-06-02 19:51:24 -06:00
Jon Trulson
7b79d810eb dthelp/parser: disable parallel building 2021-06-01 18:23:46 -06:00
Jon Trulson
9f5021a81f pm_randon.h: fix conversion warning (int to float) 2021-06-01 18:23:46 -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
487305f7cf dtappbuilder: fixes to build in autotools branch for freebsd 2021-06-01 18:23:37 -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
Jon Trulson
072d289a5e .gitignore: update for PAM changes 2021-05-30 16:16:44 -06:00
Jon Trulson
b70be7b188 debin/control: add libpam and libutempter 2021-05-30 15:54:11 -06:00
Liang Chang
51a15d0b38 linux.cf: Enable PTS driver and libutempter. 2021-05-30 14:59:06 -06:00
Liang Chang
fad5b988c1 FreeBSD.cf: Enable PTS driver and libutempter. 2021-05-30 14:59:06 -06:00
Liang Chang
2887eed470 databases: Install dtterm as an unprivileged program when PTS driver and
libutempter are available.
2021-05-30 14:59:06 -06:00
Liang Chang
2536c2c1ba dtterm: Add libutempter support for utmp/wtmp updates. 2021-05-30 14:59:06 -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
b'Jon Trulson
a52b78566e Merge /u/l-chang/cdesktopenv1/ branch master into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/28/
2021-05-22 21:41:32 +00:00
Jon Trulson
0ffd6762d7 FreeBSD.cf,DragonFly.cf: disable PAM support by default
These system can support PAM, but it requires a port of the NetBSD
module to do so.  As a result, this support is disabled by default.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253073 for a
patch to add this support to the OS.  Then you can set HasPamLibrary
to YES in the respective .cf files, rebuild CDE, and try it out.
2021-05-22 12:50:25 -06:00
Jon Trulson
2634630dd6 NetBSD.cf: add a link comment to list package needed for PAM support 2021-05-22 12:49:36 -06:00
Liang Chang
4d67fc9302 dtlogin: revise the Imakefile for config. 2021-05-22 12:17:19 -06:00
Liang Chang
32a2fd8cc9 DtPamSvc: Improve user experience. 2021-05-22 12:17:19 -06:00
Liang Chang
468aa1642d dtsession: revise localAuthenticate. 2021-05-22 12:17:19 -06:00
Liang Chang
051e5a3cc2 dtlogin: add utmpx support to UtmpIdOpen. 2021-05-22 12:17:19 -06:00
Liang Chang
00ab939165 databases: use "src" files to generate CDE-MIN.udb and CDE-RUN.udb. 2021-05-22 12:17:19 -06:00
Liang Chang
63520552c1 dtsession: add rules for config dir into Imakefile. 2021-05-22 12:17:19 -06:00
Liang Chang
d4f8a37852 DtPamSvc: use utmpx. 2021-05-22 12:17:19 -06:00
Liang Chang
1d287720ad dtlogin: use utmpx when PAM is enabled. 2021-05-22 12:17:19 -06:00
Liang Chang
4f2d356d31 Enable PAM support for dtlogin and dtsession. 2021-05-22 12:17:19 -06:00
Liang Chang
b0037af61a dtsession: rename PAM config file. 2021-05-22 12:17:19 -06:00
Liang Chang
59a3d8221c dtlogin: rename PAM config file. 2021-05-22 12:17:19 -06:00
Liang Chang
704b156257 DtPamSvc: update Imakefile. 2021-05-22 12:17:19 -06:00
Liang Chang
f13fdec2fb Add PAM support to dtsession. 2021-05-22 12:17:19 -06:00
Liang Chang
085c8bdc37 dtlogin: get rid of some warnings. 2021-05-22 12:17:19 -06:00
Liang Chang
fa2f6a39cc Add PAM support to dtlogin. 2021-05-22 12:11:09 -06:00