mesa-common-dev should depend on libdrm-dev

Bug #490811 reported by Ilkka Laukkanen
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

In a fresh Karmic installation it is possible to get to the point where one has no broken packages but pkg-config fails with the message "Package libdrm was not found in the pkg-config search path...".

This is due to /usr/lib/pkgconfig/dri.pc, installed by mesa-common-dev, having the line

Requires.private: libdrm >= 2.4.3

but mesa-common-dev does not depend on libdrm-dev, which is the package that installs /usr/lib/pkgconfig/libdrm.pc. Thus mesa-common-dev needs to depend on libdrm.dev.

Ubuntu release: 9.10
mesa-common-dev version: 7.6.0-1ubuntu4
libdrm-dev version: 2.4.14-1ubuntu1

ProblemType: Bug
Architecture: i386
Date: Tue Dec 1 15:13:53 2009
DistroRelease: Ubuntu 9.10
MachineType: Dell Inc. OptiPlex 755
NonfreeKernelModules: fglrx
Package: mesa-common-dev 7.6.0-1ubuntu4
ProcCmdLine: root=/dev/mapper/pcft--uic3-root ro quiet splash
ProcEnviron:
 LANGUAGE=
 PATH=(custom, user)
 LANG=fi_FI.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
RelatedPackageVersions:
 xserver-xorg 1:7.4+3ubuntu7
 libgl1-mesa-glx 7.6.0-1ubuntu4
 libdrm2 2.4.14-1ubuntu1
 xserver-xorg-video-intel 2:2.9.0-1ubuntu2
 xserver-xorg-video-ati 1:6.12.99+git20090929.7968e1fb-0ubuntu1
SourcePackage: mesa
Uname: Linux 2.6.31-15-generic i686
dmi.bios.date: 11/05/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A04
dmi.board.name: 0GM819
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA04:bd11/05/2007:svnDellInc.:pnOptiPlex755:pvr:rvnDellInc.:rn0GM819:rvr:cvnDellInc.:ct6:cvr:
dmi.product.name: OptiPlex 755
dmi.sys.vendor: Dell Inc.
system:
 distro: Ubuntu
 architecture: i686kernel: 2.6.31-15-generic

Related branches

Revision history for this message
Ilkka Laukkanen (ilkka) wrote :
Revision history for this message
Ilkka Laukkanen (ilkka) wrote :

Patch attached, at the top of that enormous list of junk ubuntu-bug put there.

Bryce Harrington (bryce)
Changed in mesa (Ubuntu):
status: New → Confirmed
Timo Aaltonen (tjaalton)
Changed in mesa (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Robert Hooker (sarvatt) wrote :

For future reference, the only user of dri.pc is xorg-server which does already require libdrm-dev as a build dep. The only time this could be an issue is someone tried to build xserver 1.7+ without installing its build deps first.

Revision history for this message
Ilkka Laukkanen (ilkka) wrote :

Actually it seems to be an issue in other scenarios as well: I couldn't get pkg-config to give me cflags or libs for one specific library, even though that library's dependencies were fully satisfied, and I was mystified until I tried running "pkg-config --list-all" and saw the error message pertaining to a missing drm.pc. After installing libdrm-dev, everything worked fine. So this can affect other people as well. Besides, at the end of the day, isn't this still a broken package that should get fixed?

Revision history for this message
Bryce Harrington (bryce) wrote :

Hmm. I would think that if this was really needed, debian would have included it in their deps. I'll include this, but can I ask that you also approach Debian with this patch and see if it can be included in their package as well?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 7.7.1-1ubuntu2

---------------
mesa (7.7.1-1ubuntu2) lucid; urgency=low

  * Add 103_savage-expose_fbmodes_with_nonzero_alpha.patch: Expose
    fbmodes with non-zero alpha depth. Fixes issue where clutter apps
    crash when using the savage driver. Thanks to knarf for developing
    the fix.
    (LP: #467474)
  * mesa-common-dev should depend on libdrm-dev
    (LP: #490811)
 -- Bryce Harrington <email address hidden> Wed, 14 Apr 2010 12:06:00 -0700

Changed in mesa (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Ilkka Laukkanen (ilkka) wrote :

I've emailed the debian-x list about this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.