|
|
[Gentoo Linux Home] [GLEP Index] [GLEP Source] |
| GLEP: | 60 |
|---|---|
| Title: | Manifest2 filetypes |
| Version: | 1.10 |
| Last-Modified: | 2010/04/07 21:34:24 |
| Author: | Robin Hugh Johnson <robbat2 at gentoo.org> |
| Status: | Draft |
| Type: | Standards Track |
| Content-Type: | text/x-rst |
| Requires: | 44 |
| Created: | November 2007 |
| Updated: | June 2008, July 2008, October 2008, January 2010 |
| Updates: | 44 |
| Post-History: | December 2009, January 2010 |
Clarification of the Manifest2 [GLEP44] specification, including new types to help in the tree-signing specification.
[GLEP44] was not entirely clear on the usage of filetype specifiers. This document serves to provide some of the internal logic used by Portage at the point of writing, as well as adding new types to cover the rest of the tree, for the purposes of tree-signing coverage.
This GLEP is not mandatory for the tree-signing specification, but instead aims to clarify the usage of the Manifest2 filetype specifiers, and note which types signify files that are allowed to be missing from the tree (e.g. a user excluding a package or category). As such, it is also able to stand on it's own.
For any given directory with a Manifest file, every file located in that directory, or a sub-directory must be listed in that Manifest file, unless stated otherwise in the following sections. The Manifest file must not contain an entry for itself.
When generating or validating a Manifest, or committing to a version control system, the package manager should endeavour to ignore files created by a version control system, backup files from text editors. A non-exhaustive list is suggested here: CVS/, .svn/, .bzr/, .git/, .hg/, .#*, *.rej, *.orig, *.bak, *~.
Additionally, for a transitional Manifest1->Manifest2 system, old-style digest files located in a 'files/' directory, may be excluded from Manifest2 generation, or included with a type of MISC.
Under strict security conditions, the exclusion list may be ignored during validation if the existence of a file would be considered a security risk.
If repeated use of a common path prefix is considered a bloat problem, a Manifest file should be added inside the common directory, however this should not be done blindly, as bloat by inodes is more significant for the majority of use cases. See also [GLEP58] on size reductions of Manifests.
=> MANIFEST, stop.
=> EBUILD, stop.
=> ECLASS, stop.
=> DIST, stop.
=> AUX, continue [see note].
=> EXEC, stop.
=> DATA, stop.
=> MISC, stop.
=> OTHER, stop.
The logic behind 5, 6, 7 is ensuring that every item that by it's presence or absence may be dangerous should always be treated strictly. (Consider epatch given a directory of patches ${FILESDIR}/${PV}/, where it blindly includes them, or alternatively, the package.mask file or a profile being altered/missing).
The above lists of file patterns are not intended to be exhaustive, but merely demonstrative.
Note: The AUX entries should only be generated if we are generating a compatible Manifest that supports older versions of Portage. They should be generated along with the new type.
For generation of existing package Manifests, the AUX entries must continue to be present for the standard Portage deprecation cycle. The new entries may be included already in all Manifest files, as they will be ignored by older Portage versions. Over time, ECLASS, DATA, EXEC, OTHER may replace the existing AUX type.
The adoption of this proposal does also affect [GLEP58] as part of this GLEP series, however this GLEP was an offset of the research in that GLEP.
I'd like to thank the following people for input on this GLEP. - Marius Mauch (genone) & Zac Medico (zmedico): Portage Manifest2
| [GLEP44] | Mauch, M. (2005) GLEP44 - Manifest2 format. http://www.gentoo.org/proj/en/glep/glep-0044.html |
| [GLEP58] | Security of distribution of Gentoo software - Infrastructure to User distribution - MetaManifest http://www.gentoo.org/proj/en/glep/glep-0058.html |
Copyright (c) 2007-2010 by Robin Hugh Johnson. This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0.