re2: remove dev dependencies from main package
PATCH 1/1 re2: remove dev dependencies from main package
From: Peter Marko <[email protected]>
It's a bad idea to add dev dependencies to main package. It's pulling build dependencies including toolchain items.
The dependencies "were needed" because main package contains packageconfig file.
This can be fixed by correct packaging.
--- meta-oe/recipes-support/re2/re2_2024.03.01.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
meta-oe/recipes-support/re2/re2_2024.03.01.bb +1 -4
@@ -16,9 +16,6 @@ DEPENDS = "abseil-cpp ${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest googlebe inherit cmake ptest RDEPENDS:${PN}-ptest += "cmake sed" -RDEPENDS:${PN} += "abseil-cpp-dev" - -INSANE_SKIP:${PN} += "dev-deps" EXTRA_OECMAKE += " \ -DBUILD_SHARED_LIBS=ON \
@@ -39,6 +36,6 @@ FILES:${PN} = "${libdir}" INSANE_SKIP:${PN} += "dev-so" # Don't include so files in dev package -FILES:${PN}-dev = "${includedir} ${libdir}/cmake" +FILES:${PN}-dev = "${includedir} ${libdir}/cmake ${libdir}/pkgconfig" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.30.2
Quoted 41 lines
-----Original Message-----
From: [email protected] <openembedded- [email protected]> On Behalf Of Peter Marko via lists.openembedded.org
Sent: den 8 maj 2024 13:16
To: [email protected]
Cc: Peter Marko <[email protected]>
Subject: [oe] [meta-oe][scarthgap][master][PATCH] re2: remove dev dependencies from main packageFrom: Peter Marko <[email protected]>
It's a bad idea to add dev dependencies to main package. It's pulling build dependencies including toolchain items.
The dependencies "were needed" because main package contains packageconfig file.
This can be fixed by correct packaging.Signed-off-by Peter Marko <[email protected]>--- meta-oe/recipes-support/re2/re2_2024.03.01.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)meta- renamed from meta-oe/recipes-support/re2/re2_2024.03.01.bb +0
-0oe/recipes-support/re2/re2_2024.03.01.bb
index192fe265f..6e5b32a94100644meta-oe/recipes-support/re2/re2_2024.03.01.bb +0
-0@@ -16,9 +16,6 @@ DEPENDS = "abseil-cpp${@bb.utils.contains('PTEST_ENABLED', '1', 'gtest googlebe
inherit cmake ptest
RDEPENDS:${PN}-ptest += "cmake sed"meta-oe/recipes-support/re2/re2_2024.03.01.bb +0
-3-RDEPENDS:${PN} += "abseil-cpp-dev" - -INSANE_SKIP:${PN} += "dev-deps" EXTRA_OECMAKE += " \ -DBUILD_SHARED_LIBS=ON \
meta-oe/recipes-support/re2/re2_2024.03.01.bb FILES:${PN} = "${libdir}" · line 39
Quoted 5 lines
meta-oe/recipes-support/re2/re2_2024.03.01.bb +1
-1@@ -39,6 +36,6 @@ FILES:${PN} = "${libdir}" INSANE_SKIP:${PN} += "dev-so" # Don't include so files in dev package -FILES:${PN}-dev = "${includedir} ${libdir}/cmake" +FILES:${PN}-dev = "${includedir} ${libdir}/cmake ${libdir}/pkgconfig"
This wouldn't be needed if FILES:${PN} wasn't set using FILES:${PN} = "${libdir}" earlier.
A better way to achieve that *.so files are packaged in the base package is to do:
SOLIBS = ".so*"FILES_SOLIBSDEV = ""
INSANE_SKIP:${PN} += "dev-so"
Quoted 4 lines
meta-oe/recipes-support/re2/re2_2024.03.01.bb +0
-1BBCLASSEXTEND = "native nativesdk" --2.30.2
//Peter
Quoted 4 lines
Quoted 3 lines
# Don't include so files in dev package -FILES:${PN}-dev =
"${includedir} ${libdir}/cmake"
+FILES:${PN}-dev = "${includedir} ${libdir}/cmake ${libdir}/pkgconfig"
Quoted 8 lines
This wouldn't be needed if FILES:${PN} wasn't set using FILES:${PN} = "${libdir}" earlier.
A better way to achieve that *.so files are packaged in the base package is to do:
SOLIBS = ".so*"
FILES_SOLIBSDEV= ""
INSANE_SKIP:${PN} += "dev-so"
The patch is already merged, so I'm not sending a v2 anymore, but thanks for the hint for my future patches. I wanted to do the least intrusive change as I don't understand why the solibsdev are needed in the main package. And larger reworks usually trigger those kind of discussions which I was not ready to answer.
Peter
Quoted 7 lines · Peter Marko via lists.openembedded.org
Quoted 7 lines
Quoted 4 lines
# Don't include so files in dev package -FILES:${PN}-dev =
"${includedir} ${libdir}/cmake"
+FILES:${PN}-dev = "${includedir} ${libdir}/cmake ${libdir}/pkgconfig"This wouldn't be needed if FILES:${PN} wasn't set using FILES:${PN} = "${libdir}" earlier.
Quoted 8 lines
Quoted 6 lines
A better way to achieve that *.so files are packaged in the base package is to do:
SOLIBS = ".so*"
FILES_SOLIBSDEV= ""
INSANE_SKIP:${PN} += "dev-so"The patch is already merged, so I'm not sending a v2 anymore
Please address the feedback in a new patch since it is an improvement, your patch fixed an issue and was in a merge queue
that has been through a few CI cycles already, so I did not remove it, however, that does not mean that it can not be improved upon.
but thanks for the hint for my future patches.
Quoted 13 lines
I wanted to do the least intrusive change as I don't understand why the solibsdev are needed in the main package. And larger reworks usually trigger those kind of discussions which I was not ready to answer.
Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110335): https://lists.openembedded.org/g/openembedded-devel/message/110335
Mute This Topic: https://lists.openembedded.org/mt/105978716/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Monday, May 13, 2024 18:37
To: Marko, Peter (ADV D EU SK BFS1) <[email protected]>
Cc: Peter Kjellerstedt <[email protected]>; [email protected]
Subject: Re: [oe] [meta-oe][scarthgap][master][PATCH] re2: remove dev dependencies from main package
Quoted 17 lines
Quoted 14 lines · Peter Marko via lists.openembedded.org
Quoted 13 lines
Quoted 4 lines
# Don't include so files in dev package -FILES:${PN}-dev =
"${includedir} ${libdir}/cmake"
+FILES:${PN}-dev = "${includedir} ${libdir}/cmake ${libdir}/pkgconfig"This wouldn't be needed if FILES:${PN} wasn't set using FILES:${PN} = "${libdir}" earlier.
A better way to achieve that *.so files are packaged in the base package is to do:
SOLIBS = ".so*"
FILES_SOLIBSDEV= ""
INSANE_SKIP:${PN} += "dev-so"
Quoted 7 lines
Quoted 1 line
The patch is already merged, so I'm not sending a v2 anymore
Please address the feedback in a new patch since it is an improvement, your patch fixed an issue and was in a merge queue
that has been through a few CI cycles already, so I did not remove it, however, that does not mean that it can not be improved upon.
https://lists.openembedded.org/g/openembedded-devel/message/110921 sent out
Quoted 14 lines
but thanks for the hint for my future patches.
Quoted 13 lines
I wanted to do the least intrusive change as I don't understand why the solibsdev are needed in the main package. And larger reworks usually trigger those kind of discussions which I was not ready to answer.
Peter
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110335): https://lists.openembedded.org/g/openembedded-devel/message/110335
Mute This Topic: https://lists.openembedded.org/mt/105978716/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-