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

2499 commits

Author SHA1 Message Date
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
Liang Chang
65e7a65d8b Add lib DtPamSvc. 2021-05-22 12:09:43 -06:00
Liang Chang
29d6a29708 dtinfo: Fix a segmentation fault.
The return value from CanvasRenderer::_dofont is a pointer. It will be passed
to the free function. Ensure that pointer always points to a dynamically
allocated memory to avoid segmentation faults.
2021-05-04 03:00:57 +08:00
b'Jon Trulson
f294ef4a5c Merge /u/l-chang/cdesktopenv1/ branch master into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/27/
2021-04-18 19:02:18 +00:00
b'Jon Trulson
8092b720f0 Merge /u/l-chang/cdesktopenv1/ branch master into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/26/
2021-04-17 00:21:59 +00:00
Liang Chang
fbe2b20bc6 dtterm: Change the default log host to localhost.
To check the log function, add -DLOG_USAGE to the Imakefile then build the
dtterm. There are a logger in the util directory, run it to receive log
messages.
2021-04-17 01:55:43 +08:00
Liang Chang
5afe94ea3e dtappbuilder: Fix unsigned integer rollover. 2021-04-05 07:30:49 +08:00
Liang Chang
7287f262ad dtappbuilder: Fix a crash when resize a text pane. The crash is occurred when
drag on the scrollbar to resize.
2021-04-05 07:30:49 +08:00
Liang Chang
2851d666eb dtappbuilder: set the minimum limit for rows and columns to avoid rollover. 2021-04-05 07:29:50 +08:00
Edmond Orignac
c3fa950f8f misc.c: in cm_mbchar check string!=NULL before dereferencing it 2021-04-03 18:14:41 -06:00
Chase
2642674ed4 dtcm: make /var/spool/calendar for user 2021-03-14 15:09:03 -06:00
Jon Trulson
512269a330 dtprintinfo: try to mitigate some stupid in ParseJob.C for sun
Marco Ivaldi pointed me to some unsafe code in ParseJob.c.  I do not
have a sun machine (well, not currently operational anyway), so the
code is not tested.  But seriously, this is some horrible code.  This
local parser for sun needs to be rewritten!
2021-03-14 14:51:54 -06:00
Liang Chang
f70877daa2 dtappbuilder: set the default size (in pixels) for terminal pane. 2021-03-03 09:33:23 +08:00