Project

General

Profile

Actions

Bug #7692

closed

libdrm.pc is incorrect

Added by Alexander Pyhalov about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Start date:
2016-12-27
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

libdrm now contains broken libdrm.pc, it's the same for 32/64 bits (64-bit one).

diff u /usr/lib/pkgconfig/libdrm.pc build/prototype/i386/usr/lib/xorg/pkgconfig/libdrm.pc
--
/usr/lib/pkgconfig/libdrm.pc 2016-12-27 12:35:16.540051108 0300
++ build/prototype/i386/usr/lib/xorg/pkgconfig/libdrm.pc 2016-12-27 13:46:58.462021264 +0300
@ -1,10 +1,10 @
prefix=/usr
exec_prefix=${prefix}
-libdir=/usr/lib/xorg/amd64
+libdir=/usr/lib/xorg
includedir=${prefix}/include

Name: libdrm
Description: Userspace interface to kernel DRM services
-Version: 2.4.73
+Version: 2.4.67
Libs: -L${libdir} -R${libdir} -ldrm
Cflags: -I${includedir} -I${includedir}/libdrm

Also libdrm now ships includes in usr/include/drm. Earlier libdrm shipped:

file path=usr/include/exynos/exynos_drm.h
file path=usr/include/exynos/exynos_fimg2d.h
file path=usr/include/freedreno/freedreno_drmif.h
file path=usr/include/freedreno/freedreno_ringbuffer.h
file path=usr/include/libdrm/amdgpu.h
file path=usr/include/libdrm/amdgpu_drm.h
file path=usr/include/libdrm/drm.h
file path=usr/include/libdrm/drm_fourcc.h
file path=usr/include/libdrm/drm_mode.h
file path=usr/include/libdrm/drm_sarea.h
file path=usr/include/libdrm/exynos_drmif.h
file path=usr/include/libdrm/i915_drm.h
file path=usr/include/libdrm/intel_aub.h
file path=usr/include/libdrm/intel_bufmgr.h
file path=usr/include/libdrm/intel_debug.h
file path=usr/include/libdrm/mach64_drm.h
file path=usr/include/libdrm/mga_drm.h
file path=usr/include/libdrm/nouveau_drm.h
file path=usr/include/libdrm/omap_drmif.h
file path=usr/include/libdrm/qxl_drm.h
file path=usr/include/libdrm/r128_drm.h
file path=usr/include/libdrm/r600_pci_ids.h
file path=usr/include/libdrm/radeon_bo.h
file path=usr/include/libdrm/radeon_bo_gem.h
file path=usr/include/libdrm/radeon_bo_int.h
file path=usr/include/libdrm/radeon_cs.h
file path=usr/include/libdrm/radeon_cs_gem.h
file path=usr/include/libdrm/radeon_cs_int.h
file path=usr/include/libdrm/radeon_drm.h
file path=usr/include/libdrm/radeon_surface.h
file path=usr/include/libdrm/savage_drm.h
file path=usr/include/libdrm/sis_drm.h
file path=usr/include/libdrm/tegra.h
file path=usr/include/libdrm/tegra_drm.h
file path=usr/include/libdrm/via_drm.h
file path=usr/include/libdrm/vmwgfx_drm.h
file path=usr/include/libkms/libkms.h
file path=usr/include/omap/omap_drm.h
file path=usr/include/xf86drm.h
file path=usr/include/xf86drmMode.h

Now header-drm package ships:

file path=usr/include/drm/drm.h
file path=usr/include/drm/drm_fourcc.h
file path=usr/include/drm/drm_mode.h
file path=usr/include/drm/drm_os_solaris.h
file path=usr/include/drm/drm_sarea.h
file path=usr/include/drm/i915_drm.h

But pkgconfig --cflags libdrm still shows:

-I/usr/include/libdrm
</pe>

Actions #2

Updated by Ken Mays about 5 years ago

Bump to libdrm 2.4.74 for 2016Q4 Intel graphics release compliance.

Actions #3

Updated by Alexander Pyhalov about 5 years ago

I've updated suggested fix: https://github.com/pyhalov/gfx-drm/commit/3e4616d76b050666fbea72fe10245ed8eb818545 .
Now we install all drm headers to /usr/include/drm and create symlink /usr/include/libdrm -> drm.

Actions #4

Updated by Alexander Pyhalov about 5 years ago

Updated fix to avoid failure when proto area is not empty
https://github.com/pyhalov/gfx-drm/commit/877deaccd71e636b0cb1d06613724131378d49c1

Actions #5

Updated by Alexander Pyhalov about 5 years ago

  • Status changed from New to Resolved
  • Assignee set to Alexander Pyhalov
commit d687f7021eb7dd043fc3d1b0a5b3d503f2d34bb1
Author: Alexander Pyhalov <apyhalov@gmail.com>
Date:   Tue Dec 27 17:09:38 2016 +0300

    7692 libdrm.pc is incorrect
    Reviewed by: Toomas Soome <tsoome@me.com>
Actions #6

Updated by Gordon Ross over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF