Documentation
¶
Overview ¶
Package binpkg reads Gentoo binary packages: the Packages index of a binary package directory, the runtime closure of a set of packages, and the files of each GPKG archive split into runtime and dev layers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtomName ¶
AtomName returns the category and name of a dependency atom, dropping its version operator, version, slot and USE dependencies.
Types ¶
type Archive ¶
type Archive struct {
// Description is the package's one-line description.
Description string
// Runtime holds the files the package needs to run.
Runtime []*layer.Entry
// Dev holds the headers, static libraries, build metadata and
// documentation needed only to build against the package.
Dev []*layer.Entry
}
Archive is the content of a GPKG binary package.
func ReadArchive ¶
ReadArchive reads the description and installed files of the GPKG binary package at gpkgPath. A package with no image, such as a virtual, installs no files. Paths under /bin, /sbin and /lib move under /usr, and hard links become copies of their target, which content addressing stores once.
type Package ¶
type Package struct {
// CPV is the category, name and version, such as app-editors/nano-9.2.
CPV string
// Name is the category and name, such as app-editors/nano.
Name string
// Version is the version and revision, such as 9.2-r1.
Version string
// License is the license expression.
License string
// RDepend is the runtime dependency string with USE conditionals resolved.
RDepend string
// Path is the binary package path relative to the package directory.
Path string
}
Package is one binary package entry of a Packages index.
func Resolve ¶
func Resolve(pkgs map[string]*Package, provided map[string]bool, names []string) ([]*Package, error)
Resolve returns the runtime closure of the named packages, each package after the packages it depends on. A provided package, one the profile's package.provided lists, is satisfied without installing.