openembedded / meta-openembedded

MIT License
401 stars 698 forks source link

scarthgap: abseil-cpp and re2 drag -dev packages to rootfs #825

Open TommyDesrosiersExfo opened 4 months ago

TommyDesrosiersExfo commented 4 months ago

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 1 month ago

fixed by 67559f2aedc1c071b70d38ccae428270a8539341 ?