Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to ebuild 32-bit software in a 64-bit system?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Tue Nov 13, 2018 2:06 pm    Post subject: How to ebuild 32-bit software in a 64-bit system? Reply with quote

I have software that doesn't support 64-bit. My profile has multilib capability, so plenty of libraries are build for for both 32-bit and 64-bit environments. And I need to build application binary that would be 32-bit only. So how could I define an ebuild that would build 32-bit application specifically?
Back to top
View user's profile Send private message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 686
Location: Winnipeg, Canada

PostPosted: Tue Nov 13, 2018 3:11 pm    Post subject: Reply with quote

You may be interested in investigating how the ABI portage use flags function.

https://wiki.gentoo.org/wiki/Project:Multilib/Concepts#Multilib_ABI_USE_flags

To provide a relevant example if I was the administrator of an amd64 gentoo install that was reasonably new or a gentoo install that had never had any 32 bit applications or application dependencies installed there are perhaps two general approaches to instructing portage to build 32 bit binaries and 32 bit dependencies.

One is to whitelist the entire 32 bit ABI alongside 64 bit by defining

Code:
ABI_X86="64 32"


in make.conf

This can have advantages such as reducing the maintenance required to maintain "use flag feature bloat" in package.use and package.keywords which can later become very challenging to maintain due to package dependency changes occurring in portage ebuilds.


The other of two general methods is used is defining per package specific abi use flags. If you only need a few abi32 packages the per package approach may be more desirable but can eventually become a burden to maintain.


With that mentioned just having used a "multilib" install stage and profile alone does not attend to the added details of defining abi32 package useflags and understanding the ABI= functionality is necessary for creating "multilib capable" ebuilds. multilib stages and profiles provide only base toolchain support for building 32 bit abi software packages.
_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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