Documentation ¶
Index ¶
- Constants
- func BuildDeb(worker llb.State, spec *dalec.Spec, srcPkg llb.State, distroVersionID string, ...) (llb.State, error)
- func Changelog(spec *dalec.Spec, in llb.State, target, dir, distroVersionID string) (llb.State, error)
- func Debroot(sOpt dalec.SourceOpts, spec *dalec.Spec, worker, in llb.State, ...) (llb.State, error)
- func ReadDistroVersionID(ctx context.Context, client gwclient.Client, st llb.State) (string, error)
- func Rules(spec *dalec.Spec, in llb.State, dir string) (llb.State, error)
- func SourcePackage(sOpt dalec.SourceOpts, worker llb.State, spec *dalec.Spec, ...) (llb.State, error)
- func WriteChangelog(w io.Writer, spec *dalec.Spec, target, distroID string) error
- func WriteControl(spec *dalec.Spec, target string, w io.Writer) error
- func WriteRules(spec *dalec.Spec, w io.Writer) error
Constants ¶
const (
DebHelperCompat = "13"
)
Variables ¶
This section is empty.
Functions ¶
func Debroot ¶
func Debroot(sOpt dalec.SourceOpts, spec *dalec.Spec, worker, in llb.State, target, dir, distroVersionID string, opts ...llb.ConstraintsOpt) (llb.State, error)
Debroot creates a debian root directory suitable for use with debbuild. This does not include sources in case you want to mount sources (instead of copying them) later.
Set the `distroVersionID` argument to a value suitable for including in the .deb for storing the targeted distro+version in the deb. This is generally needed so that if a distro user upgrades from, for instance, debian 11 to debian 12, that the package built for debian 12 will be considered an upgrade even if it is technically the same underlying source. It may be left blank but is highly recommended to set this. Use ReadDistroVersionID to get a suitable value.
func ReadDistroVersionID ¶
ReadDistroVersionID returns a string concatenating the values of ID and VERSION_ID from /etc/os-release from the provided state.
func SourcePackage ¶
func WriteChangelog ¶
Types ¶
This section is empty.