On Tuesday 21 Feb 2017 00:22:51 Neil Bothwick wrote:
> On Mon, 20 Feb 2017 18:34:47 -0500, Walter Dnes wrote:
> >   Reading https://wiki.gentoo.org/wiki/Binary_package_guide still leaves
> > 
> > me uncertain.  I have an ancient 32-bit Atom netbook.  I've installed
> > uclibc-ng Gentoo on it.  Building big packages on it is a pain.  I can
> > do an identical install in a QEMU VM, and distcc into it.  But that
> > doesn't catch all compiling work.
> > 
> >   What I'd like to do is build binaries in a chroot on my desktop,
> > 
> > assuming a 32-bit uclibc-ng chroot on a 64-bit glibc host is possible.
> > Because the cpus are different, I would need to use different CFLAGS
> > (and CXXFLAGS) variables for when the host updates its own files, versus
> > when it builds files for the netbook.
> 
> If the chroot is identical to your netbooks's install in terms of
> *FLAGS, USE, @world etc, then yes. I used to do it this way when I had an
> Atom netbook. I even build for a low memory 486 system in the same way.

You'll need to run in 32bit mode when chrooting of course:

linux32 chroot /mnt/Atom_Build_env /bin/bash
source /etc/profile
export PS1="(Atom_Build) $PS1"


> >   Finally, is it possible for the client (the netbook) to notify the
> > 
> > host that it needs certain packages built?  I plan to run with
> > "--getbinpkgonly" on the netbook.
> 
> You don't need to if the systems are the same. Set both systems to use
> the same $PKGDIR, set FEATURES=buildpkg in the chroot and do a world
> update. Then do the same update on the netbook but with -K.
> 
> I used a script to control this that basically synced world and most
> of /etc/portage before entering the chroot, although I later switched to
> using containers as they make life so much easier.
> 
> Oh, and you don't need a package server, just export PKGDIR via NFS and
> mount it on the netbook.

Or, if you can't be bothered with the extra work to set up NFS, copy the 
contents of the PKGDIR from the chroot'ed system to the Atom after you 
finished building all the chroot'ed binary packages, then emerge world in the 
Atom.
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to