Building drivers when Xserver installed in $RPM_BUILD_ROOT

Stefan Dirsch sndirsch at suse.de
Mon Aug 1 18:55:29 EST 2005


On Sun, Jul 31, 2005 at 09:41:33PM -0700, Donnie Berkholz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stefan Dirsch wrote:
> | Currently I'm using the following patch to build the drivers, because
> | the Xserver is installed in $RPM_BUILD_ROOT and otherwise the include
> | files won't be found. XORG_INCS + XORG_CFLAGS + DRI_CFLAGS needs to be
> | set for this, e.g.
> |
> |   export XORG_CFLAGS="$(pkg-config --cflags xorg-server)
> - -I$RPM_BUILD_ROOT/usr/include -I$RPM_BUILD_ROOT/usr/include/xorg"
> |   export DRI_CFLAGS="$(pkg-config --cflags xf86driproto)
> - -I$RPM_BUILD_ROOT/usr/include/ -I$RPM_BUILD_ROOT/usr/include/X11/dri
> - -I$RPM_BUILD_ROOT/usr/include/xorg"
> |   export XORG_INCS="-I$RPM_BUILD_ROOT/usr/include/
> - -I$RPM_BUILD_ROOT/usr/include/xorg"
> |
> | Any ideas how to do it without this huge patch or with an improved
> | version of this patch? BTW, hunks for xf86-video-sun*/xf86-video-tga
> | are missing since I don't build them (on Linux).
> 
> Is there some reason you need to do this? Why not just install the
> server before building the drivers? That's what I'm doing.

I'm building and installing the xserver and drivers in the same run,
both into $RPM_BUILD_ROOT/usr/..., i.e. ususally something like
/var/tmp/xorg-modular-<version>-build/usr/...

This way it's possible to build it as a regular user and it doesn't
touch the currently installed system, on which the build is done
(clean build system).

Best regards,
Stefan

Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.)   SUSE LINUX Products GmbH
Tel: 0911-740 53 0            Maxfeldstraße 5
FAX: 0911-740 53 479          D-90409 Nürnberg
http://www.suse.de            Germany 
------------------------------------------------------


More information about the xorg-modular mailing list