Gentoo Archives: gentoo-dev

From: Jonathan Callen <jcallen@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Making a common sub-profile for no-multilib
Date: Wed, 02 Jul 2014 23:07:09
Message-Id: 53B49093.5070303@gentoo.org
In Reply to: [gentoo-dev] Re: Making a common sub-profile for no-multilib by Duncan <1i5t5.duncan@cox.net>
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA512
3
4 On 07/02/2014 02:14 PM, Duncan wrote:
5 > Rich Freeman posted on Wed, 02 Jul 2014 09:30:50 -0400 as
6 > excerpted:
7 >
8 >> Some things to think about include multilib (just another
9 >> arch?), systemd, and usr-merge. I'm not saying that we need to
10 >> implement any of that stuff completely - but when planning the
11 >> profile layout we should at least consider whether it will handle
12 >> things like this in the future. Should some types of profiles be
13 >> only additive? Etc...
14 >
15 > FWIW, systemd with merge to / (/usr being a symlink to . and sbin
16 > to bin) here. In particular, the merge "just works" with current
17 > portage. I'm no-multilib.
18 >
19
20 That merge only works because you happened to get lucky, and have
21 portage merge coreutils in a particular manner (/usr/bin/uname
22 installed before /bin/uname). If portage had installed /bin/uname
23 first, you would have ended up with a /bin/uname symlink pointing to
24 /bin/uname. The same is also true of basename, chroot, cut, dir,
25 dirname, du, env, expr, head, mkfifo, mktemp, readlink, seq, sleep,
26 sort, tail, touch, tr, tty, vdir, wc, and yes.
27
28 I myself am currently running a system with the opposite merge (/bin,
29 /lib, /lib64, and /sbin are symlinks to /usr/bin, /usr/lib,
30 /usr/lib64, and /usr/sbin) although I do not yet have the sbin -> bin
31 merge yet. I added a post_src_install and post_pkg_preinst hook in my
32 /etc/portage/bashrc to ensure that there are no conflicts before the
33 package is merged and a pre_pkg_setup hook to disarm gen_usr_ldscript
34 (so as not to create a conflict).
35
36 The only two packages I have installed that I had to modify to make
37 this work were coreutils (as noted above) and plymouth.
38
39 - --
40 Jonathan Callen
41 -----BEGIN PGP SIGNATURE-----
42 Version: GnuPG v2
43 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
44
45 iQIcBAEBCgAGBQJTtJCTAAoJELHSF2kinlg41W0P/19TAJErj3y7eMFGJG2BMVIM
46 TtAj2wM+whB0Md1+TGypFS0ESO+hJAxNyyuIT215afRIqZJgYjZG5NZCnmygI71t
47 9das1k2JHn+PRO5KSZcw3Z3VcpspzADTwR+avaxiqRuslzyTvAYrsPj+7oQd6iDp
48 4XzDKFSEh2hNJHUQUQ3eT5NxlJNQu9uxKLc4aM+1/GImlSAVbbiKHUHWy3njSVWN
49 twFkQJ59IHod9aZgn0txydd9hhMr43Et6uDJywjGuIeVQncAO/eBvT9hRE5tB3aN
50 x/pd1Dcf0V5FTN/459kcoRwTBQ2k3quhGJBeSSGLUwNlTjdOWDbqU5HcgOf0d7v4
51 NXMIOr95ung3LgeqCyZU5S4XTyoh9w/nZRXuSTYL0sQL3IxffLRkVPcvis02cY6a
52 jZaSAwkVkPhyAGkV0QxMsfhEP9+2wdtB7JMc28kslO0kGpdV5Oa8ES+QqnwVXgi7
53 umB+5D4IjTDK6uPcM5K5p+8wKWcsFMvn5X/+3Fh49S6KDiWZRsjq45pHC7+5lC0p
54 S8EJb8XybieRvQsVGo8NfgucvRQFbeUn+BaUfztoNRvKG3NxsnxRJ+JycK9bi1pj
55 znu7YKmCZMmt8PurliQPKQ6vtPjFQK19gZZf72zTVBycc2hdaKnbowAV0rBgTETN
56 +8xryIRBNfISkUIjEip/
57 =Muzz
58 -----END PGP SIGNATURE-----

Replies

Subject Author
[gentoo-dev] Re: Making a common sub-profile for no-multilib Duncan <1i5t5.duncan@×××.net>