1 |
On Thu, 2018-01-25 at 18:48 +0200, Mart Raudsepp wrote: |
2 |
> On Thu, 2018-01-25 at 01:16 +0200, Nikos Chantziaras wrote: |
3 |
> > One user wants Gnome, the other wants Plasma. Is this doable? |
4 |
> > |
5 |
> > Currently, Plasma is installed, and the profile is: |
6 |
> > |
7 |
> > default/linux/amd64/17.0/desktop/plasma/systemd |
8 |
> > |
9 |
> > The profiles seem to be either-or. There's one for plasma, one for |
10 |
> > gnome. But I need both now :-/ |
11 |
> |
12 |
> They just provide ease of installation by enabling some USE flags |
13 |
> globally or per-package for you, to avoid having to add them manually |
14 |
> on a fresh install or so. |
15 |
> |
16 |
> You can create a local mix-in by having /etc/portage/make.profile as |
17 |
> a |
18 |
> directory with an eapi and parent file, but that has some caveats, so |
19 |
> given that I leave the details to find out elsewhere when desired. |
20 |
> Or you can just use one and add the stuff for the other manually, |
21 |
> verbatim or as-needed. |
22 |
> What they do can be seen in |
23 |
> profiles/targets/desktop/gnome |
24 |
> profiles/targets/desktop/plasma |
25 |
> subdirectories of your PORTDIR (probably /usr/portage/) |
26 |
> |
27 |
> The global USE flags each adds are in make.defaults file and the per- |
28 |
> package USE flag tweaks are in package.use files. |
29 |
> |
30 |
> So you could for example keep using the systemd plasma profile, add |
31 |
> the |
32 |
> global USE flags from |
33 |
> /usr/portage/profiles/targets/desktop/gnome/make.defaults to your |
34 |
> make.conf and symlink |
35 |
> /usr/portage/profiles/targets/desktop/gnome/package.use to a |
36 |
> gnome.use |
37 |
> file under /etc/portage/package.use/ directory or so and voilà, you |
38 |
> got |
39 |
> effectively both. |
40 |
|
41 |
That said, the global USE flag manual copy to make.conf might get |
42 |
outdated; e.g. we plan to add USE=wayland as global default to gnome |
43 |
profile at some point soon(tm). Though make.defaults could be symlinked |
44 |
as well, I think to /etc/portage/profile/make.defaults |
45 |
Though these changes are rare, and it's a convenience anyways, e.g. you |
46 |
might have decided to globally enable wayland earlier already; or once |
47 |
the change is made you might counter it with a global disable in |
48 |
make.conf anyways. |