python3 for metro_Metro

Description:

Metro is the Funtoo Linux automated build system, and is used to build Funtoo Linux stage tarballs.

Source Code:

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

Ensure that dev-vcs/git, dev-python/requests, dev-python/sqlalchemy and dev-python/lxml are installed on your system.

root # 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 app-emulation/qemu with the following settings.

First, add the following to/etc/portage/package.use:

/etc/portage/package.useapp-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 /etc/make.conf:

/etc/make.confQEMU_USER_TARGETS="aarch64 arm"

Then, emerge qemu:

root # 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

The recommended and supported method for installing metro is to clone metro's git repository to /root. Clone the master git repository as follows:

root # cd /root

root # git clone https://code.funtoo.org/bitbucket/scm/core/metro.git

root # cp /root/metro/metro.conf ~/.metro

Tip

The /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 /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 /root/metro that contains all the Metro source code.

Setting up ego

Now, we will set the ego, administration tool of Funtoo Linux. The way it is used with metro is independent from 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. Set up as follows:

root # cd /root

root # git clone https://code.funtoo.org/bitbucket/scm/core/ego.git

This way you will have /root/ego directory with ego binary that is then used by metro.

Build Repository Setup

Metro uses a repository to store built stages and snapshots, which typically resides at /home/mirror/funtoo. There are two methods to set up your build repository -- it can be done manually or with our auto-setup script. The auto-setup script is of course faster and easier, while the manual method may give you a deeper understanding of how the build repository internals work.

First Build

Once your build repository has been set up, you can start your first build using a command similar to the one below:

root # /root/metro/scripts/ezbuild.sh 1.3-release-std x86-64bit amd64-zen full

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值