Re: Cross-compilers.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Axel Thimm wrote:
> On Sun, Jul 23, 2006 at 08:15:18AM -0400, David Woodhouse wrote:
>> How much interest would there be in getting a bunch of cross-compilers
>> into Extras?
>
> A very good idea.
>
>> It'd be particularly nice if we could install native -devel packages
>> into each toolchain's sysroot
>
> I don't think installing packages of a foreign arch is easy w/o an
> emulator. You have scriptlets (%post and friends) that need to run on
> the target arch's platform. E.g. even installing glibc calls
> /usr/sbin/glibc_post_upgrade.* which would have to be emulated.
>
> -devel usually has no scriplets, but the pulled in main lib package
> will at the very least want to call ldconfig.

Well, it really depends on what you're doing in the scriptlet. If it's
running chkconfig, adduser, etc. (i.e. updating configuration
information) then something we've done in the past would work (it's
ugly, but it works). Essentially you work in a chroot and at the point
where you want to run the scriptlets, you bind mount the host /bin,
/sbin, /lib, /usr/lib, /usr/bin, and /usr/sbin into the chroot (from
outside the chroot of course), then run the scriptlets inside the
chroot natively, then undo it (Hey! I *said* it was ugly).  I've used
this method to build mipsel and sh root filesystems.

Clark

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFE0ShwHyuj/+TTEp0RAm9GAKCvOUruqOIhEKgzqZfTIvHrBQT0MgCgtOq8
owo7FmktAolu0ABnvY9S+08=
=ggJY
-----END PGP SIGNATURE-----

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux