🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.gentoo.user
8 messages
8 total messages Started by Pocket Tue, 17 Nov 2026 18:50
[gentoo-user] emerge conflict
#181
Author: Pocket
Date: Tue, 17 Nov 2026 18:50
97 lines
3357 bytes
I got this issue with my ebuild I wrote for raspberry pi kernel

I complained that the kernel needs bc so I added this to my ebuild

RDEPEND="sys-devel/bc"


  * This package will overwrite one or more files that may belong to 
other
  * packages (see list below). You can use a command such as `portageq 

  * owners / <filename>` to identify the installed package that owns a 

  * file. If portageq reports that only one package owns a file then do 

  * NOT file a bug report. A bug report is only useful if it identifies 
at
  * least two or more packages that are known to install the same 
file(s).
  * If a collision occurs and you can not explain where the file came 
from
  * then you should simply ignore the collision since there is not 
enough
  * information to determine if a real problem exists. Please do NOT 
file
  * a bug report at https://bugs.gentoo.org/ unless you report exactly 

  * which two packages install the same file(s). See 

  * https://wiki.gentoo.org/wiki/Knowledge_Base:Blockers for tips on how 

  * to solve the problem. And once again, please do NOT file a bug 
report
  * unless you have completely understood the above message. 

  * 

  * Detected file collision(s): 

  * 

  *      /usr/bin/bc 

  *      /usr/bin/dc 

  * 

  * Searching all installed packages for file collisions... 

  * 

  * Press Ctrl-C to Stop 

  * 

  * None of the installed packages claim the file(s). 

  * 

  * Package 'app-alternatives/bc-0' merged despite file collisions. If 

  * necessary, refer to your elog messages for the whole content of the 

  * above message. 

  

  * Regenerating GNU info directory index... 

  * Processed 106 info files. 

  

  * IMPORTANT: 15 news items need reading for repository 'gentoo'. 

  * Use eselect news read to view new items.


Is sys-devel/bc the correct dependency for bc or should I have used
app-alternatives/bc-0?

find /var/db/repos/gentoo/ -type d -name bc 

/var/db/repos/gentoo/app-alternatives/bc 

/var/db/repos/gentoo/sys-devel/bc

I choose the latter and it pulled in the app-alternatives/bc, I don't 
know why.  There isn't an ebuild for dc
find /var/db/repos/gentoo/ -type d -name dc

The ebuild did complete.

I am still in the learning phase.

-- 
Hindi madali ang maging ako
Re: [gentoo-user] emerge conflict
#182
Author: Arve Barsnes
Date: Tue, 17 Nov 2026 19:00
12 lines
4055 bytes
On Tue, 17 Nov 2026, at 19:45, Pocket wrote:
> I got this issue with my ebuild I wrote for raspberry pi kernel
>
> I complained that the kernel needs bc so I added this to my ebuild
>
> RDEPEND="sys-devel/bc"


Just for reference, both /usr/bin/bc and /usr/bin/dc is provided by app-alternatives/bc on my system, and they are both symbolic links to binaries provided by sys-devel/bc. I take that to mean that the best dependency for your ebuild is app-alternatives/bc.

Regards,
Arve
Re: [gentoo-user] emerge conflict
#183
Author: Pocket
Date: Tue, 17 Nov 2026 19:10
28 lines
1973 bytes

On 11/17/26 13:51, Arve Barsnes wrote:
> On Tue, 17 Nov 2026, at 19:45, Pocket wrote:
>> I got this issue with my ebuild I wrote for raspberry pi kernel
>>
>> I complained that the kernel needs bc so I added this to my ebuild
>>
>> RDEPEND="sys-devel/bc"
> 
> 
> Just for reference, both /usr/bin/bc and /usr/bin/dc is provided by app-alternatives/bc on my system, and they are both symbolic links to binaries provided by sys-devel/bc. I take that to mean that the best dependency for your ebuild is app-alternatives/bc.
> 
> Regards,
> Arve
> 

Ok
If sys-devel/bc provides the bc executable why then should it pull in 
app-alternatives/bc?

I only need bc.

I will look at both of those ebuild later.


-- 
Hindi madali ang maging ako
Re: [gentoo-user] emerge conflict
#184
Author: Alexis
Date: Tue, 17 Nov 2026 22:30
15 lines
2608 bytes
Pocket <pocket@oldfart.online> writes:

> If sys-devel/bc provides the bc executable why then should it 
> pull in
> app-alternatives/bc?

app-alternatives/bc is the package that other packages can depend 
on to indicate "A bc-like program is required", without specifying 
a specific bc-like program.

sys-devel/bc is an actual package that satisfies the requirement 
for a bc-like program.


Alexis.
Re: [gentoo-user] emerge conflict
#185
Author: Pocket
Date: Tue, 17 Nov 2026 22:40
25 lines
1908 bytes

