Discussion:
[gentoo-user] split-usr
(too old to reply)
William Kenworthy
2024-01-12 07:30:01 UTC
Permalink
Some years back I did the usr-merge and my laptop has continued on more
or less ok.

Now, I suddenly have a number of packages failing to build with internal
collisions as they try and install (for example) a binary into /bin and
/usr/bin and collide.  "emerge --info" is showing the split-usr flag
enabled on my profile (5):

  [5]   default/linux/amd64/17.1/desktop (stable)
  [6]   default/linux/amd64/17.1/desktop/gnome (stable)
  [7]   default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [8]   default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr (stable)
  [9]   default/linux/amd64/17.1/desktop/plasma (stable)
  [10]  default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [11]  default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr (stable)
  [12]  default/linux/amd64/17.1/desktop/systemd (stable)
  [13]  default/linux/amd64/17.1/desktop/systemd/merged-usr (stable)

So which profile should I use for an XFCE4 desktop.  This laptop is
openrc and predates the devils spawn (systemd) and I dont use gnome or
plasma?

BillK
ralfconn
2024-01-12 17:50:01 UTC
Permalink
Post by William Kenworthy
Some years back I did the usr-merge and my laptop has continued on
more or less ok.
Now, I suddenly have a number of packages failing to build with
internal collisions as they try and install (for example) a binary
into /bin and /usr/bin and collide.  "emerge --info" is showing the
  [5]   default/linux/amd64/17.1/desktop (stable)
  [6]   default/linux/amd64/17.1/desktop/gnome (stable)
  [7]   default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [8] default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr (stable)
  [9]   default/linux/amd64/17.1/desktop/plasma (stable)
  [10]  default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [11] default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr
(stable)
  [12]  default/linux/amd64/17.1/desktop/systemd (stable)
  [13]  default/linux/amd64/17.1/desktop/systemd/merged-usr (stable)
So which profile should I use for an XFCE4 desktop.  This laptop is
openrc and predates the devils spawn (systemd) and I dont use gnome or
plasma?
BillK
[5] is what I have been using here for years and I am also an
XFCE/openrc addict. I recently switched to a merged
desktop[5]/hardened[3] profile. split-usr is set but it's the first time
I notice it and I don't know what the usr-merge is. No issues with
merges. Not much help for your problem, I know.

raf
Michael
2024-01-12 18:50:01 UTC
Permalink
Post by ralfconn
Post by William Kenworthy
Some years back I did the usr-merge and my laptop has continued on
more or less ok.
Now, I suddenly have a number of packages failing to build with
internal collisions as they try and install (for example) a binary
into /bin and /usr/bin and collide. "emerge --info" is showing the
[5] default/linux/amd64/17.1/desktop (stable)
[6] default/linux/amd64/17.1/desktop/gnome (stable)
[7] default/linux/amd64/17.1/desktop/gnome/systemd (stable)
[8] default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr (stable)
[9] default/linux/amd64/17.1/desktop/plasma (stable)
[10] default/linux/amd64/17.1/desktop/plasma/systemd (stable)
[11] default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr
(stable)
[12] default/linux/amd64/17.1/desktop/systemd (stable)
[13] default/linux/amd64/17.1/desktop/systemd/merged-usr (stable)
So which profile should I use for an XFCE4 desktop. This laptop is
openrc and predates the devils spawn (systemd) and I dont use gnome or
plasma?
BillK
[5] is what I have been using here for years and I am also an
XFCE/openrc addict. I recently switched to a merged
desktop[5]/hardened[3] profile. split-usr is set but it's the first time
I notice it and I don't know what the usr-merge is. No issues with
merges. Not much help for your problem, I know.
raf
Directories like /bin, /sbin, /lib* will soon/eventually migrate to /usr and
merge with their synonyms there. This has already taken place on systemd and
a migration is on the cards for openrc. The baselayout package will change
among others and I expect some migration script would be provided. Otherwise
it would be a manual job of shifting directories around. Leaving the split-
usr flag set is what should be used with the stable packages at the moment and
it won't cause any problems.

More info here: https://wiki.gentoo.org/wiki/Merge-usr

and here (for systemd): https://www.gentoo.org/support/news-items/2022-12-01-systemd-usrmerge.html
Felix Kuperjans
2024-01-12 19:10:01 UTC
Permalink
Post by William Kenworthy
Some years back I did the usr-merge and my laptop has continued on
more or less ok.
Now, I suddenly have a number of packages failing to build with
internal collisions as they try and install (for example) a binary
into /bin and /usr/bin and collide.  "emerge --info" is showing the
  [5]   default/linux/amd64/17.1/desktop (stable)
  [6]   default/linux/amd64/17.1/desktop/gnome (stable)
  [7]   default/linux/amd64/17.1/desktop/gnome/systemd (stable)
  [8]   default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr (stable)
  [9]   default/linux/amd64/17.1/desktop/plasma (stable)
  [10]  default/linux/amd64/17.1/desktop/plasma/systemd (stable)
  [11]  default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr (stable)
  [12]  default/linux/amd64/17.1/desktop/systemd (stable)
  [13]  default/linux/amd64/17.1/desktop/systemd/merged-usr (stable)
So which profile should I use for an XFCE4 desktop.  This laptop is
openrc and predates the devils spawn (systemd) and I dont use gnome or
plasma?
BillK
Hello William,

from the profiles listed you probably go with the plain desktop profile
[5] at best.

In the 23.0 profiles the /usr merge will be properly addressed, until
then you'll need to do the adjustments in your /etc/portage/.

To see what is needed, you can check the actual changes which the
merged-usr profiles introduce in ::gentoo repository:

profiles/features/merged-usr/

From what you're describing I think you you're not properly masking the
split-usr USE flag, i.e. check especially use.force and use.mask.

Cheers
Felix

Loading...