diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2020-07-07 12:46:44 +0200 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2020-08-26 22:21:11 +0200 |
commit | 3927de8205bb5cc7d0cec7605edbf1fcc0caa4fa (patch) | |
tree | 80b89ce49c1341caf8b1a0533a1ed165bb0e12ef /recipes-core | |
parent | 81f50df09146a6c233234b4c4f69210ede59424b (diff) | |
download | meta-ptx-3927de8205bb5cc7d0cec7605edbf1fcc0caa4fa.tar.gz meta-ptx-3927de8205bb5cc7d0cec7605edbf1fcc0caa4fa.tar.xz |
dt-utils: perform manual package split to avoid dbg package collisions
By default, all debug symbols will end up in runtime package ${PN}-dbg,
even if the binaries are split into several runtime packages.
In most cases it is not an issue to install all non-relevant debug package
unconditionally. But as the 'dt-utils' package provides the 'fdtdump'
utility that the 'dtc' package also provides, this would trigger a -dbg
package collision when attempting to install both any of the dt-utils runtime
package and any of the dtc runtime packages:
| Error: Transaction check error:
| file /usr/bin/.debug/fdtdump conflicts between attempted installs of libdt-utils-dbg-2019.01.0-r0.corei7_64 and dtc-dbg-1.5.1-r0.corei7_64
To prevent this, we simply disable the default debug package split and
perform it on our own by splitting the debug symbols into a
runtime package-specific dbg package.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/dt-utils/dt-utils.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/recipes-core/dt-utils/dt-utils.inc b/recipes-core/dt-utils/dt-utils.inc index 7a181ae..f07c625 100644 --- a/recipes-core/dt-utils/dt-utils.inc +++ b/recipes-core/dt-utils/dt-utils.inc @@ -10,8 +10,13 @@ SRC_URI = "http://www.pengutronix.de/software/dt-utils/download/${BPN}-${PV}.tar inherit autotools pkgconfig gettext -PACKAGES =+ "${PN}-barebox-state ${PN}-fdtdump ${PN}-dtblint" +PACKAGES =+ "${PN}-barebox-state ${PN}-barebox-state-dbg ${PN}-fdtdump ${PN}-fdtdump-dbg ${PN}-dtblint ${PN}-dtblint-dbg" +NOAUTOPACKAGEDEBUG = "1" FILES_${PN}-barebox-state = "${bindir}/barebox-state" +FILES_${PN}-barebox-state-dbg = "${bindir}/.debug/barebox-state" FILES_${PN}-fdtdump = "${bindir}/fdtdump" +FILES_${PN}-fdtdump-dbg = "${bindir}/.debug/fdtdump" FILES_${PN}-dtblint = "${bindir}/dtblint" +FILES_${PN}-dtblint-dbg = "${bindir}/.debug/dtblint" +FILES_${PN}-dbg = "${libdir}/.debug/" |