Patchwork [1/1] udev: ship source files to related dbg package

login
register
mail settings
Submitter wenzong.fan@windriver.com
Date Nov. 7, 2013, 11:03 a.m.
Message ID <8f83b6dc1a9b535b46c0081b51b640ad8545f793.1383821844.git.wenzong.fan@windriver.com>
Download mbox | patch
Permalink /patch/61239/
State New
Headers show

Comments

wenzong.fan@windriver.com - Nov. 7, 2013, 11:03 a.m.
From: Wenzong Fan <wenzong.fan@windriver.com>

Currently all source files will be shipped to udev-dbg regardless they
should belong libudev-dbg or libgudev-dbg, just update the FILES list
to ship those files to their own packages:

    libudev-dbg: libudev*, libgudev-dbg: gudev*, udev-dbg: others

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 meta/recipes-core/udev/udev.inc |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-core/udev/udev.inc b/meta/recipes-core/udev/udev.inc
index 2ff8f00..b4327bd 100644
--- a/meta/recipes-core/udev/udev.inc
+++ b/meta/recipes-core/udev/udev.inc
@@ -63,11 +63,14 @@  FILES_${PN}-dbg += "${base_libdir}/udev/.debug/*"
 FILES_${PN}-dbg += "${nonarch_base_libdir}/udev/.debug/*"
 FILES_${PN}-dev = "${datadir}/pkgconfig/udev.pc"
 FILES_libudev = "${base_libdir}/libudev.so.*"
-FILES_libudev-dbg = "${base_libdir}/.debug/libudev.so.*"
+FILES_libudev-dbg = "/usr/src/debug/${BPN}/${PV}-${PR}/${BP}/src/libudev* \
+                     ${base_libdir}/.debug/libudev.so.*"
 FILES_libudev-dev = "${includedir}/libudev.h ${libdir}/libudev.so ${libdir}/libudev.la \
                      ${libdir}/libudev.a ${libdir}/pkgconfig/libudev.pc"
 FILES_libgudev = "${base_libdir}/libgudev*.so.* ${libdir}/libgudev*.so.*"
-FILES_libgudev-dbg = "${base_libdir}/.debug/libgudev*.so.* ${libdir}/.debug/libgudev*.so.*"
+FILES_libgudev-dbg = "/usr/src/debug/${BPN}/${PV}-${PR}/${BP}/src/gudev* \
+                      /usr/src/debug/${BPN}/${PV}-${PR}/build/src/gudev* \
+                      ${base_libdir}/.debug/libgudev*.so.* ${libdir}/.debug/libgudev*.so.*"
 FILES_libgudev-dev = "${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libgudev*.la \
                      ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc"
 FILES_udev-cache = "${sysconfdir}/init.d/udev-cache ${sysconfdir}/default/udev-cache"