Re: cross compiling on x86_64
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
So yes, mock does the trick. Here are quick pointers for those interested.
It compiles srpms only, so you have to rpmbuild -bs specfile first.
If you don't want it to always fetch packages from a repository (very slow), install a local image:
mock --autocache --rebuildcache -r fedora-6-i386-core.cfg init
mock --autocache -r fedora-6-i386-core.cfg clean
Don't forget to add yourself to the "mock" group.
Since I will only be compiling i386 packages with mock, I changed the default config:
cd /etc/mock
rm default.cfg
ln -s fedora-6-i386-core.cfg default.cfg
Then you can compile:
mock --no-clean --debug /phil/src/rpm/SRPMS/freetype-2.2.1-16bci.src.rpm
Here the command omits -r, so mock will assume it should use our
default.cfg.
If you omit --no-clean, the chroot gets recreated everytime and makes compilation take much longer. If you omit --debug, you won't see much output at all.
Cheers!
[Index of Archives]
[Older Fedora Users]
[Fedora Announce]
[Fedora Package Announce]
[EPEL Announce]
[Fedora Magazine]
[Fedora News]
[Fedora Summer Coding]
[Fedora Laptop]
[Fedora Cloud]
[Fedora Advisory Board]
[Fedora Education]
[Fedora Security]
[Fedora Scitech]
[Fedora Robotics]
[Fedora Maintainers]
[Fedora Infrastructure]
[Fedora Websites]
[Anaconda Devel]
[Fedora Devel Java]
[Fedora Legacy]
[Fedora Desktop]
[Fedora Fonts]
[ATA RAID]
[Fedora Marketing]
[Fedora Management Tools]
[Fedora Mentors]
[SSH]
[Fedora Package Review]
[Fedora R Devel]
[Fedora PHP Devel]
[Kickstart]
[Fedora Music]
[Fedora Packaging]
[Centos]
[Fedora SELinux]
[Fedora Legal]
[Fedora Kernel]
[Fedora OCaml]
[Coolkey]
[Virtualization Tools]
[ET Management Tools]
[Yum Users]
[Tux]
[Yosemite News]
[Gnome Users]
[KDE Users]
[Fedora Art]
[Fedora Docs]
[Asterisk PBX]
[Fedora Sparc]
[Fedora Universal Network Connector]
[Libvirt Users]
[Fedora ARM]