From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ig0-x231.google.com ([2607:f8b0:4001:c05::231]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WmMX1-0006YJ-6s for ptxdist@pengutronix.de; Mon, 19 May 2014 14:19:03 +0200 Received: by mail-ig0-f177.google.com with SMTP id l13so3414572iga.10 for ; Mon, 19 May 2014 05:19:03 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 19 May 2014 14:19:02 +0200 Message-ID: From: Roger Karis Subject: [ptxdist] Mesa DRI drivers path Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hello, while building an i568-based linux distribution with PTXdist 2014.4 we discovered a deployment problem involving mesalib and xorg-server. The xorg-server package uses pkg-config during the prepare phase to determine the absolute path where DRI drivers are installed. The path is stored in the variable 'dridriverdir' in dri.pc. In previous versions of mesalib (e.g. 8.0.3), this path variable was fully expanded at package preparation time (for example to /usr/lib/dri). In the current packaged version (10.1.0), this path is not fully expanded but remains relative to the install prefix (which is set to /usr at prepare). At install time the prefix is replaced by ${pcfiledir}/../.. which makes the dridriverdir relative to the sysroot-target folder. When starting the xorg-server on the target, this means that the drivers will be loaded from an absolute path using .../platform-foo/sysroot-target/.... Because the drivers are located at /usr/lib/dri, this fails with a AIGLX dlopen() error. The workaround we currently employ is to explicitly specify the driver directory (--with-dri-driverdir) during mesalib preparation, but of course it would be much better if there was a proper solution to this problem. Thanks, Roger -- ptxdist mailing list ptxdist@pengutronix.de