Changing profiles (eselect profile)

Anything that pertains to Portage

Moderator: Moderators

bugmenot-5
Young Hen
Posts: 26
Joined: Sun Jul 13, 2008 6:50

Changing profiles (eselect profile)

Post by bugmenot-5 » Tue Jan 16, 2018 23:54

Hi. Got Sabayon 16.11 to run in a laptop. But I am trying to install the canonical appmenu functionality for the mate desktop. For that you follow this tutorial to install Unity on gentoo, following only the parts needed to get vala-panel-appmenu (the applet portion) and the unity-gtk(2/3)-module parts (the backends to get the funcionality running on gtk2 and gtk3 apps, appmenu-qt (for qt4 apps, qt5 have the function built-in) and firefox (the modded version with the ubuntu modifications to use the appmenu function, the native firefox can't use appmenu). But I am running into an issue here. To install those parts you need to change the profile to one of the profiles added by the overlay, normally you would do eselect profile set <unity-gentoo-profile-number> and update @world, but updating @world (or @system for that matter) won't work due to the modifications the portage system have in Sabayon. With that my question is. How do you change portage profile in Sabayon (needed because the packages on unity-gentoo overlay check for the selected profile and bail out during pre-install if the profile isn't one of the unity-gentoo ones)? Or if it cannot be done. Is there any repo or alternate overlay carrying the pieces of unity needed to activate the canonical appmenu functionality on Sabayon?

bugmenot-5
Young Hen
Posts: 26
Joined: Sun Jul 13, 2008 6:50

Re: Changing profiles (eselect profile)

Post by bugmenot-5 » Wed Jan 17, 2018 0:32


User avatar
sabayonino
Sagely Hen
Posts: 3233
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Changing profiles (eselect profile)

Post by sabayonino » Wed Jan 17, 2018 11:59

Don't touch the profile and ignore the warnings
It makes very deep changes to the system if you run portage.
Sabayon doesn't support this.
Let the devs work for this .

For your request file a bug/request to the SCR repository devs
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

bugmenot-5
Young Hen
Posts: 26
Joined: Sun Jul 13, 2008 6:50

Re: Changing profiles (eselect profile)

Post by bugmenot-5 » Thu Jan 18, 2018 1:30

The issue is that you can't install those packages at all. The overlay doesn't use an ignorable warning and continue installing. It is is coded to flat out refuse to install if the profile isn't one of the unity-gentoo ones.

User avatar
sabayonino
Sagely Hen
Posts: 3233
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Changing profiles (eselect profile)

Post by sabayonino » Thu Jan 18, 2018 13:13

Sabayon devs haven't yet changed the profile
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

gentmixer
Simple Hen
Posts: 60
Joined: Wed Jan 17, 2018 17:21

Re: Changing profiles (eselect profile)

Post by gentmixer » Thu Jan 18, 2018 17:24

Hi,
I have a bit mixed system so very similar problem too... What is the difference between new and old profiles: "default/linux/amd64/13.0/desktop" and "default/linux/amd64/17.0/desktop" (in my case)? The new profile use "+pie" flag , previously used for "hardened" profiles only. "PIE" means "position independent executables", protection against executing of malicious code in compiling. Read: https://forums.gentoo.org/viewtopic-t-1 ... t-175.html thread and solution of the problem by the user nicknamed "tid"... I solved it similarly, added "-pie" to the new profile globally and left "+pie" in few cases ("ssh" and "pam") only. You may change your system profile temporarily after these changes. Don't upgrade the"world"! "Emerge" will accept your "new old" profile... Remember, after "equo update" your profile will change automatically. Use "eselect profile" very scrupulously... Check your profile before and after compiling or updating. Don't compile the newest version of packages (9999 for example)... Remember, you may use more slots for many important packages...You may compile newer GCC than in Sabayon for example.
No guarantee of course. Good luck... We also will wait for our DEVS decisions. Maybe mixing will be easier in a few months.
Last edited by gentmixer on Thu Jan 25, 2018 23:15, edited 1 time in total.

gentmixer
Simple Hen
Posts: 60
Joined: Wed Jan 17, 2018 17:21

Re: Changing profiles (eselect profile)

Post by gentmixer » Thu Jan 18, 2018 17:49

Use version Portage from Sabayon, never ever from Gentoo...

User avatar
sabayonino
Sagely Hen
Posts: 3233
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Changing profiles (eselect profile)

Post by sabayonino » Thu Jan 18, 2018 22:31

GCC was migrated from 4.9 to 5.4 series . (Sabayon)
New profile required (safetely) gcc 6.x
gcc 5.4 can be used but there are several flags to setup (gentoo)
GCC can't be slotted (Sabayon)
2017-11-30-new-17-profiles
Title New 17.0 profiles in the Gentoo repository
Author Andreas K. Hüttel <[email protected]>
Posted 2017-11-30
Revision 1

We have just added (for all arches except arm and mips, these follow
later) a new set of profiles with release version 17.0 to the Gentoo
repository. These bring three changes:
1) The default C++ language version for applications is now C++14.
This change is mostly relevant to Gentoo developers. It also
means, however, that compilers earlier than GCC 6 are masked
and not supported for use as a system compiler anymore. Feel
free to unmask them if you need them for specific applications.
2) Where supported, GCC will now build position-independent
executables (PIE) by default. This improves the overall
security fingerprint. The switch from non-PIE to PIE binaries,
however, requires some steps by users, as detailed below.
3) Up to now, hardened profiles were separate from the default
profile tree. Now they are moving into the 17.0 profile
as a feature there, similar to "no-multilib" and "systemd".

