R0b0t1 Apprentice
Joined: 05 Jun 2008 Posts: 264
|
Posted: Fri Feb 17, 2017 8:47 pm Post subject: Programs that require code execution for configuration. |
|
|
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. |
|