Jump to: navigation, search


1,873 bytes added, 6 months ago
Update ego upstream location
|description=Metro is the Funtoo Linux automated build system, and is used to build Funtoo Linux stage tarballs.
|source=[ GitHub]}}
{{Subpages|AutoSetup,Manual Setup,How Metro WorksConcepts and Terminology,Configuring Metro,Data Model,Recipes,Automation,Data Model}}
== Introduction ==
Metro is the tool used by Funtoo Linux to build new releases of Funtoo Linux. It is also available to the public and can be used to build custom versions of Funtoo Linux, or used by developers to perform build testing. This page documents how to install, configure and use Metro. Also note that there is various additional supplemental documentation available on sub-pages, with links above.
== Installation ==
=== Prerequisites ===
# ##i##emerge dev-vcs/git dev-python/requests dev-python/sqlalchemy dev-python/lxml
=== Prerequisites for QEMU Support ===
Metro now supports building arm-32bit and arm-64bit stages on x86-64bit systems, using qemu. To enable this functionality, it is
necessary to emerge {{Package|app-emulation/qemu}} with the following settings.
First, add the following to{{f|/etc/portage/package.use}}:
app-emulation/qemu static-user
dev-libs/glib static-libs
sys-apps/attr static-libs
sys-libs/zlib static-libs
dev-libs/libpcre static-libs
Next, the following should be added to {{f|/etc/make.conf}}:
QEMU_USER_TARGETS="aarch64 arm"
Then, emerge qemu:
# ##i##emerge app-emulation/qemu
From this point forward, support for ARM on x86 systems should work transparently. Metro will take care of compiling a wrapper for qemu and temporarily installing the static version of qemu inside the stage chroot so that ARM binaries will run transparently on x86 systems. Metro will also automatically register qemu as a "binary format" with the kernel.
=== Cloning Metro ===
# ##i##cd /root
# ##i##git clone
# ##i##cp /root/metro/metro.conf ~/.metro
{{Tip|The {{f|/root/.metro}} file contains the system metro configuration, and defines where the build repository and other files should be stored. Defaults are typically fine for most users, and {{f|/home/mirror/funtoo}} will be used as the build repository path. For more information on configuration settings available, see [[Metro/Configuring Metro]].}}
You will now have a directory called {{c|/root/metro}} that contains all the Metro source code.
=== Setting up ego===
Now, we will set the {{c|ego}}, administration tool of Funtoo Linux. The way it is used with metro is independent from {{c|app-admin/ego}} installed on your box. This local cloned copy of ego allows metro to potentially use a newer version of ego than what is already installed on your system, or to function under other non-Funtoo distributions like Gentoo or Ubuntu. Setup is easy Set up as follows:
# ##i##cd /root
# ##i##git clone
This way you will have {{c|/root/ego}} directory with {{c|ego}} binary that is then used by metro.

Navigation menu