[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xfree-xpert
Subject:    [Xpert]Kdrive: host.def examples and suid issue?
From:       Marco Fioretti <m.fioretti () inwind ! it>
Date:       2002-11-18 18:53:10
[Download RAW message or body]

Hello,

at the RULE project (www.rule-project.org/en/) we are trying to
package kdrive for Red Hat 8.0, to make it possible to use modern
software/features on computer with older CPU and little RAM. More
exactly, Michael Fratoni (our chief hacker) is trying to do it, and I
am working on other parts of the project. Anyway, since I had already
subscribed here, Michael asked to me to forward here the two following
questions, and also added his kdrive build report for who is
interested. Any feedback/examples/help is appreciated!

	TIA,
		Marco Fioretti
		RULE project leader

######################################################################
QUESTION 1: One thing that is missing in almost all of the info I
found a copy of the config file that people used to build kdrive. I'm
not subscribed to that list, perhaps you could ask those that have
built kdrive to post their host.def config files and pass any replies
along? It is non trivial to get the options needed right.

#########################################################################
QUESTION 2: KDRIVE RUNNING AS ROOT?
Yes, X is running as root. The kdrive servers must be suid root to
work,
which is _not_ a good thing. I suspect it may be possible to use the
old
wrapper that X used for this purpose, but I haven't investigated it
yet.

#######################################################################
BUILD REPORT:
Here are the steps I used to build kdrive.
I installed the XFree86.src.rpm from the Red Hat 8.0 release to avoid
downloading the source. Then I unziped and extracted the tar archive.
cd [path/to/archive/]xc/config/cf/
created a 'host.def' file containing:
#define KDriveXServer YES
#define TinyXServer YES
#define XvesaServer YES
#define ProjectRoot /usr/X11R6
#define BuildLBX YES
#define BuildDBE YES
#define KdriveServerExtraDefines -DPIXPRIV
#define BuildRandR                 YES
#define BuildXInputLib             YES
#define Freetype2Dir               $(TOP)/extras/freetype2
#define Freetype2LibDir            $(TOP)/exports/lib
#define BuildXTrueType             YES
#define BuildScreenSaverExt        YES
#define BuildScreenSaverLibrary    YES
#define SharedLibXss               YES
#define ServerXdmcpDefines
#define XfbdevServer               YES

cd ../../
make World
cp programs/Xserver/Xfbdev [to the target system]/usr/X11r6/bin/

As already mentioned, the target system already had the full stock
glibc
and XFree86 packages installed.

The defines above could probably use some work, but did allow me to
build
the servers. I came up with them from the suggestions on several
different sites.
The only thing I've used so far is the server binaries. I plan to
build it
all again, linking against uClibc, then I'll make an rpm package for
both
Xfree86 and uClibc, and test it on a slinky install.


_______________________________________________
Xpert mailing list
Xpert@XFree86.Org
http://XFree86.Org/mailman/listinfo/xpert
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic