Package Details: cdesktopenv-git 2.5.3.131.g9286d9281-1

Git Clone URL: https://aur.archlinux.org/cdesktopenv-git.git (read-only, click to copy)
Package Base: cdesktopenv-git
Description: Common Desktop Environment
Upstream URL: http://sourceforge.net/projects/cdesktopenv/
Keywords: cde desktop
Licenses: LGPL2
Conflicts: cdesktopenv
Submitter: yjftsjthsd
Maintainer: rubin55
Last Packager: rubin55
Votes: 2
Popularity: 0.000000
First Submitted: 2019-11-18 21:29 (UTC)
Last Updated: 2026-08-22 21:13 (UTC)

Latest Comments

1 2 Next › Last »

ekollof commented on 2026-08-04 07:06 (UTC) (edited on 2026-08-05 09:22 (UTC) by ekollof)

The OpenMotif issue is fixed upstream. There is still an issue with the PKGBUILD though:

rm: cannot remove '/home/ekollof/.cache/paru/clone/cdesktopenv-git/pkg/cdesktopenv-git/usr/share/terminfo/d/dtterm': No such file or directory

patch:

diff --git a/PKGBUILD b/PKGBUILD
index 93b9f51..8a957db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -102,6 +102,4 @@ package() {
     cd "$srcdir/code/cde"
     make install DESTDIR="$pkgdir"

-    # dtterm terminfo is provided by ncurses
-    rm "$pkgdir/usr/share/terminfo/d/dtterm"
 }

ekollof commented on 2026-08-03 07:49 (UTC) (edited on 2026-08-03 08:10 (UTC) by ekollof)

Patch to get this to build again (apparently there is some compat drift with openmotif)

diff --git a/PKGBUILD b/PKGBUILD
index 93b9f51..9e70588 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,8 +7,8 @@

 _gitname=cdesktopenv
 pkgname="${_gitname}"-git
-pkgver=2.5.3.82.gf911fd095
-pkgrel=2
+pkgver=2.5.3.103.gaf5cc0eeb
+pkgrel=1
 pkgdesc="Common Desktop Environment"
 url="http://sourceforge.net/projects/cdesktopenv/"
 arch=('x86_64')
@@ -51,7 +51,8 @@ source=('git+https://git.code.sf.net/p/cdesktopenv/code'
     'fonts.alias'
     'fonts.dir'
     'startcdesession.sh'
-    'cde.desktop')
+    'cde.desktop'
+    'openmotif-compat.patch')

 sha256sums=('SKIP'
             'c7b9114eba1a89991a4abeb0b87cd7420f7301c341e29593901125214ea86e4d'
@@ -59,15 +60,21 @@ sha256sums=('SKIP'
             '5de87d008bc6a8b7d6c2dc0637a127fb1ceea819fdc28a5d466973d302337e90'
             '9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa'
             '8a7ba3b3856d4ef05c5703abd8e779df577c6b91931d3d0cc5f04d15dc665d57'
-            '1db4036888515de17a4b49d7f5ca3d34a5d601cc8696f603b390e98283197125')
+            '1db4036888515de17a4b49d7f5ca3d34a5d601cc8696f603b390e98283197125'
+            '1ad8a34ad5e8c389eb615ea63bdbdb3d76cf2819c1f6a5d1bb063661423edaa7')

 pkgver() {
     cd "$srcdir/code/cde"
     git describe --long --tags | sed 's/-/./g'
 }