On 11/17/26 17:22, Alexis wrote:
> Pocket <pocket@oldfart.online> writes:
> 
>> If sys-devel/bc provides the bc executable why then should it pull in
>> app-alternatives/bc?
> 
> app-alternatives/bc is the package that other packages can depend on to 
> indicate "A bc-like program is required", without specifying a specific 
> bc-like program.
> 
> sys-devel/bc is an actual package that satisfies the requirement for a 
> bc-like program.
> 
> 
> Alexis.
> 

Yes

But sys-devel/bc pulls in app-alternatives/bc

-- 
Hindi madali ang maging ako
Re: [gentoo-user] emerge conflict
#188
Author: Alexis
Date: Tue, 17 Nov 2026 23:30
38 lines
3413 bytes
Pocket <pocket@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."
-- 
   https://devmanual.gentoo.org/general-concepts/dependencies/#post-dependencies

As i understand it - but happy to be corrected, of course - i 
think the idea is something like "sys-devel/bc is installed on 
this system, which means that packages wanting a bc-like program 
have one available, and app-alternatives should be installed to 
allow those packages to use it".

In terms of the amount of additional storage space used as a 
result:

```
$ qsize app-alternatives/bc
app-alternatives/bc: 4 files, 5 non-files, 62
```

where the "62" indicates "62 bytes".


Alexis.
Re: [gentoo-user] emerge conflict
#190
Author: Pocket
Date: Wed, 18 Nov 2026 00:00
29 lines
2314 bytes

On 11/17/26 18:23, Alexis wrote:
> Pocket <pocket@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.


-- 
Hindi madali ang maging ako
Re: [gentoo-user] emerge conflict
#193
Author: Eli Schwartz
Date: Wed, 18 Nov 2026 02:40
111 lines
6581 bytes
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------4Fo11Is7TRc29UjhR2k77xGW
Content-Type: multipart/mixed; boundary="------------3Mca1OxSQn8F2cD0hwWaRr08";
 protected-headers="v1"; hp="clear"
Message-ID: <31d471d5-7b14-4685-8f8c-b420d2e30a3e@gentoo.org>
Date: Tue, 17 Nov 2026 21:30:17 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [gentoo-user] emerge conflict
To: gentoo-user@lists.gentoo.org
References: <2d5739bf-ede8-40cd-bcd1-8d72da2f0456@oldfart.online>
 <8c010257-dba7-422b-b69e-1cb486db94b0@app.fastmail.com>
 <caae8d30-3684-41ec-b0cd-6f7bfd6bea31@oldfart.online>
 <87se0z3xpq.fsf@gmail.com>
 <63e9954a-99f4-4ac0-b4a7-71f2da164c4d@oldfart.online>
 <87jymb3uv7.fsf@gmail.com>
 <7a22fe19-8c9d-4869-8404-90b41da54e89@oldfart.online>
Content-Language: en-US
From: Eli Schwartz <eschwartz@gentoo.org>
Autocrypt: addr=eschwartz@gentoo.org; keydata=
 xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN
 I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4CGwMFCwkIBwMF
 FQoJCAsFFgIDAQACHgUCF4AWIQTvUdMIsc4jCIi+DYTqQj6ToWND8QUCauABDQUJCJCIWQAK
 CRDqQj6ToWND8bXlAQDhi6hUxiss56cdPbsemrWdVQe3CtkpqlQccxV/4a4/QgD/dUCR+SGn
 YxNZj6lir6i/TBr0yfSSrMtKgGO1+lClSwLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b
 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYCGwwWIQTvUdMIsc4jCIi+
 DYTqQj6ToWND8QUCauABGAUJCJCIZAAKCRDqQj6ToWND8c4xAQCWj7iWpgEJUM+wf2bZCkgM
 EKEVVdv5aBJrj6Xa22UhIQEA0bIv2t9jUqUeBMHl/6i0L28s5Mrtr0ZSX3Sg/zeyrAM=
X-Clacks-Overhead: GNU Terry Pratchett
In-Reply-To: <7a22fe19-8c9d-4869-8404-90b41da54e89@oldfart.online>

--------------3Mca1OxSQn8F2cD0hwWaRr08
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 11/17/26 6:56 PM, Pocket wrote:
>=20
>=20
> On 11/17/26 18:23, Alexis wrote:
>> Pocket <pocket@oldfart.online> writes:
>>
>>> But sys-devel/bc pulls in app-alternatives/bc
>>
>> Yes, it's a PDEPEND in the ebuild for the former:
>>
>> ```
>> PDEPEND=3D"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."
>=20
>=20
> I changed the RDEPEND to BDEPEND
>=20
> 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=
=2E


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).


--=20
Eli Schwartz

--------------3Mca1OxSQn8F2cD0hwWaRr08--

--------------4Fo11Is7TRc29UjhR2k77xGW
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCav0NuQUDAAAAAAAKCRCEp9ErcA0vV6eA
AP4jLBm7bMzDfFtJchw/wQHhc7KA4OTOCVxYV39q3fXA3gEA/oWdSDZm69SNHy32u/AKOn/3YZ5L
00UiiJb3jrjPHAc=
=d2Vt
-----END PGP SIGNATURE-----

--------------4Fo11Is7TRc29UjhR2k77xGW--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads