Well, finaly I seem to have made some advance. One of the problems was enabling visibility, as blino wrote on his blog. To do that, I changed debian/rules. I made other changes before to make it load the patches in debian/patches, and it now needs quilt, but the relevant line is the CFLAGS:
Code:
#!/usr/bin/make -f
QUILT_STAMPFN = quilt-stamp
include /usr/share/quilt/quilt.make
#Not needed, as libdrm-poulsbo1 redirects the relevant files from /usr/include to /usr/include/psb, and installs directly in /usr/lib
#export DRI_CFLAGS="-I/usr/include/psb -I/usr/include/psb/drm -I/usr/include/X11/dri"
#LDFLAGS:=-L/usr/share/psb/lib -ldrm
# change visibility back to default so that psb can find mmCreateDRM in libmm
CFLAGS+=-fvisibility=default
build: build-stamp
build-stamp: patch
dh build
touch build-stamp
clean: unpatch
dh $@
install: build install-stamp
install-stamp:
dh install
grep PCI_CHIP src/psb_driver.h | sed -e 's/^.*0x/8086/g' > $(CURDIR)/debian/xserver-xorg-video-psb/usr/share/xserver-xorg/pci/psb.ids
touch install-stamp
binary-arch: install
dh $@
binary-indep: install
dh $@
binary: binary-arch binary-indep
Now, it won't hang my system, but fails loading dri. The relevant lines from Xorg.0.log are here. Blino mentions that in recent mesa versions, _glapi_set_warning_func() was removed upstream, so it might need a new workaround. I wonder if that is it?
Bookmarks