+prepare() {
+    cd "$srcdir/code"
+    # Recent upstream casts use Motif typedefs that OpenMotif 2.3.x lacks.
+    patch -Np1 -i "$srcdir/openmotif-compat.patch"
+}
+
 build() {
-    export TIC="/usr/bin/tic -o${pkgdir}/usr/share/terminfo"
     cd "$srcdir/code/cde"
     ./autogen.sh
     ./configure --with-gnu-ld --prefix="/usr/dt"
@@ -101,7 +108,4 @@ package() {
     export LC_ALL=C 
     cd "$srcdir/code/cde"
     make install DESTDIR="$pkgdir"
-
-    # dtterm terminfo is provided by ncurses
-    rm "$pkgdir/usr/share/terminfo/d/dtterm"
 }
diff --git a/openmotif-compat.patch b/openmotif-compat.patch
new file mode 100644
index 0000000..170e95e
--- /dev/null
+++ b/openmotif-compat.patch
@@ -0,0 +1,36 @@
+diff --git a/cde/lib/DtMrm/DtMrm.c b/cde/lib/DtMrm/DtMrm.c
+index ba913eda0..0a0caed42 100644
+--- a/cde/lib/DtMrm/DtMrm.c
++++ b/cde/lib/DtMrm/DtMrm.c
+@@ -89,6 +89,12 @@ static char rcsid[] = "$TOG: DtMrm.c /main/4 1999/10/14 13:35:44 mgreess $"
+ #include <Xm/Xm.h>
+ #include <Mrm/MrmPublic.h>
+ 
++/* OpenMotif 2.3.x does not define MrmWidgetCreateProc; MrmRegisterClass()
++ * takes Widget (*creator)(). Provide a compatible typedef when missing. */
++#ifndef MrmWidgetCreateProc
++typedef Widget (*MrmWidgetCreateProc)();
++#endif
++
+ #include <Dt/Editor.h>
+ #include <Dt/EditorP.h>
+ #include <Dt/Help.h>
+diff --git a/cde/programs/dtappbuilder/src/libABil/abuil_load.c b/cde/programs/dtappbuilder/src/libABil/abuil_load.c
+index 1d6c728b5..3f272aa6d 100644
+--- a/cde/programs/dtappbuilder/src/libABil/abuil_load.c
++++ b/cde/programs/dtappbuilder/src/libABil/abuil_load.c
+@@ -64,6 +64,14 @@ extern XtPointer _XmStringUngenerate (XmString string,
+                         XmTextType tag_type,
+                         XmTextType output_type);
+ 
++/* OpenMotif 2.3.x does not define these; Uil() takes Uil_continue_type (*)(). */
++#ifndef uil_message_cb_t
++typedef Uil_continue_type (*uil_message_cb_t)();
++#endif
++#ifndef uil_status_cb_t
++typedef Uil_continue_type (*uil_status_cb_t)();
++#endif
++
+ 
+ /*
+  * Private function declarations

topcat01aur commented on 2025-09-14 19:58 (UTC) (edited on 2025-09-14 20:01 (UTC) by topcat01aur)

I can build and run this with the following changes:

PKGBUILD diff:

diff --git a/PKGBUILD b/PKGBUILD
index b1d404c..2b38c19 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@

 _gitname=cdesktopenv
 pkgname="$_gitname"-git
-pkgver=2.5.2.1.g76812a911
-pkgrel=2
+pkgver=2.5.2.24.g9f0f015c4
+pkgrel=1
 pkgdesc="Common Desktop Environment"
 url="http://sourceforge.net/projects/cdesktopenv/"
 arch=('i686' 'x86_64') # Some parts of CDE are not stable on x86_64 yet.
@@ -28,7 +28,7 @@ source=("git+https://git.code.sf.net/p/cdesktopenv/code"
        'fonts.dir'
        'startcdesession.sh'
        'cde.desktop'
-       'mksh.patch')
+       'xec.patch')

 sha512sums=('SKIP'
            '25148b543e787394e1842c7c697ae684af0ac0bd5c0f50e53d456c1cf62a345346cd4a37e2c356f245f6c12acceedaba2f1ba463fd94b882619ee67d67af5cc5'
@@ -37,7 +37,7 @@ sha512sums=('SKIP'
            'a546d1300f49037a465ecec8bc1ebd07d57015a5ff1abfa1c94da9b30576933fb68e3898ff764d4de6e6741da822a7c93adc6e845806a266a63aa14c8bb09ebb'
            'fdeea1adaf0de5da63e3cc8760893451e7ad1b2bb5c383f70208e3ac62e8fbce3092d6036e70ac46d4ccfb0a4884029cbf0088e58e56004bc9aeb7aa53983548'
            '02f01ecf1ba32d9a5fe75d10de1948c4f087725f1e38be55992ef21dd8f22680763cd3a073f97efeea0324db729d41692223ebc0cec620b00fc69685d2cc34e2'
-           '4821925f902481bf59cda0f7a51b35c834c80f676e37608030e7cd64b1e18269cd7cbe1f37cffedd0f1205a6621f51c1b22293c959cffa3602bfdcdba82fd8f4')
+           '9aa502d68f20cd89633244a28a9692a952e504bcc1ed56a48894326fa61b247fe9a65d2c0550f87e7078d8082b748588604ebc8c45132e25e02f75e1b1f21a13')

 pkgver() {
    cd "$srcdir/code/cde"
@@ -45,8 +45,8 @@ pkgver() {
 }

 prepare() {
-   # Sets autoconf to accept mksh, which is much easier to build then the original ksh93
-   patch -p1 -i mksh.patch
+   # Fixes a conflict with C99 nullptr keyword.
+   patch -p1 -i xec.patch
 }

 build() {
@@ -54,7 +54,7 @@ build() {
    ./autogen.sh
    export TIC="/usr/bin/tic -o${pkgdir}/usr/share/terminfo"
    ./configure --with-gnu-ld --prefix=/usr/dt
-   make LDFLAGS=-lm
+   make CFLAGS="-std=c99 -I /usr/include/tirpc" LDFLAGS=-lm

 }

xec.patch

--- a/code/cde/programs/dtksh/ksh93/src/cmd/ksh93/sh/xec.c
+++ b/code/cde/programs/dtksh/ksh93/src/cmd/ksh93/sh/xec.c
@@ -1963,7 +1963,7 @@ int sh_exec(register const Shnode_t *t, int flags)
            int flag = errorflg|OPTIMIZE_FLAG;
            struct dolnod   *argsav=0;
            struct comnod   *tp;
-           char *cp, *trap, *nullptr = 0;
+           char *cp, *trap, *nullptr_t = 0;
            int nameref, refresh=1;
            char *av[5];
 #if SHOPT_OPTIMIZE
@@ -2008,7 +2008,7 @@ int sh_exec(register const Shnode_t *t, int flags)
                    save_prompt = sh.nextprompt;
                    sh.nextprompt = 3;
                    sh.timeout = 0;
-                   sh.exitval=sh_readline(&nullptr,0,1,(size_t)0,1000*sh.st.tmout);
+                   sh.exitval=sh_readline(&nullptr_t,0,1,(size_t)0,1000*sh.st.tmout);
                    sh.nextprompt = save_prompt;
                    if(sh.exitval||sfeof(sfstdin)||sferror(sfstdin))
                    {

It's running on the latest Arch now.

autinerd commented on 2023-12-09 07:26 (UTC)

Thanks, is fixed!

b.r commented on 2023-12-08 21:19 (UTC)

Hi, could I please ask about adding opensp as a dependency? I see it was mentioned in the past, and on a fresh Arch Linux container it appears to still be required. I got a build error suggesting I install ONSGMLS.

autinerd commented on 2022-08-26 16:05 (UTC)

Is fixed :)

haawda commented on 2022-08-25 18:38 (UTC) (edited on 2022-08-25 18:38 (UTC) by haawda)

One of the patche soes no longer apply.

patching file code/cde/configure.ac
Hunk #1 succeeded at 341 (offset -14 lines).
patching file code/cde/programs/fontaliases/Makefile.am
Hunk #1 FAILED at 33. 1 out of 1 hunk FAILED -- saving rejects to file code/cde/programs/fontaliases/Makefile.am.rej

autinerd commented on 2022-06-17 06:11 (UTC)

Hello, I changed the dependencies to use mksh instead of the original ksh (the build is not a big mess, and it's compatible).

@bbaovanc: Yes, I can rename the sh script.

bbaovanc commented on 2022-06-17 00:09 (UTC)

Update: it works for me now on the latest commit. Another thing I noticed: can /usr/bin/startxsession.sh be renamed to something less general, like maybe startcdesession?

bbaovanc commented on 2022-06-05 00:50 (UTC) (edited on 2022-06-05 00:50 (UTC) by bbaovanc)

I had to install opensp just like strangeautomaton said (it should be a git dependency probably). But then I got another error near the end:

collect2: error: ld returned 1 exit status
mamake [cmd/ksh93]: *** exit code 1 making ksh
mamake: *** exit code 1 making cmd/ksh93
mamake: *** exit code 1 making all
package: make done  at Sat Jun  4 19:42:08 CDT 2022 in /home/bbaovanc/.cache/yay/cdesktopenv-git/src/code/cde/programs/dtksh/ksh93/arch/linux.i386-64
make[2]: *** [Makefile:1136: init.c] Error 1
make[2]: Leaving directory '/home/bbaovanc/.cache/yay/cdesktopenv-git/src/code/cde/programs/dtksh'
make[1]: *** [Makefile:445: all-recursive] Error 1
make[1]: Leaving directory '/home/bbaovanc/.cache/yay/cdesktopenv-git/src/code/cde/programs'
make: *** [Makefile:584: all-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: cdesktopenv-git

Has anyone else seen this? What should I do?