Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

/usr merge what?

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
39 posts
  • Previous
  • 1
  • 2
Author
Message
Ionen
Developer
Developer
User avatar
Posts: 3009
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Sat Mar 27, 2021 4:33 pm

To go back to the /bin/cp example:

Code: Select all

    if use split-usr ; then
        cd "${ED}"/usr/bin || die
        dodir /bin
        # move critical binaries into /bin (required by FHS)
        local fhs="cat chgrp chmod chown cp date dd df echo false ln ls
                   mkdir mknod mv pwd rm rmdir stty sync true uname"
        mv ${fhs} ../../bin/ || die "could not move fhs bins"
So if you were to disable split-usr, you'd lose /bin/cp, /bin/cat, etc... This is fine in a context where /bin is a symlink to /usr/bin (e.g. merged), but "some" applications that expect standard locations and don't rely on PATH are going to have problems (not that this isn't its own issue).

Profile force-enables it so people don't accidentally turn this off without knowing what they're doing.

Not having /usr on a separate partition doesn't mean this should be disabled.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Mar 27, 2021 5:20 pm

Tony0945 wrote:Ionen, asturm, that is at odds with what Hu said above.
I was misled by the name, assumed what it did based on other context, and did not check how the ebuild uses it. I edited my prior post to remove the incorrect phrasing. Based on Ionen's excerpt above, IUSE=split-usr is part of usrmerge, not part of keeping the /usr filesystem split from the root filesystem.
Top
Leonardo.b
Guru
Guru
Posts: 314
Joined: Sat Oct 10, 2020 9:24 pm

  • Quote

Post by Leonardo.b » Sat Mar 27, 2021 8:13 pm

Things are more clear for me now. Expecially about udev rules.

Tony0945, I am thinking to move the building stuff under chroot.
That would be good for both testing and paranoia.
Top
Gatsby
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 132
Joined: Mon Jan 18, 2010 6:51 am
Location: 127.0.0.1

  • Quote

Post by Gatsby » Sat Mar 27, 2021 8:34 pm

Ionen wrote:...no reason to think about this right now.
Right now is the time to think about it, we should be prepared ,when the shit hits the fan. As williamh is a guy with Trump-esque character, it is better to believe him, when he announces more evil actions.
"Its your Gentoo, your way. When it breaks, you can keep all the pieces."
-- NeddySeagoon@forums.gentoo.org
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Mar 27, 2021 9:12 pm

The last thread about this got locked because it degenerated into arguments about williamh's past conduct. Please refrain from pointed characterizations of how you think he will act. Even if you have good support for them (which was not shown above), they are not appropriate here. I'd like this thread to keep going on the technical side of things. You're welcome to argue that we should prepare for, and consider the downsides of, usrmerge. I'd like to see arguments for/against that.
Top
Leonardo.b
Guru
Guru
Posts: 314
Joined: Sat Oct 10, 2020 9:24 pm

  • Quote

Post by Leonardo.b » Sat Mar 27, 2021 10:50 pm

So, I removed baselayout from @system.
Many configuration files previously stored in /etc have gone, so I had to restore them from a backup.
Many of them are files meant to stay immutated for much times, so I don't expect troubles from them.

On future major profile upgrades, probably I will have to keep the pieces.
In the short term, everything is working.


Leonardo
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sat Mar 27, 2021 10:52 pm

Leonardo.b wrote:So, I removed baselayout from @system.
A pointless exercise.
Top
Leonardo.b
Guru
Guru
Posts: 314
Joined: Sat Oct 10, 2020 9:24 pm

  • Quote

Post by Leonardo.b » Sat Mar 27, 2021 11:09 pm

I was curious to understand if /bin and everything else would have been removed while removing "baselayout".
More an experiment, let's say. But probably it's exactly the same thing.
Top
Tony0945
Watchman
Watchman
Posts: 5127
Joined: Tue Jul 25, 2006 12:19 am
Location: Illinois, USA

  • Quote

Post by Tony0945 » Sat Mar 27, 2021 11:19 pm

mask in one of the ways I suggested. Then, even if you want the changes, they will not slip in amid a 300 file python emerge.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2111
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Sat Nov 26, 2022 3:07 pm

Ionen wrote:"if" (big if) this was to go forward there would be both a news item and most likely new profiles intended to work with it similarly to what happened with lib32, and then "if" deprecation+removal of old profiles happen it would likely take a few years (17.0 is even still there despite deprecated), no reason to think about this right now.
I guess there is a reason to think about it now :P
https://archives.gentoo.org/gentoo-dev/ ... 363b095bb6
In the latter half of 2023, systemd will drop support for split-usr/unmerged-usr systems [1]. All Gentoo systems running systemd will need to be migrated to merged-usr.
https://lists.freedesktop.org/archives/ ... 48352.html
As far as we understand there are no distributions running or optionally supporting systemd that have not either completed, or at least started, the transition to merged-usr systems.
Hmm, how about Gentoo with OpenRC and sys-apps/systemd-utils?

sys-apps/systemd-utils/systemd-utils-251.8-r1.ebuild

Code: Select all

multilib_src_configure() {
	local emesonargs=(
		$(meson_use split-usr)
		$(meson_use split-usr split-bin)
		-Drootprefix="$(usex split-usr "${EPREFIX:-/}" "${EPREFIX}/usr")"
		# ...
}
Patching time ahead?
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Nov 26, 2022 4:20 pm

Gentoo is not a distribution. It is a meta-distribution. Therefore, we don't count when upstream considers whether to push through changes like this.
Top
gcyoung
Apprentice
Apprentice
Posts: 179
Joined: Wed Jul 04, 2007 11:05 am
Location: England

  • Quote

Post by gcyoung » Mon Dec 05, 2022 6:32 pm

I followed the procedure listed in the news item. /root directories as listed moved to /usr and symlinks have been
created. Profile registered as "systemd/merged-user". BUT ..... I can no longer "emerge" anything. I just get 'econf failed'
and "emake failed" messages. Otherwise the machine functions normally.

I should mention that I have a Ryzen processor on this machine. I have a second machine with
an Intel processor, and that did all intended with no problems.

Is there a simple answer? Or is more information required to get a soloution.

****
Later:--I seem to have created the problem myself. See my next post.
Last edited by gcyoung on Tue Dec 06, 2022 12:32 am, edited 1 time in total.
Top
gcyoung
Apprentice
Apprentice
Posts: 179
Joined: Wed Jul 04, 2007 11:05 am
Location: England

  • Quote

Post by gcyoung » Mon Dec 05, 2022 11:34 pm

The problem seems to have been of my own making. the merges were failing because of
an error in my make.conf file. I had unwittingly opened up an old setting for LD_FLAGS.
Hopefully my previous post can be removed to avoid any misunderstandings?
Top
pietinger
Moderator
Moderator
Posts: 6615
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Mon Dec 05, 2022 11:37 pm

gcyoung wrote:Hopefully my previous post can be removed to avoid any misunderstandings?
We dont want to remove posts, but you can edit your own post and maybe add a comment a la "see next post" ;-)
Top
Post Reply
  • Print view

39 posts
  • Previous
  • 1
  • 2

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy