From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 274B41382C5 for ; Sun, 21 Mar 2021 19:22:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71F38E0849; Sun, 21 Mar 2021 19:22:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3611FE0839 for ; Sun, 21 Mar 2021 19:22:19 +0000 (UTC) Received: (nullmailer pid 1698 invoked by uid 1000); Sun, 21 Mar 2021 19:22:15 -0000 Date: Sun, 21 Mar 2021 14:22:15 -0500 From: William Hubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: usrmerge script Message-ID: Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <87wnu02xr2.fsf@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n9sb7GP8RApdLpBG" Content-Disposition: inline In-Reply-To: <87wnu02xr2.fsf@gentoo.org> X-Archives-Salt: fdb50c04-c667-445f-95d6-640de4a0ef4b X-Archives-Hash: fbb829aec2d801219389315519aeb892 --n9sb7GP8RApdLpBG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 21, 2021 at 01:00:01PM -0500, Matthias Maier wrote: > Hi William, >=20 > I have migrated my system to a merged /usr a while ago. >=20 > In addition to moving everything to /usr and setting up symlinks, the > main thing I had to do was to set up a /etc/portage/bashrc hook for > post_src_install() that would move everything into /usr. >=20 > Do we have native support in portage for this now? =46rom what I know, you don't need that hook. The ebuilds handle this now by using the split-usr use flag, so if you add this to /etc/portage/make.conf you should be ok. USE=3D"${USE} -split-usr" Let me know if that isn't the case. I'm not exactly sure what portage will do without your hook though. What happens if you remove your hook then some ebuild tries to install something in /bin for example? I would argue that, if /bin resolves to a path, portage should just follow the symlink and install where the symlink points. I base this argument on the return of `test -d` for this situation. ``` $ ln -s /usr/bin foo $ [ -d foo ] && echo "foo is a path" ``` Thanks, William --n9sb7GP8RApdLpBG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQTVeuxEZo4uUHOkQAluVBb0MMRlOAUCYFec4gAKCRBuVBb0MMRl OJkzAKClqv+GfcjyweDWdSdzL9oPFMaB+gCeOtvLOniQ5eG4a6+OUxdjwiz0Fx8= =2AIV -----END PGP SIGNATURE----- --n9sb7GP8RApdLpBG--