I've now sorted out my problem with xorg-server not working.  For
the moment, I'm flagging this as specific to 32-bit, although the
OpenSuSe bug
http://lists.opensuse.org/opensuse-bugs/2015-02/msg01553.html
implies this might also apply to 64-bit xorg-in-qemu.

I guess that I'm going to be testing this on real hardware i686,
eventually, and I suppose that I'll have to build a desktop x86_64
image too.  Meanwhile, in the spirit of using seds instead of
patches, I'm using the following on xorg-server-1.17.1 for i686 :

sed -i '/\*\//a\
#define _FILE_OFFSET_BITS 64' hw/xfree86/drivers/modesetting/dumb_bo.c

That effectively (barring whitespace and alignment) replicates
http://lists.x.org/archives/xorg-devel/2015-February/045623.html
( [PATCH 1/4] modesetting: Fix 32bit breakage )
from Takashi Iwai.  His submission talks about cirrus KMS, but I
actually hit this using -vga=std in qemu (with whichever KMS that
pulls in, I think - Bochs, probably).

Meanwhile, this is initially just a note that not everything is
perfect.  Anyone who follows the Xorg thread will see that a better
alternative (but with the possibility of regressions somewhere) was
suggested.  But AFAICS there have been _no_ commits since 1.17.1.

If this turns out to be needed in general (for qemu), or only needed
on i686, I think there are two alternatives:

1. add the sed to the book
2. create a patch for people running xorg in qemu, instead of adding
it to the book.

Opinions, please ?

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to