Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recommendations needed multilib desktop profiles ABI_X86
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Cuong Nguyen
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2018
Posts: 148

PostPosted: Mon Jun 15, 2020 2:28 pm    Post subject: Recommendations needed multilib desktop profiles ABI_X86 Reply with quote

I need recommendations on what is best practice of using multilib desktop profiles:
  • ABI_X86="32 64" or
  • ABI_X86="64" with manually added abi_x86_32 to those packages need 32-bit binaries

Most of packages now are capable of 64-bit. Is there any list of 32-bit only packages I can refer to? There are only wine and skype of pure 32-bit only application, if I am correct.
In case I dont need any 32-bit app, should I use no-multilib profiles?
Thank you,
Back to top
View user's profile Send private message
Banana
l33t
l33t


Joined: 21 May 2004
Posts: 693
Location: Germany

PostPosted: Mon Jun 15, 2020 2:42 pm    Post subject: Reply with quote

multilib -> no-multilib = can be done.
no-multilib -> multilib = a reinstall is easier and faster. So no.

If you are unsure stick to multilib and a desktop profile. For it you do not need any ABI settings (I did not need them yet with a multilib desktop profile).

If you are sure about the software you need and know that those are 64bit only and know what your are getting, you can use a no-multilib profile. But this comes also with no desktop profile which sets usefull useflags
_________________
My personal space
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7799
Location: Saint Amant, Acadiana

PostPosted: Mon Jun 15, 2020 3:38 pm    Post subject: Reply with quote

FYI, I hear Skype is pure 64 bit application. Not sure why Wine would need 32 bit. You may be better off switching to no-multilib and getting rid of all that complexity.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
GDH-gentoo
Guru
Guru


Joined: 20 Jul 2019
Posts: 546
Location: South America

PostPosted: Mon Jun 15, 2020 6:19 pm    Post subject: Re: Recommendations needed multilib desktop profiles ABI_X86 Reply with quote

Cuong Nguyen wrote:
I need recommendations on what is best practice of using multilib desktop profiles:
  • ABI_X86="32 64" or
  • ABI_X86="64" with manually added abi_x86_32 to those packages need 32-bit binaries
The first one is easy, but generally results in a waste of disk space and compile time. The latter is the efficient one, but getting the right list of packages requires studying dependencies, or some rounds of emerge error messages telling you what packages need abi_x86_32 set. Personally, if I had the need, I'd go with the second one.

Cuong Nguyen wrote:
In case I dont need any 32-bit app, should I use no-multilib profiles?
Since ABI_X86="64" is the profile default even for multilib amd64 ones, IMO it doesn't matter much. The most relevant differences are:
  • no-multilib masks the abi_x86_32 and multilib USE flags (the latter of which is only used by sys-devel/gcc and sys-libs/glibc), and hides the ABI_X86 USE_EXPAND variable from Portage's output.
  • multilib forces the multilib USE flag for sys-devel/gcc and sys-libs/glibc, and the abi_x86_32 USE flag for sys-apps/sandbox. Therefore, with profile defaults, only those 3 packages would have 32-bit libraries anyway.
Back to top
View user's profile Send private message
Cuong Nguyen
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2018
Posts: 148

PostPosted: Tue Jun 16, 2020 12:33 am    Post subject: Re: Recommendations needed multilib desktop profiles ABI_X86 Reply with quote

GDH-gentoo wrote:
Cuong Nguyen wrote:
I need recommendations on what is best practice of using multilib desktop profiles:
  • ABI_X86="32 64" or
  • ABI_X86="64" with manually added abi_x86_32 to those packages need 32-bit binaries
The first one is easy, but generally results in a waste of disk space and compile time. The latter is the efficient one, but getting the right list of packages requires studying dependencies, or some rounds of emerge error messages telling you what packages need abi_x86_32 set. Personally, if I had the need, I'd go with the second one.

Cuong Nguyen wrote:
In case I dont need any 32-bit app, should I use no-multilib profiles?
Since ABI_X86="64" is the profile default even for multilib amd64 ones, IMO it doesn't matter much. The most relevant differences are:
  • no-multilib masks the abi_x86_32 and multilib USE flags (the latter of which is only used by sys-devel/gcc and sys-libs/glibc), and hides the ABI_X86 USE_EXPAND variable from Portage's output.
  • multilib forces the multilib USE flag for sys-devel/gcc and sys-libs/glibc, and the abi_x86_32 USE flag for sys-apps/sandbox. Therefore, with profile defaults, only those 3 packages would have 32-bit libraries anyway.

Thank you. I've tested some Gentoo derivatives like Sabayon, Calculate, Pentoo and I will go for option 2 as multilib is needed as safe choice if 32-bit will be the need in the future. All tested distros more or less follow one-size-fit-all principle so all they are of muiltilib profile. Sabayon and Pentoo set ABI_X86="32 64" as default and let portage produces both 32- and 64-bit libraries. Calculate set ABI_X86="64" with explicitly abi_x86_32 use-flags in package.use/abi_x86_32 in profiles settings.

I got some errors when compiling sandbox and net-fs/samba with abi_x86_32 so I masked abi_x86_32 for those packages. I never tried samba in runtime and dont know why it need 32-bit mode.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum