scarthgap: abseil-cpp and re2 drag -dev packages to rootfs
TommyDesrosiersExfo opened this issue · 1 comments
TommyDesrosiersExfo commented
On branch scarthgap, including re2 in a rootfs image increases significantly its size due to dragging multiple -dev packages. The root cause is abseil-cpp not putting cmake related files in its regular pakages. (Those files were newly added to the abseil-cpp project.) The the re2 recipe just disable all QA tests to hide the issue.
I have a workaround using .bbappend:
abseil-cpp_20240116.2.bbappend:
ALLOW_EMPTY:${PN} = " "
FILES:${PN} = "${libdir}/lib*.so.* ${libdir}/cmake/absl/*.cmake"
re2_2024.03.01.bbappend:
RDEPENDS:${PN}:remove="abseil-cpp-dev"
FILES:${PN} = "${libdir}/*.so.*"
INSANE_SKIP:${PN}:remove="dev-deps"
INSANE_SKIP:${PN}:remove="dev-so"
do_install:append:class-target () {
rm -f ${D}${libdir}/libre2.so
rm -rf ${D}${libdir}/pkgconfig
}
FederAndInk commented
fixed by 67559f2 ?