Ebuild
From Gentoo Wiki
Portage - the heart of Gentoo
emerge — configuration — ebuild repository — dispatch-conf
world file — USE flags — ebuilds — profiles
upgrades — using testing packages — binary packages
tools — gentoolkit — eselect
Portage FAQ — cheat sheet — FAQ
all articles
emerge — configuration — ebuild repository — dispatch-conf
world file — USE flags — ebuilds — profiles
upgrades — using testing packages — binary packages
tools — gentoolkit — eselect
Portage FAQ — cheat sheet — FAQ
all articles
ebuild 文件是文本文件,它通常储存于 repository ,供 Gentoo 包管理器使用,它标识一个特定的软件包,以及告诉 Gentoo 包管理器如何处理它。ebuild 使用 bash 类似语法风格,并通过 软件包管理器规范使用EAPI 来控制版本。
Ebuilds 包含相关可用软件的每个版本的元数据(名称、版本号、许可证、主页网址……)、依赖信息(构建时和运行时),以及有关如何构建和安装软件的说明(配置、编译、构建、安装、测试……)。
Gentoo 中 ebuilds 的默认位置是Gentoo ebuild repository( /var/db/repos/gentoo/)。
另请参阅
See the ebuild repository article about what an ebuild repository is, the creating an ebuild repository article on how to create them, and the basic guide to write Gentoo Ebuilds for creating ebuilds to house in a repository.
See the ebuild repository article about what an ebuild repository is, the creating an ebuild repository article on how to create them, and the basic guide to write Gentoo Ebuilds for creating ebuilds to house in a repository.
"ebuild" 命令
ebuild 也是运行各种 ebuild 函数 的 Portage 命令。
附注
Ebuilds can be installed with the ebuild command, however this is not recommended - this command is for development purposes only. Ebuilds should be placed in an ebuild repository then installed with the emerge command.
Ebuilds can be installed with the ebuild command, however this is not recommended - this command is for development purposes only. Ebuilds should be placed in an ebuild repository then installed with the emerge command.
通过运行以下命令在本地找到 ebuild 命令的相关信息:
user $
man 1 ebuild
实时 ebuild
如果源代码是从修订控制系统 (VCS) 获取的,那么此 ebuild 就是实时 ebuild。它们的版本号往往(但不一定)是 9999,以便可以轻松将其与基于上游版本的普通 ebuild 区分开来。
从正式的意义上来说,如果 ebuild 有一个变量 PROPERTIES
,其中的值是“live”,那么它就是“实时的”。如果一个 ebuild 继承了一个 VCS eclass(例如 git-r3、mercurial、darcs),它将是实时的,因为这些 eclass 中有一行 PROPERTIES+="live"
。
另请参阅
- Basic guide to write Gentoo Ebuilds — 包含了关于 ebuild 开发的初学者说明。
- Submitting ebuilds — explains how to submit ebuilds for inclusion in the Gentoo ebuild repository
- Package Manager Specification — a standardization effort to ensure that the ebuild file format, the ebuild repository format (of which the Gentoo ebuild repository is the main incarnation), as well as behavior of the package managers interacting with these ebuilds is properly agreed upon and documented.
- Portage — the official package manager and distribution system for Gentoo.
外部资源
- https://devmanual.gentoo.org/eclass-reference/ebuild/index.html - 开发人员手册中的 ebuild eclass 参考。
- https://projects.gentoo.org/comrel/recruiters/quizzes/ebuild-quiz.txt - Gentoo 开发人员 ebuild 测验。