Please migrate away from the 13.0 profiles within the six weeks after
GCC 6.4.0 has been stabilized on your architecture. The 13.0 profiles
will be deprecated then and removed in half a year.

If you are not already running a hardened setup with PIE enabled, then
switching the profile involves the following steps:
If not already done,
* Use gcc-config to select gcc-6.4.0 or later as system compiler
* Re-source /etc/profile:
. /etc/profile
* Re-emerge libtool
emerge -1 sys-devel/libtool
Then,
* Select the new profile with eselect
* Re-emerge, in this sequence, gcc, binutils, and glibc
emerge -1 sys-devel/gcc:6.4.0
emerge -1 sys-devel/binutils
emerge -1 sys-libs/glibc
* Rebuild your entire system
emerge -e @world

Switching the profile from 13.0 to 17.0 modifies the settings of
GCC 6 to generate PIE executables by default; thus, you need to do
the rebuilds even if you have already used GCC 6 beforehand.
If you do not follow these steps you may get spurious build
failures when the linker tries unsuccessfully to combine non-PIE
and PIE code.
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

gentmixer
Simple Hen
Posts: 60
Joined: Wed Jan 17, 2018 17:21

Re: Changing profiles (eselect profile)

Post by gentmixer » Fri Jan 19, 2018 0:06

Hi, Sabayonino...
I red this notation by Andreas K. Huettel before... Set the profile (17.0) to "-pie" before compiling GCC and you will compile GCC without "pie" and all packages after will be compiled with "-pie", exactly like in our Sabayon at this moment. The "emerge" will work normally. The profile number in Gentoo is formal designation only... I have compiled GCC-6.4 with "-pie"... If our DEVS will change the profile in Sabayon to the "+pie" we will install the new packages from Sabayon repos overwriting gradually packages compiled in a Gentoo way (but with "-pie"). Then we will change general setting of the profile without upgrading the "world" (the command: "emerge -e @world" is not required) ... At this moment there is no the flag "pie" used in compiling binaries of Sabayon at all (positive or negative)... (The kernel is a different matter.)
Last edited by gentmixer on Thu Mar 01, 2018 20:38, edited 2 times in total.

User avatar
sabayonino
Sagely Hen
Posts: 3233
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Changing profiles (eselect profile)

Post by sabayonino » Fri Jan 19, 2018 0:39

Just you can wait...
There are no specific dates or plans for the change of profile at this time, certainly sabayon-devs will be taken care of in the near future.
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

Post Reply