On 11/17/26 6:56 PM, Pocket wrote:
> > > On 11/17/26 18:23, Alexis wrote:
>> Pocket <pock…@oldfart.online> writes: >>
>>> But sys-devel/bc pulls in app-alternatives/bc
>> >> Yes, it's a PDEPEND in the ebuild for the former: >> >> ``` >> PDEPEND="app-alternatives/bc" >> ``` >> >> A PDEPEND is a "post dependency": >> >> "The PDEPEND variable specifies runtime dependencies that do not >> strictly require being satisfied immediately. They can be merged after >> the package. This variable is used purely to resolve circular >> dependencies, while in general case RDEPEND should be used instead."
> > > I changed the RDEPEND to BDEPEND > > From looking at the app-alternatives/bc it appears it only creates two > symlinks, if I am correctly reading the app-alternatives/bc ebuild file.
Yes. For packages in app-alternatives/* it means that users may wish to choose between multiple implementations of some software. So for bc, for example, sys-devel/bc installs: /usr/bin/bc-reference /usr/bin/dc-reference and creates *untracked* symlinks "bc" and "dc" if they don't exist. Later on in the same emerge process, app-alternatives/bc is installed, and exists to package up these two symlinks (which it takes ownership of, if they already existed as untracked symlinks): /usr/bin/bc -> bc-reference /usr/bin/dc -> dc-reference If you just want a bc program and you do not care which one, then depend on app-alternatives/bc. If you care which one, you can have programs which run `bc-reference`, or depend on `app-alternatives/bc[gnu]`, but I suspect it will be unlikely you have programs which specifically need the gnu version and cannot use "bc-gh" (the other implementation). Any ebuilds which "inherit kernel-build" will automatically have a BDEPEND on app-alternatives/bc (and various other packages).
-- Eli Schwartz