Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774543 - sys-kernel/gentoo-kernel-bin: file collisions with sys-kernel/vanilla-sources
Summary: sys-kernel/gentoo-kernel-bin: file collisions with sys-kernel/vanilla-sources
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-07 00:53 UTC by Sam Jorna (wraeth) (RETIRED)
Modified: 2021-03-24 22:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log showing file collisions (gentoo-kernel-bin-5.11.3-r2.build.log,894.23 KB, text/plain)
2021-03-07 00:53 UTC, Sam Jorna (wraeth) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Jorna (wraeth) (RETIRED) gentoo-dev 2021-03-07 00:53:35 UTC
Created attachment 689724 [details]
build.log showing file collisions

The pre-built gentoo-kernel-bin installs to the same directory as vanilla-sources, /usr/src/linux-${PV}, preventing install due to file conflicts.

=emerge -pvqO vanilla-sources:5.11.3
[ebuild   R   ] sys-kernel/vanilla-sources-5.11.3  USE="-build -symlink"

=emerge -1 gentoo-kernel-bin:5.11.3
...
 * Package 'sys-kernel/gentoo-kernel-bin-5.11.3-r2' NOT merged due to
 * file collisions. If necessary, refer to your elog messages for the
 * whole content of the above message.

Ideally, the -bin should either install to a different directory, or block same-version vanilla-sources.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-07 07:57:49 UTC
Hmm, I'm wondering if we should force -gentoo suffix like gentoo-sources do, for a start.  We could also add an extra '-dist' suffix or sth like that to prevent collisions even further.

That said, I'm not sure if there's a point in trying to prevent collisions between source and -bin variants, as they're practically the same thing.
Comment 2 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2021-03-07 09:53:42 UTC
(In reply to Michał Górny from comment #1)
> That said, I'm not sure if there's a point in trying to prevent collisions
> between source and -bin variants, as they're practically the same thing.

Except you can't actually build a kernel with what it provides, making switching (at least to vanilla-sources) at best tedious and, at worst, confusing.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-07 10:20:54 UTC
(In reply to Sam Jorna (wraeth) from comment #2)
> (In reply to Michał Górny from comment #1)
> > That said, I'm not sure if there's a point in trying to prevent collisions
> > between source and -bin variants, as they're practically the same thing.
> 
> Except you can't actually build a kernel with what it provides, making
> switching (at least to vanilla-sources) at best tedious and, at worst,
> confusing.

I meant between gentoo-kernel and gentoo-kernel-bin.
Comment 4 Sam Jorna (wraeth) (RETIRED) gentoo-dev 2021-03-07 11:44:43 UTC
(In reply to Michał Górny from comment #3)
> (In reply to Sam Jorna (wraeth) from comment #2)
> > (In reply to Michał Górny from comment #1)
> > > That said, I'm not sure if there's a point in trying to prevent collisions
> > > between source and -bin variants, as they're practically the same thing.
> > 
> > Except you can't actually build a kernel with what it provides, making
> > switching (at least to vanilla-sources) at best tedious and, at worst,
> > confusing.
> 
> I meant between gentoo-kernel and gentoo-kernel-bin.

Ah, that makes sense.

Agreed, there's probably not much point getting gentoo-kernel and gentoo-kernel-bin installed side-by-side. The problem is just with installing to the same directory as actual sources.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-07 19:19:23 UTC
If everything goes fine, today's bump will use -dist and -gentoo-dist suffixes appropriately.