View previous topic :: View next topic |
Author |
Message |
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun Aug 24, 2014 9:18 am Post subject: 2 binary server on the same machine (x86 vs ARM) |
|
|
Hello,
I have already setup a binary server for my x86 machines.
Now, I would like to created a second one for ARM hosts ... but how ?
I mean, it looks to me I need 2 differents make.conf, but is playing with emerge's PORTAGE_CONFIGROOT enough ?
Can I share the same ebuild tree PORTDIR, temp dir PORTAGE_TMPDIR ? (stating I'll not update both binhost at the same time).
I think also I have to specify an alternative place for ARM packages PKGDIR, right ?
Well, all in all, am I in the right direction ?
Laurent |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54421 Location: 56N 3W
|
Posted: Sun Aug 24, 2014 9:52 am Post subject: |
|
|
destroyedlolo,
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun Aug 24, 2014 11:51 am Post subject: |
|
|
Yes, it's done, now it's a question of avoiding any local compilation |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54421 Location: 56N 3W
|
Posted: Sun Aug 24, 2014 12:04 pm Post subject: |
|
|
destroyedlolo,
You can't avoid local compilation. Some packages (e.g. python and perl) build some code, then try to run it on the build host.
Also gcc must build locally.
The best all round solution is cross distcc running in pump mode.
On the ARM box (in my case a Raspberry Pi) you run Code: | pump emerge -uDNav @world | and my AMD64 does most of the hard work. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21856
|
Posted: Sun Aug 24, 2014 3:54 pm Post subject: |
|
|
You need separate directories for any directory which receives target-specific files. At a minimum, this includes PORTAGE_TMPDIR and PKGDIR. You can share PORTDIR and DISTDIR. |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Sun Aug 24, 2014 8:27 pm Post subject: |
|
|
Thanks Hu for your tips,
NeddySeagoon wrote: | You can't avoid local compilation. Some packages (e.g. python and perl) build some code, then try to run it on the build host.
Also gcc must build locally.
|
I'll see : it will be my first "cross compiled" bin host
Anyway, I'll run the system from sata disk and, as you said, distcc will be my friend. |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Wed Sep 10, 2014 8:06 pm Post subject: |
|
|
Well, I thought about it : for me (but I be wrong), I need to totally duplicate the ARM system on my BINHOST ... which unfortunately doesn't have enough disk space.
On this other hand, the Banana is fast enough for doing local emerging (with help of Distcc) so I give up for the moment |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54421 Location: 56N 3W
|
Posted: Wed Sep 10, 2014 8:22 pm Post subject: |
|
|
destroyedlolo,
You can and should share /usr/portage (just the tree) and /usr/portage/distfiles (the sources)
You must make /usp/portage/packages arch specific. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
destroyedlolo l33t
Joined: 17 Jun 2011 Posts: 846 Location: Close to Annecy (France)
|
Posted: Thu Sep 11, 2014 12:03 am Post subject: |
|
|
Well, I found explaining what I was missing Cross-Compiling With Portage
So I did
Code: | emerge-wrapper --target armv7a-hardfloat-linux-gnueabi --init |
and fill etc/portage/* stuffs from my bPI one.
Great.
But I missed something about profile as emerge is complaining about :
Quote: | * ARCH is not set... Are you missing the '/usr/armv7a-hardfloat-linux-
* gnueabi/etc/portage/make.profile' symlink? Is the symlink correct? Is
* your portage tree complete?
|
Any tips to solve that ?
[edited] Missed the symlink ... compiling [/edited] |
|
Back to top |
|
|
|