Bug 8222

Summary: Elide dependency from -dev package on main package if there are no shared libraries in it
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Unassigned <unassigned>
Status: IN PROGRESS DESIGN --- QA Contact:
Severity: enhancement    
Priority: Medium CC: fawzi.khaber, meta.mr.watcher, meta.watcher, paul, randy.macleod, richard.purdie, yoann.congal
Version: 1.8   
Target Milestone: 6.2   
Hardware: x86   
OS: Multiple   
See Also: https://bugzilla.yoctoproject.org/show_bug.cgi?id=6839
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Paul Eggleton 2015-08-28 09:22:38 UTC
There are some software packages out there that ship libraries, but only build them statically (bind is one example), thus the dependency from the -dev package on the main package is completely superfluous. We should be able to detect this at packaging time and get rid of the runtime dependency, so we can avoid having to do this explicitly within the recipe.
Comment 1 Paul Eggleton 2017-03-13 23:03:24 UTC
See also bug 6839.
Comment 2 Fawzi KHABER 2023-01-30 15:30:24 UTC
Hello, i'm willing to work on this issue, i tried to build bind package, i expected to get a -dev dependency on main package, but it was not the case, is the issue solved ?
Comment 3 Fawzi KHABER 2023-01-31 10:19:27 UTC
This use case produce actually an RRECOMMEND on the main package, shall we get rid of that weak dependency if the main package is empty ?
Since RRDEPENDS are RRECOMMENDS, shall we clean recipes from past hacks that used to bypass this issue ( DEV_PKG_DEPENDENCY = "" and ALLOW_EMPTY:${PN} = "1")
Comment 4 Randy MacLeod 2023-02-02 16:03:43 UTC
ping.
Comment 5 Yoann Congal 2023-02-24 15:03:42 UTC
Sent a RFC patch about this bug :
https://lists.openembedded.org/g/openembedded-core/topic/rfc_patch_0_2_handling_of/97195657
Comment 6 Richard Purdie 2023-02-25 10:25:43 UTC
I put some information about this into an oe-arch email: https://lists.openembedded.org/g/openembedded-architecture/message/1701
Comment 7 Richard Purdie 2023-09-14 15:24:57 UTC
I was asked about the status of this. I don't think there were objections to what I proposed in the email so I'd suggest we proceed in that direction.
Comment 8 Yoann Congal 2025-04-29 14:41:57 UTC
Bulk move to 5.3
Comment 9 Yoann Congal 2025-11-06 10:57:03 UTC
Bulk move to 6.0 M1
Comment 10 Yoann Congal 2026-04-03 09:25:41 UTC
(Unassigning myself since a do not realistically have the time to work on this)
Comment 11 Randy MacLeod 2026-05-28 13:16:28 UTC
Bulk move of 6.0 Medium bugs to 6.1.