[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#240027: kdm: KDM does not start correctly on boot



Dominique Devriese wrote:
Chris Cheney writes:

I wonder how DEV_RANDOM is getting set to /dev/random, the Imakefile
doesn't mention /dev/random at all. A grep of kdebase for
/dev/random turns up nothing for me, but it must be getting set
somehow. :<


Yes, well, what I've noticed yesterday, is that the configure runs
"xmkmf" on the Imakefile, which generates a Makefile, which contains
the DEV_RANDOM define in question.  So it is xmkmf which is told by
the Imakefile to put the define there.  I have no idea how this is
supposed to work though, so we're going to have to dig up the imake
manual, I guess :)


Imakefile defines RANDOM_DEFINES to be '-DDEV_RANDOM="/dev/urandom"' only if RandomDefines is not set.

xmkmf is called with -I/usr/X11R6/lib/X11/config. Therefore, among others, the file /usr/X11R6/lib/X11/config/X11.tmpl is parsed and unfortunately defines RandomDefines to be '-DDEV_RANDOM="/dev/random" -DPOLL_DEV_RANDOM'

Calling xmkmf with -DRandomDeviceFile=/dev/urandom fixes the problem. Another way could be to put the line
#define RandomDeviceFile "/dev/urandom"
in one of the various config files used by imake, like site.def

But actually, I don't know precisely how to include this in all that autoconf stuff

Xavier




Reply to: