public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64]  Re: Installing into a 32-bit chroot?
Date: Sun, 04 Sep 2005 14:14:33 -0700	[thread overview]
Message-ID: <pan.2005.09.04.21.14.33.173912@cox.net> (raw)
In-Reply-To: 200509041702.07690.prh@gotadsl.co.uk

Peter Humphrey posted <200509041702.07690.prh@gotadsl.co.uk>, excerpted
below,  on Sun, 04 Sep 2005 17:02:07 +0100:

> I'd like to see if I can install gambas into my 32-bit chroot jail. It's
> masked out of everything but vanilla x86 systems, which I think is what I
> have in /mnt/gentoo32 (the chroot jail).
> 
> Using emerge to install gambas brings all sorts of other things, including
> a duplicate xorg-x11 installation, which seems a bit excessive to me. How
> do I go about emerging into /mnt/gentoo32 with full X functionality etc,
> but without all the baggage? Perhaps someone's already done this and can
> advise me.
> 
> I don't really understand properly how chroots work, and in particular
> whether it's possible to install, e.g., gambas in /mnt/gentoo32 and have
> it use libraries etc. elsewhere. Or do I really have to install a
> virtually complete gentoo 32-bit system to enable it to work?

I don't really know what that is, but esearch says "a RAD tool for BASIC".
Is it X based?  If so, you'll need the 32-bit xlibs and whatever else it
needs, withh appropriate headers, accessible from the 32-bit chroot so it
(or whatever dependencies it has) can compile against them.

The 32-bit chroot stuff in the technotes explain a bit about how to set it
up and what you can remount in your chroot and what not.  The
compatibility packages do contain the 32-bit xlibs in binary form, but I'm
not sure they have all the headers and the like for you to actually
compile against.  Thus, I'm not sure whether you have to compile X in the
chroot or whether you can short-circuit that by making the binary compat
packages available in the chroot.  Do note, in any case, that the compat
packages aren't all that optimized, so you might be better off compiling x
in 32-bit anyway, if just to get the optimized libs.

Here's how all that works in terms of X.  You'll be running the 64-bit
X-server.  That's fine.  32-bit stuff can connect to it.  However, you
can't mix 32-bit and 64-bit executables and libraries.  You can't load
64-bit X client-libs into your 32-bit X-client app.  That just doesn't
work, for the same reason you can't load 32-bit codecs in a 64-bit mplayer
or 32-bit plugins in a 64-bit browser (tho konqueror has a plugin proxy
that does the job).  As I said, the 32-bit binary compatibility libs do
contain the necessary X client-libs.  However, they may not contain the
headers necessarily to actually compile against them, thus being useful
for 32-bit precompiled stuff only.

So... for now, you'll likely have to compile all of X in 32-bit mode as
well.

FWIW, that's going to change with xorg-7.0, the modular-X now under
development (there's an -rc in portage, hard-masked for testing). 
Upstream is splitting the monolithic package into a rather large number of
component modules, and Gentoo is doing likewise.  When it's all done,
packages won't depend on X, but on the specific X-modules they need, the
client-libs for most X client-apps, and specific other modules as needed. 
Thus, most folks will be able to avoid compiling at least all the extra
drivers for hardware they don't have, and in cases like this, only the
bare minimum necessary packages would be compiled to fill the
dependencies, likely only xlib.

Back to the now.  If gambas isn't an X app, the dependency may be down the
dependency chain a bit.  It's  possible you could avoid it by tweaking
your 32-bit chroot USE flags.  You'll probably want them fairly minimal,
anyway, certainly in the 32-bit make.conf, and make use of  package.use to
turn on specific flags where you /do/ want them.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html


-- 
gentoo-amd64@gentoo.org mailing list



  reply	other threads:[~2005-09-04 21:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-04 16:02 [gentoo-amd64] Installing into a 32-bit chroot? Peter Humphrey
2005-09-04 21:14 ` Duncan [this message]
2005-09-06 20:14   ` [gentoo-amd64] " Tres Melton
2005-09-07  8:00     ` Peter Humphrey
2005-09-07 14:09     ` Billy Holmes
2005-09-05  1:56 ` [gentoo-amd64] " David Fellows
2005-09-05  3:08   ` Barry.SCHWARTZ

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pan.2005.09.04.21.14.33.173912@cox.net \
    --to=1i5t5.duncan@cox.net \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox