libdrm_intel.pc: don't include ${includedir}/drm
PATCH 1/3 libdrm_intel.pc: don't include ${includedir}/drm
intel_bufmgr.h is installed in ${includedir} directly, and the other headers are taken care of by libdrm.pc's Cflags.
--- intel/libdrm_intel.pc.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
intel/libdrm_intel.pc.in +1 -1
@@ -8,4 +8,4 @@ Description: Userspace interface to kernel DRM services Version: @PACKAGE_VERSION@ Requires: libdrm Libs: -L${libdir} -ldrm_intel -Cflags: -I${includedir} -I${includedir}/drm +Cflags: -I${includedir}
Signature · 10 lines
1.6.6.1 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
PATCH 2/3 libdrm_nouveau requires libdrm
nouveau_drmif.h includes xf86drm.h.
--- nouveau/libdrm_nouveau.pc.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
nouveau/libdrm_nouveau.pc.in +1 -0
@@ -8,3 +8,4 @@ Description: Userspace interface to nouveau kernel DRM services Version: 0.6 Libs: -L${libdir} -ldrm_nouveau Cflags: -I${includedir} -I${includedir}/drm -I${includedir}/nouveau +Requires.private: libdrm
Signature · 10 lines
1.6.6.1 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
PATCH 3/3 Install headers to $(includedir)/libdrm
Avoids conflicts with kernel headers.
---
This was suggested by Eric so distros can let the kernel install drm headers, but provide updated headers from libdrm so we can build new drivers regardless of the kernel version.
include/drm/Makefile.am | 2 +- libdrm.pc.in | 2 +- nouveau/Makefile.am | 2 +- nouveau/libdrm_nouveau.pc.in | 2 +- radeon/Makefile.am | 2 +- radeon/libdrm_radeon.pc.in | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
include/drm/Makefile.am +1 -1
@@ -22,7 +22,7 @@ # however, r300 and via need their reg headers installed in order to build. # better solutions are welcome. -klibdrmincludedir = ${includedir}/drm +klibdrmincludedir = ${includedir}/libdrm klibdrminclude_HEADERS = \ drm.h \ drm_mode.h \
libdrm.pc.in +1 -1
@@ -7,4 +7,4 @@ Name: libdrm Description: Userspace interface to kernel DRM services Version: @PACKAGE_VERSION@ Libs: -L${libdir} -ldrm -Cflags: -I${includedir} -I${includedir}/drm +Cflags: -I${includedir} -I${includedir}/libdrm
nouveau/Makefile.am +1 -1
@@ -34,7 +34,7 @@ libdrm_nouveaucommoninclude_HEADERS = \ nouveau_reloc.h -libdrm_nouveauincludedir = ${includedir}/drm +libdrm_nouveauincludedir = ${includedir}/libdrm libdrm_nouveauinclude_HEADERS = \ nouveau_drmif.h
nouveau/libdrm_nouveau.pc.in +1 -1
@@ -7,5 +7,5 @@ Name: libdrm_nouveau Description: Userspace interface to nouveau kernel DRM services Version: 0.6 Libs: -L${libdir} -ldrm_nouveau -Cflags: -I${includedir} -I${includedir}/drm -I${includedir}/nouveau +Cflags: -I${includedir} -I${includedir}/libdrm -I${includedir}/nouveau Requires.private: libdrm
radeon/Makefile.am +1 -1
@@ -41,7 +41,7 @@ libdrm_radeon_la_SOURCES = \ radeon_bo.c \ radeon_cs.c -libdrm_radeonincludedir = ${includedir}/drm +libdrm_radeonincludedir = ${includedir}/libdrm libdrm_radeoninclude_HEADERS = \ radeon_bo.h \ radeon_cs.h \
radeon/libdrm_radeon.pc.in +1 -1
@@ -7,4 +7,4 @@ Name: libdrm_radeon Description: Userspace interface to kernel DRM services for radeon Version: @PACKAGE_VERSION@ Libs: -L${libdir} -ldrm_radeon -Cflags: -I${includedir} -I${includedir}/drm +Cflags: -I${includedir} -I${includedir}/libdrm
Signature · 10 lines
1.6.6.1 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --
Re: [PATCH 3/3] Install headers to $(includedir)/libdrm
Quoted 8 lines · Julien Cristau
Avoids conflicts with kernel headers.
Signed-off-by Julien Cristau <[email protected]>---
This was suggested by Eric so distros can let the kernel install drm headers, but provide updated headers from libdrm so we can build new drivers regardless of the kernel version.
any comments on this?
Cheers,
Julien
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
Rémi Cardona
Reviewed-byRe: [PATCH 3/3] Install headers to $(includedir)/libdrm
Quoted 1 line · Julien Cristau
any comments on this?
The whole series looks nice. Just got me wondering why libdrm_intel installs its only header in ${includedir} and not in /drm or /libdrm...
Cheers,
Rémi
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
Eric Anholt
AppliedRe: [PATCH 3/3] Install headers to $(includedir)/libdrm
In reply to Julien CristauQuoted 3 lines · Julien Cristau
Avoids conflicts with kernel headers.
Signed-off-by Julien Cristau <[email protected]>
Applied this series, plus moving the intel file. Thanks!
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Re: [PATCH 2/3] libdrm_nouveau requires libdrm
In reply to Julien CristauQuoted 1 line · Julien Cristau
nouveau_drmif.hincludesxf86drm.h.
If it's a source level dependency it should be a regular Requires: in the .pc. Requires.private: is only for private libraries you link to but don't expose their API in your header files. The idea is (AFAIK) that you can ask pkg-config to list all libraries to link to for static linking, in which case pkg-config needs a way to find all needed libraries. It even looks like Requires.private has been obsoleted by Libs.private in recent pkg-config.
Quoted 18 lines
Signed-off-by Julien Cristau <[email protected]>---
nouveau/libdrm_nouveau.pc.in | 1 +1 files changed, 1 insertions(+), 0 deletions(-)nouveau/libdrm_nouveau.pc.in +0
-0@@ -8,3 +8,4 @@ Description: Userspace interface to nouveau kernel DRM servicesVersion: 0.6
Libs: -L${libdir} -ldrm_nouveau
Cflags: -I${includedir} -I${includedir}/drm -I${includedir}/nouveau +Requires.private: libdrm
--
1.6.6.1
Quoted 12 lines
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel
Re: [PATCH 2/3] libdrm_nouveau requires libdrm
Quoted 11 lines · Kristian Høgsberg
Quoted 1 line · Julien Cristau
nouveau_drmif.hincludesxf86drm.h.If it's a source level dependency it should be a regular Requires: in the .pc. Requires.private: is only for private libraries you link to but don't expose their API in your header files. The idea is (AFAIK) that you can ask pkg-config to list all libraries to link to for static linking, in which case pkg-config needs a way to find all needed libraries. It even looks like Requires.private has been obsoleted by Libs.private in recent pkg-config.
That's not what the pkg-config maintainer says...
http://err.no/personal/blog/2008/Mar/25
Using Requires.private lets us get the necessary cflags, but avoids linking to the library if not using --static.
Cheers,
Julien
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
Re: [PATCH 2/3] libdrm_nouveau requires libdrm
2010/2/26 Julien Cristau <[email protected]>:
Quoted 13 lines · Kristian Høgsberg
Quoted 12 lines · Julien Cristau
Quoted 1 line
nouveau_drmif.hincludesxf86drm.h.If it's a source level dependency it should be a regular Requires: in the .pc. Requires.private: is only for private libraries you link to but don't expose their API in your header files. The idea is (AFAIK) that you can ask pkg-config to list all libraries to link to for static linking, in which case pkg-config needs a way to find all needed libraries. It even looks like Requires.private has been obsoleted by Libs.private in recent pkg-config.
Quoted 6 lines
That's not what the pkg-config maintainer says...
http://err.no/personal/blog/2008/Mar/25
Using Requires.private lets us get the necessary cflags, but avoids linking to the library if not using --static.
Oh, I see. Well it sounds like at some point Requires.private did what I thought it did. Thanks for the pointer.
Kristian
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel