Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Programs that require code execution for configuration.
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
R0b0t1
Apprentice
Apprentice


Joined: 05 Jun 2008
Posts: 264

PostPosted: Fri Feb 17, 2017 8:47 pm    Post subject: Programs that require code execution for configuration. Reply with quote

Hello,

I've recently been trying to create binary packages for my Raspberry Pi 3. I've succeeded except with some major packages, like xorg-server (due to libxcb failing to find a python installation) and GCC (strange errors in the source code).

There are also other programs that try to run code as part of their configuration phase. Personally I see this as a design flaw as that information should be obtained from the user or some other interface, but that doesn't change the fact there are packages which try to do this. I'm wondering if it would be possible to somehow automatically wrap attempts to execute cross-compiled code so that one of the following happens:
  • The code is compiled with one of the host's compilers and run, which may produce an incorrect configuration, or,
  • the code is somehow executed with qemu-<arch>-user.

Is this at all feasible? Is there another way? At this point I've had so much trouble with certain packages it seems like I will need to resort to self-hosting a number of very large packages. It's reported that GCC takes ~12hr to compile; xorg-server and related dependencies may take even longer.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1658

PostPosted: Tue Feb 21, 2017 6:22 pm    Post subject: Reply with quote

I believe you answer is here:
https://wiki.gentoo.org/wiki/Cross_build_environment
_________________
Donate to Gentoo
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