David Cantrell sent this to Peter and I, regarding getting CDE running
on RHEL 6.3, said it was ok to forward to list.

-- 
Jon Trulson

"If the Martian rope-a-dope don't get him, he'll get himself, he'll
  come in too fast and punch himself out."
              - one of my brothers, referring to the Curiosity landing.

---------- Forwarded message ----------
From: David Cantrell <david.l.cantr...@gmail.com>
Date: Tue, 14 Aug 2012 20:16:55 -0400
Subject: CDE from git master working on RHEL 6.3 x86_64
To: j...@radscan.com, peter.howk...@marutan.net
X-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50=0.8,
     FREEMAIL_FROM=0.001,SPF_PASS=-0.001,T_DKIM_INVALID=0.01 autolearn=no
     version=3.3.2

Just an email to let you know that I am currently running CDE built on my
RHEL 6.3 x86_64 system.  I built from git master that I cloned today (HEAD
is currently at commit 441a25b36173068e8d3466268b73c1d454224294).

Following your instructions at:
http://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/

Was helpful.  Here are my own notes:

1) When doing a build, I am doing "make World.dev 2>&1 | tee world.log"
because if I try to do a regular World build, the docs do not build properly
and cause the build to fail.  Not sure what I'm missing here.

2) A Red Hat or Fedora user would be able to figure out most packages that
need to be installed to build CDE.  I will get a complete list once I can do
a full build in our build system, but two that caught me immediate were:

     yum install imake
     yum install xorg-x11-xbitmaps

The former gives you the xmkmf and imake commands (no surprise).  The latter
gives you /usr/include/X11/bitmaps/root_weave, which is needed to build the
DtHelp library.

2a) RHEL ships with OpenMotif, which works fine to build CDE.  Fedora users
need to get the source and install it themselves (or get the SRPM from RHEL
and build and install it locally).

3) Building on a 64-bit system causes some problems when linking.  The build
does actually run to completion, it just ends up missing many things.  Most
notably dtwm, which gave me the "hung up at dthello" symptom that I see
people reporting.  The issue is that the Imakefiles end up trying to look in
/usr/lib for libraries, which is wrong on these systems.  To get around
this, I created edited config/cf/host.def and added:

     #define UsrLibDir /usr/lib64

That caused everything to build and link correctly.

4) To run rpcbind in insecure mode on RHEL, you can create a file called
/etc/sysconfig/rpcbind and add this line:

     RPCBIND_ARGS="-i"

5) I did everything with SELinux disabled, I advise disabling SELinux if you
want to use CDE.

6) Likewise, I had to disable iptables and ip6tables to get the session to
launch the background daemons (like the messaging daemon).  I would like to
figure out what iptables rules to add that allow it to work rather than
using the big hammer of disabling it entirely.  Still, it was enough to work
around the problem for now.

Lastly, I created a gdm session file for CDE following these instructions:
http://sourceforge.net/p/cdesktopenv/wiki/Createxses

It integrates nicely with the stock RHEL install.

Current things I've made a note of:
* The calendar application fails because it's trying to use rpc.cmsd or
   something like that.
* I'd like to get dtksh building, perhaps even with current upstream ksh93
   source.
* I'd like to figure out what I need installed to build docs.
* I'd like to test dtlogin and see if I can replace gdm with it.
* Clean up compiler warnings as I get bored and come across them.

I work for Red Hat in engineering.  My ultimate goal is to create an RPM of
CDE.  Not in a rush though, just wanted to pass along my findings to you.
It's fun seeing CDE open sourced.  I remember it fondly from so long ago.  I
used it for many many years at previous jobs.

-- 
David Cantrell <david.l.cantr...@gmail.com>
WH6DSN | http://blog.burdell.org/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to