Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TommyDesrosiersExfo opened this issue May 9, 2024 · 1 comment
Open

Comments

@TommyDesrosiersExfo
Copy link

TommyDesrosiersExfo commented May 9, 2024

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
Copy link

fixed by 67559f2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants