Re: Fedora and Cross Compiling

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

 



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

Ralf Corsepius wrote:
> On Fri, 2007-06-15 at 08:42 -0500, David Smith wrote:
>> Ralf Corsepius wrote:
>>> Is rpm able to install arbitrary "foreign arch'ed rpms" to a non-default
>>> "rpmroot"?
>>>
>>> e.g. to run
>>> rpm -i -r /usr/share/<target>/var/lib/rpm xxx.sparc.rpm
>>> on non-sparc systems?
>> Sure.  I believe we used the '--root PATH' feature of rpm.
> How about scriptlets?
> 
> One could try to run the host tools with paths altered, but ...
> 

We actually do that.

When composing a rootfs from a bag of target rpms, we extract the
%pre's, move the 'binaries' directories (bin, lib, ...) in the target
rootfs to <name>.save, symlink in the host equivalents, run the
scriptlets, undo the moves, do an rpm install with --noscripts, extract
the %posts, move off the binaries, link in the hosts, run the posts,
undo the moves.

Surprisingly effective for 90% or more of scriptlets, since most of them
just modify a data file.

Of course this is Python wrapper code that utilized the RPM module to
pull scriptlets, etc.

Clark

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

iD8DBQFGcvWwHyuj/+TTEp0RAtVGAKCk+Zu5k3alK96ieU5q8ppIlj+FcgCdEbcr
Sk5QIo5r7JPNTrkR+w53gL0=
=C8BA
-----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