Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAspPackageByFilename(filename string) (bool, error)
- func IsDirRestrictedForWork(path string) bool
- type BootImgCtl
- func (self *BootImgCtl) CheckFiles() error
- func (self *BootImgCtl) CopyFiles() error
- func (self *BootImgCtl) CreateGrubCfg() error
- func (self *BootImgCtl) DoEverything() error
- func (self *BootImgCtl) EditParts() error
- func (self *BootImgCtl) FallocateImage() error
- func (self *BootImgCtl) FormatBoot() error
- func (self *BootImgCtl) InstallGrub() error
- func (self *BootImgCtl) LoSetup() error
- func (self *BootImgCtl) LoSetupD() error
- func (self *BootImgCtl) MountBoot() error
- func (self *BootImgCtl) UMountBoot() error
- type BootImgInitRdCtl
- func (self *BootImgInitRdCtl) CleanupLinux() error
- func (self *BootImgInitRdCtl) CopyOSFiles() error
- func (self *BootImgInitRdCtl) DoEverythingBeforePack() error
- func (self *BootImgInitRdCtl) MakeSymlinks() error
- func (self *BootImgInitRdCtl) SquashOSFiles() error
- func (self *BootImgInitRdCtl) WriteInit() error
- type BootImgSquashCtl
- func (self *BootImgSquashCtl) CleanupLinuxSrc() error
- func (self *BootImgSquashCtl) CleanupOSFS() error
- func (self *BootImgSquashCtl) CopyOSFiles() error
- func (self *BootImgSquashCtl) DoEverythingBeforeSquash() error
- func (self *BootImgSquashCtl) InstallAipSetup() error
- func (self *BootImgSquashCtl) InstallOverlayInit() error
- func (self *BootImgSquashCtl) RemoveUsers() error
- func (self *BootImgSquashCtl) ResetRootPasswd() error
- func (self *BootImgSquashCtl) SquashOSFiles() error
- type BuildingSiteCtl
- func (self *BuildingSiteCtl) CreateLogger(name string, console_output bool) (*logger.Logger, error)
- func (self *BuildingSiteCtl) DetermineMainTarrball() (string, error)
- func (self *BuildingSiteCtl) GetBuildingSiteValuesCalculator() basictypes.BuildingSiteValuesCalculatorI
- func (self *BuildingSiteCtl) GetDIR_BUILDING() string
- func (self *BuildingSiteCtl) GetDIR_BUILD_LOGS() string
- func (self *BuildingSiteCtl) GetDIR_DESTDIR() string
- func (self *BuildingSiteCtl) GetDIR_LISTS() string
- func (self *BuildingSiteCtl) GetDIR_PATCHES() string
- func (self *BuildingSiteCtl) GetDIR_SOURCE() string
- func (self *BuildingSiteCtl) GetDIR_TARBALL() string
- func (self *BuildingSiteCtl) GetDIR_TEMP() string
- func (self *BuildingSiteCtl) GetLog() *logger.Logger
- func (self *BuildingSiteCtl) GetOuterAspsDir() (string, error)
- func (self *BuildingSiteCtl) GetOuterTarballsDir() (string, error)
- func (self *BuildingSiteCtl) GetPatches() error
- func (self *BuildingSiteCtl) GetPath() string
- func (self *BuildingSiteCtl) GetSources() error
- func (self *BuildingSiteCtl) GetSystem() basictypes.SystemI
- func (self *BuildingSiteCtl) GetTarballs() error
- func (self *BuildingSiteCtl) InitDirs() error
- func (self *BuildingSiteCtl) IsBuildingSite() bool
- func (self *BuildingSiteCtl) IsDirRestrictedForWork() bool
- func (self *BuildingSiteCtl) ListActions() ([]string, error)
- func (self *BuildingSiteCtl) Packager() basictypes.PackagerI
- func (self *BuildingSiteCtl) PrePackager() basictypes.PrePackagerI
- func (self *BuildingSiteCtl) PrintCalculations() error
- func (self *BuildingSiteCtl) ReadInfo() (*basictypes.BuildingSiteInfo, error)
- func (self *BuildingSiteCtl) Run(targets []string) error
- func (self *BuildingSiteCtl) WriteInfo(info *basictypes.BuildingSiteInfo) error
- type BuildingSiteValuesCalculator
- func (self *BuildingSiteValuesCalculator) CalculateAutotoolsAllOptionsMap() (environ.EnvVarEd, error)
- func (self *BuildingSiteValuesCalculator) CalculateAutotoolsCCParameterValue() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateAutotoolsCXXParameterValue() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateAutotoolsCompilerOptionsMap() (environ.EnvVarEd, error)
- func (self *BuildingSiteValuesCalculator) CalculateAutotoolsHBTOptions() ([]string, error)
- func (self *BuildingSiteValuesCalculator) CalculateCmakeAllOptionsMap() (environ.EnvVarEd, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostArchDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostArchLibDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostCrossbuilderDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostCrossbuildersDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostLibDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstHostMultiarchDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstInstallLibDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstInstallPrefix() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateDstMultihostDir() string
- func (self *BuildingSiteValuesCalculator) CalculateHostArchDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateHostArchLibDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateHostCrossbuilderDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateHostCrossbuildersDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateHostDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateHostLibDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateHostMultiarchDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateInstallLibDir() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateInstallPrefix() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateInstallPrefixExecutable(name string) (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateMainMultiarchLibDirName() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateMultihostDir() string
- func (self *BuildingSiteValuesCalculator) CalculateMultilibVariant() (string, error)
- func (self *BuildingSiteValuesCalculator) CalculateOptAppDir(name string) string
- func (self *BuildingSiteValuesCalculator) Calculate_CXX_Compiler() (string, error)
- func (self *BuildingSiteValuesCalculator) Calculate_C_Compiler() (string, error)
- func (self *BuildingSiteValuesCalculator) Calculate_C_INCLUDE_PATH() ([]string, error)
- func (self *BuildingSiteValuesCalculator) Calculate_LD_LIBRARY_PATH() ([]string, error)
- func (self *BuildingSiteValuesCalculator) Calculate_LIBRARY_PATH() ([]string, error)
- func (self *BuildingSiteValuesCalculator) Calculate_PATH() ([]string, error)
- func (self *BuildingSiteValuesCalculator) GetPrefixPkgConfig() (*pkgconfig.PkgConfig, error)
- type DocBookCtl
- func (self *DocBookCtl) ImportCatalogXMLToSuperDocBookCatalog(target_catalog_xml string, base_dir string, super_docbook_catalog_xml string) error
- func (self *DocBookCtl) ImportDocBookToCatalog(base_dir_etc_xml_catalog string, super_catalog_xml string) error
- func (self *DocBookCtl) ImportToSuperDocBookCatalog(target_dir string, base_dir string, super_catalog_sgml string, ...) error
- func (self *DocBookCtl) ImportXSLToXMLCatalog(target_xsl_dir string, base_dir string, current bool, xml_catalog string) error
- func (self *DocBookCtl) InstallDockBook() error
- func (self *DocBookCtl) LogE(txt string)
- func (self *DocBookCtl) LogI(txt string)
- func (self *DocBookCtl) MakeNewDocbook_3_1_LookLikeOld(base_dir string, target_dir string) error
- func (self *DocBookCtl) MakeNewDocbook_4_5_LookLikeOld(base_dir string, target_dir string) error
- func (self *DocBookCtl) MakeNewDocbook_x_x_LookLikeOld(base_dir string, installed_docbook_xml_dir string, ver string) error
- func (self *DocBookCtl) MakeNewDockBookXMLLookLikeOld(base_dir string, installed_docbook_xml_dir string, super_catalog_xml string, ...) error
- type InstallDockBookSettings
- type MassBuildCtl
- func (self *MassBuildCtl) GetAspsPath() string
- func (self *MassBuildCtl) GetDoneTarballsPath() string
- func (self *MassBuildCtl) GetTarballsPath() string
- func (self *MassBuildCtl) PerformMassBuilding(tarballs []string) (map[string][]string, map[string][]string, error)
- func (self *MassBuildCtl) ReadInfo() (*basictypes.MassBuilderInfo, error)
- func (self *MassBuildCtl) WriteInfo(info *basictypes.MassBuilderInfo) error
- type OverallPathsCalculator
- func (self OverallPathsCalculator) CalculateHostArchDir(root, host, hostarch string) string
- func (self OverallPathsCalculator) CalculateHostCrossbuilderDir(root, host, target string) string
- func (self OverallPathsCalculator) CalculateHostCrossbuildersDir(root, host string) string
- func (self OverallPathsCalculator) CalculateHostDir(root, host string) string
- func (self OverallPathsCalculator) CalculateHostMultiarchDir(root, host string) string
- func (self OverallPathsCalculator) CalculateMultihostDir(root string) string
- type PackageChecker
- type Packager
- func (self *Packager) CompressFilesInListsDir(log *logger.Logger) error
- func (self *Packager) CompressLogs(log *logger.Logger) error
- func (self *Packager) CompressPatchesAndDestDir(log *logger.Logger) error
- func (self *Packager) DestDirCheckCorrectness(log *logger.Logger) error
- func (self *Packager) DestDirChecksum(log *logger.Logger) error
- func (self *Packager) DestDirFileList(log *logger.Logger) error
- func (self *Packager) MakeChecksums(log *logger.Logger) error
- func (self *Packager) Pack(log *logger.Logger) error
- func (self *Packager) Run(log *logger.Logger) error
- func (self *Packager) UpdateTimestamp(log *logger.Logger) error
- type PrePackager
- func (self *PrePackager) DestDirMoveRootToUsr(log *logger.Logger) error
- func (self *PrePackager) DestDirMoveUsrToPrefix(log *logger.Logger) error
- func (self *PrePackager) DestDirRenameEtc(log *logger.Logger) error
- func (self *PrePackager) DestDirRenameVar(log *logger.Logger) error
- func (self *PrePackager) Run(log *logger.Logger) error
- type System
- func (self *System) Archs() ([]string, error)
- func (self *System) Cfg() *ini.File
- func (self *System) GenLocale() error
- func (self *System) GetInstalledASPBuildLogsDir() string
- func (self *System) GetInstalledASPDepsDir() string
- func (self *System) GetInstalledASPDir() string
- func (self *System) GetInstalledASPSumsDir() string
- func (self *System) GetMovedRootForCrossbuilder(host, target string) *SystemMovedRoot
- func (self *System) GetSystemUpdates() *SystemUpdates
- func (self *System) GetSystemValuesCalculator() basictypes.SystemValuesCalculatorI
- func (self *System) GetTarballRepoRootDir() string
- func (self *System) GetUserCtl() *UserCtl
- func (self *System) Host() (string, error)
- func (self *System) Root() string
- type SystemMovedRoot
- type SystemPackageRegistration
- type SystemPackages
- func (self *SystemPackages) FindPackagesByInstalledFilenames(mode string, pattern string, progress_cb func(perc float64, ind, count int)) (map[string]([]string), error)
- func (self *SystemPackages) FindSystemPackageRegistrationByName(aspname *basictypes.ASPName) (*SystemPackageRegistration, error)
- func (self *SystemPackages) GenASPFileListPath(aspname *basictypes.ASPName) (string, error)
- func (self *SystemPackages) InstallASP(filename string) error
- func (self *SystemPackages) InstallASPReduceToSubRoutine(filename string, print_list bool) error
- func (self *SystemPackages) InstallASP_DestDir(filename string) error
- func (self *SystemPackages) InstallASP_FileLists(filename string, parsed *basictypes.ASPName) error
- func (self *SystemPackages) IsASPInstalled(aspname *basictypes.ASPName) (bool, error)
- func (self *SystemPackages) ListAllInstalledASPs() ([]*basictypes.ASPName, error)
- func (self *SystemPackages) ListFilteredInstalledASPs(host, hostarch string) ([]*basictypes.ASPName, error)
- func (self *SystemPackages) ListInstalledASPFiles(aspname *basictypes.ASPName) ([]string, error)
- func (self *SystemPackages) ListInstalledPackageNameASPs(name string, host, hostarch string) ([]*basictypes.ASPName, error)
- func (self *SystemPackages) ListInstalledPackageNames(host, hostarch string) ([]string, error)
- func (self *SystemPackages) ReduceASP(reduce_to *basictypes.ASPName, reduce_what []*basictypes.ASPName) error
- func (self *SystemPackages) RemoveASP(aspname *basictypes.ASPName, unregister_only bool, called_by_reduce bool, ...) error
- func (self *SystemPackages) RemoveASP_DestDir(aspname *basictypes.ASPName, exclude_files []string, keep_shared_objects bool) error
- func (self *SystemPackages) RemoveASP_FileLists(aspname *basictypes.ASPName) error
- type SystemUpdates
- func (self *SystemUpdates) GDKPixbuffQueryLoaders() error
- func (self *SystemUpdates) GlibCompileSchemas() error
- func (self *SystemUpdates) GtkQueryImmodules20() error
- func (self *SystemUpdates) GtkQueryImmodules30() error
- func (self *SystemUpdates) InstallEtc(log *logger.Logger) error
- func (self *SystemUpdates) LDConfig() error
- func (self *SystemUpdates) ResetSystemPermissions(log *logger.Logger) error
- func (self *SystemUpdates) Sync() error
- func (self *SystemUpdates) UpdateMimeDatabase() error
- func (self *SystemUpdates) UpdatesAfterPkgInstall() error
- type SystemValuesCalculator
- func (self *SystemValuesCalculator) CalculateHostArchDir(host, hostarch string) string
- func (self *SystemValuesCalculator) CalculateHostCrossbuilderDir(host, target string) string
- func (self *SystemValuesCalculator) CalculateHostCrossbuildersDir(host string) string
- func (self *SystemValuesCalculator) CalculateHostDir(host string) string
- func (self *SystemValuesCalculator) CalculateHostMultiarchDir(host string) string
- func (self *SystemValuesCalculator) CalculateMultihostDir() string
- type UserCtl
Constants ¶
View Source
const DOCBOOK_INSTRUCTION = `` /* 1465-byte string literal not displayed */
Variables ¶
View Source
var ( DEFAULT_HOST = "x86_64-pc-linux-gnu" DEFAULT_ARCHS_STRING = "i686-pc-linux-gnu" )
View Source
var DEFAULT_AIPSETUP_SYSTEM_CONFIG = []byte("" +
`
[x86_64-pc-linux-gnu]
archs = i686-pc-linux-gnu
[tarball_downloading]
enabled = false
repository = path
`)
Functions ¶
func IsDirRestrictedForWork ¶
Types ¶
type BootImgCtl ¶
type BootImgCtl struct {
// contains filtered or unexported fields
}
func NewBootImgCtl ¶
func (*BootImgCtl) CheckFiles ¶
func (self *BootImgCtl) CheckFiles() error
func (*BootImgCtl) CopyFiles ¶
func (self *BootImgCtl) CopyFiles() error
func (*BootImgCtl) CreateGrubCfg ¶
func (self *BootImgCtl) CreateGrubCfg() error
func (*BootImgCtl) DoEverything ¶
func (self *BootImgCtl) DoEverything() error
func (*BootImgCtl) EditParts ¶
func (self *BootImgCtl) EditParts() error
func (*BootImgCtl) FallocateImage ¶
func (self *BootImgCtl) FallocateImage() error
func (*BootImgCtl) FormatBoot ¶
func (self *BootImgCtl) FormatBoot() error
func (*BootImgCtl) InstallGrub ¶
func (self *BootImgCtl) InstallGrub() error
func (*BootImgCtl) LoSetup ¶
func (self *BootImgCtl) LoSetup() error
func (*BootImgCtl) LoSetupD ¶
func (self *BootImgCtl) LoSetupD() error
func (*BootImgCtl) MountBoot ¶
func (self *BootImgCtl) MountBoot() error
func (*BootImgCtl) UMountBoot ¶
func (self *BootImgCtl) UMountBoot() error
type BootImgInitRdCtl ¶
type BootImgInitRdCtl struct {
// contains filtered or unexported fields
}
func NewBootImgInitRdCtl ¶
func (*BootImgInitRdCtl) CleanupLinux ¶
func (self *BootImgInitRdCtl) CleanupLinux() error
func (*BootImgInitRdCtl) CopyOSFiles ¶
func (self *BootImgInitRdCtl) CopyOSFiles() error
func (*BootImgInitRdCtl) DoEverythingBeforePack ¶
func (self *BootImgInitRdCtl) DoEverythingBeforePack() error
func (*BootImgInitRdCtl) MakeSymlinks ¶
func (self *BootImgInitRdCtl) MakeSymlinks() error
func (*BootImgInitRdCtl) SquashOSFiles ¶
func (self *BootImgInitRdCtl) SquashOSFiles() error
func (*BootImgInitRdCtl) WriteInit ¶
func (self *BootImgInitRdCtl) WriteInit() error
type BootImgSquashCtl ¶
type BootImgSquashCtl struct {
// contains filtered or unexported fields
}
func NewBootImgSquashCtl ¶
func (*BootImgSquashCtl) CleanupLinuxSrc ¶
func (self *BootImgSquashCtl) CleanupLinuxSrc() error
func (*BootImgSquashCtl) CleanupOSFS ¶
func (self *BootImgSquashCtl) CleanupOSFS() error
func (*BootImgSquashCtl) CopyOSFiles ¶
func (self *BootImgSquashCtl) CopyOSFiles() error
func (*BootImgSquashCtl) DoEverythingBeforeSquash ¶
func (self *BootImgSquashCtl) DoEverythingBeforeSquash() error
func (*BootImgSquashCtl) InstallAipSetup ¶
func (self *BootImgSquashCtl) InstallAipSetup() error
func (*BootImgSquashCtl) InstallOverlayInit ¶
func (self *BootImgSquashCtl) InstallOverlayInit() error
func (*BootImgSquashCtl) RemoveUsers ¶
func (self *BootImgSquashCtl) RemoveUsers() error
func (*BootImgSquashCtl) ResetRootPasswd ¶
func (self *BootImgSquashCtl) ResetRootPasswd() error
func (*BootImgSquashCtl) SquashOSFiles ¶
func (self *BootImgSquashCtl) SquashOSFiles() error
type BuildingSiteCtl ¶
type BuildingSiteCtl struct {
// contains filtered or unexported fields
}
func NewBuildingSiteCtl ¶
func (*BuildingSiteCtl) CreateLogger ¶
func (*BuildingSiteCtl) DetermineMainTarrball ¶
func (self *BuildingSiteCtl) DetermineMainTarrball() (string, error)
func (*BuildingSiteCtl) GetBuildingSiteValuesCalculator ¶
func (self *BuildingSiteCtl) GetBuildingSiteValuesCalculator() basictypes.BuildingSiteValuesCalculatorI
func (*BuildingSiteCtl) GetDIR_BUILDING ¶
func (self *BuildingSiteCtl) GetDIR_BUILDING() string
func (*BuildingSiteCtl) GetDIR_BUILD_LOGS ¶
func (self *BuildingSiteCtl) GetDIR_BUILD_LOGS() string
func (*BuildingSiteCtl) GetDIR_DESTDIR ¶
func (self *BuildingSiteCtl) GetDIR_DESTDIR() string
func (*BuildingSiteCtl) GetDIR_LISTS ¶
func (self *BuildingSiteCtl) GetDIR_LISTS() string
func (*BuildingSiteCtl) GetDIR_PATCHES ¶
func (self *BuildingSiteCtl) GetDIR_PATCHES() string
func (*BuildingSiteCtl) GetDIR_SOURCE ¶
func (self *BuildingSiteCtl) GetDIR_SOURCE() string
func (*BuildingSiteCtl) GetDIR_TARBALL ¶
func (self *BuildingSiteCtl) GetDIR_TARBALL() string
func (*BuildingSiteCtl) GetDIR_TEMP ¶
func (self *BuildingSiteCtl) GetDIR_TEMP() string
func (*BuildingSiteCtl) GetLog ¶
func (self *BuildingSiteCtl) GetLog() *logger.Logger
func (*BuildingSiteCtl) GetOuterAspsDir ¶
func (self *BuildingSiteCtl) GetOuterAspsDir() (string, error)
func (*BuildingSiteCtl) GetOuterTarballsDir ¶
func (self *BuildingSiteCtl) GetOuterTarballsDir() (string, error)
func (*BuildingSiteCtl) GetPatches ¶
func (self *BuildingSiteCtl) GetPatches() error
func (*BuildingSiteCtl) GetPath ¶
func (self *BuildingSiteCtl) GetPath() string
func (*BuildingSiteCtl) GetSources ¶
func (self *BuildingSiteCtl) GetSources() error
func (*BuildingSiteCtl) GetSystem ¶
func (self *BuildingSiteCtl) GetSystem() basictypes.SystemI
func (*BuildingSiteCtl) GetTarballs ¶
func (self *BuildingSiteCtl) GetTarballs() error
func (*BuildingSiteCtl) InitDirs ¶
func (self *BuildingSiteCtl) InitDirs() error
func (*BuildingSiteCtl) IsBuildingSite ¶
func (self *BuildingSiteCtl) IsBuildingSite() bool
func (*BuildingSiteCtl) IsDirRestrictedForWork ¶
func (self *BuildingSiteCtl) IsDirRestrictedForWork() bool
func (*BuildingSiteCtl) ListActions ¶
func (self *BuildingSiteCtl) ListActions() ([]string, error)
func (*BuildingSiteCtl) Packager ¶
func (self *BuildingSiteCtl) Packager() basictypes.PackagerI
func (*BuildingSiteCtl) PrePackager ¶
func (self *BuildingSiteCtl) PrePackager() basictypes.PrePackagerI
func (*BuildingSiteCtl) PrintCalculations ¶
func (self *BuildingSiteCtl) PrintCalculations() error
func (*BuildingSiteCtl) ReadInfo ¶
func (self *BuildingSiteCtl) ReadInfo() (*basictypes.BuildingSiteInfo, error)
func (*BuildingSiteCtl) Run ¶
func (self *BuildingSiteCtl) Run(targets []string) error
func (*BuildingSiteCtl) WriteInfo ¶
func (self *BuildingSiteCtl) WriteInfo(info *basictypes.BuildingSiteInfo) error
type BuildingSiteValuesCalculator ¶
type BuildingSiteValuesCalculator struct {
// contains filtered or unexported fields
}
func NewBuildingSiteValuesCalculator ¶
func NewBuildingSiteValuesCalculator( site basictypes.BuildingSiteCtlI, ) *BuildingSiteValuesCalculator
func (*BuildingSiteValuesCalculator) CalculateAutotoolsAllOptionsMap ¶
func (self *BuildingSiteValuesCalculator) CalculateAutotoolsAllOptionsMap() ( environ.EnvVarEd, error, )
func (*BuildingSiteValuesCalculator) CalculateAutotoolsCCParameterValue ¶
func (self *BuildingSiteValuesCalculator) CalculateAutotoolsCCParameterValue() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateAutotoolsCXXParameterValue ¶
func (self *BuildingSiteValuesCalculator) CalculateAutotoolsCXXParameterValue() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateAutotoolsCompilerOptionsMap ¶
func (self *BuildingSiteValuesCalculator) CalculateAutotoolsCompilerOptionsMap() ( environ.EnvVarEd, error, )
func (*BuildingSiteValuesCalculator) CalculateAutotoolsHBTOptions ¶
func (self *BuildingSiteValuesCalculator) CalculateAutotoolsHBTOptions() ( []string, error, )
func (*BuildingSiteValuesCalculator) CalculateCmakeAllOptionsMap ¶
func (self *BuildingSiteValuesCalculator) CalculateCmakeAllOptionsMap() ( environ.EnvVarEd, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostArchDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostArchDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostArchLibDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostArchLibDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostCrossbuilderDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostCrossbuilderDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostCrossbuildersDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostCrossbuildersDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostLibDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostLibDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstHostMultiarchDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstHostMultiarchDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstInstallLibDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstInstallLibDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstInstallPrefix ¶
func (self *BuildingSiteValuesCalculator) CalculateDstInstallPrefix() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateDstMultihostDir ¶
func (self *BuildingSiteValuesCalculator) CalculateDstMultihostDir() string
func (*BuildingSiteValuesCalculator) CalculateHostArchDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostArchDir() (string, error)
func (*BuildingSiteValuesCalculator) CalculateHostArchLibDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostArchLibDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateHostCrossbuilderDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostCrossbuilderDir() ( string, error, )
/{hostpath}/corssbuilders/{target}
func (*BuildingSiteValuesCalculator) CalculateHostCrossbuildersDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostCrossbuildersDir() ( string, error, )
/{hostpath}/corssbuilders
func (*BuildingSiteValuesCalculator) CalculateHostDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostDir() (string, error)
func (*BuildingSiteValuesCalculator) CalculateHostLibDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostLibDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateHostMultiarchDir ¶
func (self *BuildingSiteValuesCalculator) CalculateHostMultiarchDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateInstallLibDir ¶
func (self *BuildingSiteValuesCalculator) CalculateInstallLibDir() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateInstallPrefix ¶
func (self *BuildingSiteValuesCalculator) CalculateInstallPrefix() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateInstallPrefixExecutable ¶
func (self *BuildingSiteValuesCalculator) CalculateInstallPrefixExecutable(name string) (string, error)
func (*BuildingSiteValuesCalculator) CalculateMainMultiarchLibDirName ¶
func (self *BuildingSiteValuesCalculator) CalculateMainMultiarchLibDirName() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateMultihostDir ¶
func (self *BuildingSiteValuesCalculator) CalculateMultihostDir() string
func (*BuildingSiteValuesCalculator) CalculateMultilibVariant ¶
func (self *BuildingSiteValuesCalculator) CalculateMultilibVariant() ( string, error, )
func (*BuildingSiteValuesCalculator) CalculateOptAppDir ¶
func (self *BuildingSiteValuesCalculator) CalculateOptAppDir(name string) string
func (*BuildingSiteValuesCalculator) Calculate_CXX_Compiler ¶
func (self *BuildingSiteValuesCalculator) Calculate_CXX_Compiler() ( string, error, )
func (*BuildingSiteValuesCalculator) Calculate_C_Compiler ¶
func (self *BuildingSiteValuesCalculator) Calculate_C_Compiler() ( string, error, )
func (*BuildingSiteValuesCalculator) Calculate_C_INCLUDE_PATH ¶
func (self *BuildingSiteValuesCalculator) Calculate_C_INCLUDE_PATH() ([]string, error)
func (*BuildingSiteValuesCalculator) Calculate_LD_LIBRARY_PATH ¶
func (self *BuildingSiteValuesCalculator) Calculate_LD_LIBRARY_PATH() ( []string, error, )
func (*BuildingSiteValuesCalculator) Calculate_LIBRARY_PATH ¶
func (self *BuildingSiteValuesCalculator) Calculate_LIBRARY_PATH() ([]string, error)
func (*BuildingSiteValuesCalculator) Calculate_PATH ¶
func (self *BuildingSiteValuesCalculator) Calculate_PATH() ( []string, error, )
func (*BuildingSiteValuesCalculator) GetPrefixPkgConfig ¶
func (self *BuildingSiteValuesCalculator) GetPrefixPkgConfig() (*pkgconfig.PkgConfig, error)
type DocBookCtl ¶
type DocBookCtl struct {
// contains filtered or unexported fields
}
func NewDocBookCtl ¶
func NewDocBookCtl(settings *InstallDockBookSettings) *DocBookCtl
func (*DocBookCtl) ImportCatalogXMLToSuperDocBookCatalog ¶
func (self *DocBookCtl) ImportCatalogXMLToSuperDocBookCatalog( target_catalog_xml string, base_dir string, super_docbook_catalog_xml string, ) error
func (*DocBookCtl) ImportDocBookToCatalog ¶
func (self *DocBookCtl) ImportDocBookToCatalog( base_dir_etc_xml_catalog string, super_catalog_xml string, ) error
func (*DocBookCtl) ImportToSuperDocBookCatalog ¶
func (*DocBookCtl) ImportXSLToXMLCatalog ¶
func (*DocBookCtl) InstallDockBook ¶
func (self *DocBookCtl) InstallDockBook() error
func (*DocBookCtl) LogE ¶
func (self *DocBookCtl) LogE(txt string)
func (*DocBookCtl) LogI ¶
func (self *DocBookCtl) LogI(txt string)
func (*DocBookCtl) MakeNewDocbook_3_1_LookLikeOld ¶
func (self *DocBookCtl) MakeNewDocbook_3_1_LookLikeOld( base_dir string, target_dir string, ) error
func (*DocBookCtl) MakeNewDocbook_4_5_LookLikeOld ¶
func (self *DocBookCtl) MakeNewDocbook_4_5_LookLikeOld( base_dir string, target_dir string, ) error
func (*DocBookCtl) MakeNewDocbook_x_x_LookLikeOld ¶
func (self *DocBookCtl) MakeNewDocbook_x_x_LookLikeOld( base_dir string, installed_docbook_xml_dir string, ver string, ) error
func (*DocBookCtl) MakeNewDockBookXMLLookLikeOld ¶
type InstallDockBookSettings ¶
type InstallDockBookSettings struct { BaseDir string SuperCatalogSGML string SuperCatalogXML string SysSGMLDir string SysXMLDir string // SysXSLDir string XMLCatalog string Log *logger.Logger }
func (*InstallDockBookSettings) SetDefaults ¶
func (self *InstallDockBookSettings) SetDefaults(host_triplet string)
type MassBuildCtl ¶
type MassBuildCtl struct {
// contains filtered or unexported fields
}
Used us and upper interface for packages mass building
func NewMassBuilder ¶
func (*MassBuildCtl) GetAspsPath ¶
func (self *MassBuildCtl) GetAspsPath() string
func (*MassBuildCtl) GetDoneTarballsPath ¶
func (self *MassBuildCtl) GetDoneTarballsPath() string
func (*MassBuildCtl) GetTarballsPath ¶
func (self *MassBuildCtl) GetTarballsPath() string
func (*MassBuildCtl) PerformMassBuilding ¶
func (self *MassBuildCtl) PerformMassBuilding(tarballs []string) ( map[string][]string, map[string][]string, error, )
if len(tarballs) == 0 - all will be done
func (*MassBuildCtl) ReadInfo ¶
func (self *MassBuildCtl) ReadInfo() (*basictypes.MassBuilderInfo, error)
func (*MassBuildCtl) WriteInfo ¶
func (self *MassBuildCtl) WriteInfo(info *basictypes.MassBuilderInfo) error
type OverallPathsCalculator ¶
type OverallPathsCalculator struct { }
func (OverallPathsCalculator) CalculateHostArchDir ¶
func (self OverallPathsCalculator) CalculateHostArchDir( root, host, hostarch string, ) string
func (OverallPathsCalculator) CalculateHostCrossbuilderDir ¶
func (self OverallPathsCalculator) CalculateHostCrossbuilderDir( root, host, target string, ) string
/{hostpath}/corssbuilders/{target}
func (OverallPathsCalculator) CalculateHostCrossbuildersDir ¶
func (self OverallPathsCalculator) CalculateHostCrossbuildersDir( root, host string, ) string
/{hostpath}/corssbuilders
func (OverallPathsCalculator) CalculateHostDir ¶
func (self OverallPathsCalculator) CalculateHostDir(root, host string) string
func (OverallPathsCalculator) CalculateHostMultiarchDir ¶
func (self OverallPathsCalculator) CalculateHostMultiarchDir( root, host string, ) string
func (OverallPathsCalculator) CalculateMultihostDir ¶
func (self OverallPathsCalculator) CalculateMultihostDir(root string) string
type PackageChecker ¶
type PackageChecker struct { }
func NewPackageChecker ¶
func NewPackageChecker() *PackageChecker
func (*PackageChecker) CheckByFilename ¶
func (self *PackageChecker) CheckByFilename(filename string) (bool, error)
return bool, error: bool - ok or no
type Packager ¶
type Packager struct {
// contains filtered or unexported fields
}
func NewPackager ¶
func NewPackager(site *BuildingSiteCtl) *Packager
func (*Packager) CompressFilesInListsDir ¶
func (*Packager) CompressPatchesAndDestDir ¶
func (*Packager) DestDirCheckCorrectness ¶
type PrePackager ¶
type PrePackager struct {
// contains filtered or unexported fields
}
func NewPrePackager ¶
func NewPrePackager(site *BuildingSiteCtl) *PrePackager
func (*PrePackager) DestDirMoveRootToUsr ¶
func (self *PrePackager) DestDirMoveRootToUsr(log *logger.Logger) error
func (*PrePackager) DestDirMoveUsrToPrefix ¶
func (self *PrePackager) DestDirMoveUsrToPrefix(log *logger.Logger) error
func (*PrePackager) DestDirRenameEtc ¶
func (self *PrePackager) DestDirRenameEtc(log *logger.Logger) error
func (*PrePackager) DestDirRenameVar ¶
func (self *PrePackager) DestDirRenameVar(log *logger.Logger) error
type System ¶
type System struct { ASPs *SystemPackages // contains filtered or unexported fields }
func (*System) GetInstalledASPBuildLogsDir ¶
func (*System) GetInstalledASPDepsDir ¶
func (*System) GetInstalledASPDir ¶
func (*System) GetInstalledASPSumsDir ¶
func (*System) GetMovedRootForCrossbuilder ¶
func (self *System) GetMovedRootForCrossbuilder(host, target string) *SystemMovedRoot
func (*System) GetSystemUpdates ¶
func (self *System) GetSystemUpdates() *SystemUpdates
func (*System) GetSystemValuesCalculator ¶
func (self *System) GetSystemValuesCalculator() basictypes.SystemValuesCalculatorI
func (*System) GetTarballRepoRootDir ¶
func (*System) GetUserCtl ¶
type SystemMovedRoot ¶
type SystemMovedRoot struct {
// contains filtered or unexported fields
}
func NewSystemMovedRoot ¶
func NewSystemMovedRoot(new_root string, sys *System) *SystemMovedRoot
func (*SystemMovedRoot) GetInstalledASPBuildLogsDir ¶
func (self *SystemMovedRoot) GetInstalledASPBuildLogsDir() string
func (*SystemMovedRoot) GetInstalledASPDepsDir ¶
func (self *SystemMovedRoot) GetInstalledASPDepsDir() string
func (*SystemMovedRoot) GetInstalledASPDir ¶
func (self *SystemMovedRoot) GetInstalledASPDir() string
func (*SystemMovedRoot) GetInstalledASPSumsDir ¶
func (self *SystemMovedRoot) GetInstalledASPSumsDir() string
type SystemPackageRegistration ¶
type SystemPackageRegistration struct { ASPName *basictypes.ASPName Pkg []string Sums []string Buildlogs []string Deps []string // contains filtered or unexported fields }
func FindSystemPackageRegistrationByName ¶
func FindSystemPackageRegistrationByName( aspname *basictypes.ASPName, sys *System, ) (*SystemPackageRegistration, error)
func (*SystemPackageRegistration) DeleteAll ¶
func (self *SystemPackageRegistration) DeleteAll() error
func (*SystemPackageRegistration) Found ¶
func (self *SystemPackageRegistration) Found() bool
type SystemPackages ¶
type SystemPackages struct {
// contains filtered or unexported fields
}
func NewSystemPackages ¶
func NewSystemPackages(system *System) *SystemPackages
func (*SystemPackages) FindPackagesByInstalledFilenames ¶
func (self *SystemPackages) FindPackagesByInstalledFilenames( mode string, pattern string, progress_cb func(perc float64, ind, count int), ) (map[string]([]string), error)
TODO: mode should be enum
func (*SystemPackages) FindSystemPackageRegistrationByName ¶
func (self *SystemPackages) FindSystemPackageRegistrationByName( aspname *basictypes.ASPName, ) (*SystemPackageRegistration, error)
func (*SystemPackages) GenASPFileListPath ¶
func (self *SystemPackages) GenASPFileListPath( aspname *basictypes.ASPName, ) (string, error)
func (*SystemPackages) InstallASP ¶
func (self *SystemPackages) InstallASP(filename string) error
func (*SystemPackages) InstallASPReduceToSubRoutine ¶
func (self *SystemPackages) InstallASPReduceToSubRoutine( filename string, print_list bool, ) error
func (*SystemPackages) InstallASP_DestDir ¶
func (self *SystemPackages) InstallASP_DestDir(filename string) error
func (*SystemPackages) InstallASP_FileLists ¶
func (self *SystemPackages) InstallASP_FileLists( filename string, parsed *basictypes.ASPName, ) error
func (*SystemPackages) IsASPInstalled ¶
func (self *SystemPackages) IsASPInstalled( aspname *basictypes.ASPName, ) (bool, error)
func (*SystemPackages) ListAllInstalledASPs ¶
func (self *SystemPackages) ListAllInstalledASPs() ([]*basictypes.ASPName, error)
func (*SystemPackages) ListFilteredInstalledASPs ¶
func (self *SystemPackages) ListFilteredInstalledASPs( host, hostarch string, ) ([]*basictypes.ASPName, error)
func (*SystemPackages) ListInstalledASPFiles ¶
func (self *SystemPackages) ListInstalledASPFiles( aspname *basictypes.ASPName, ) ([]string, error)
func (*SystemPackages) ListInstalledPackageNameASPs ¶
func (self *SystemPackages) ListInstalledPackageNameASPs( name string, host, hostarch string, ) ([]*basictypes.ASPName, error)
func (*SystemPackages) ListInstalledPackageNames ¶
func (self *SystemPackages) ListInstalledPackageNames( host, hostarch string, ) ([]string, error)
func (*SystemPackages) ReduceASP ¶
func (self *SystemPackages) ReduceASP( reduce_to *basictypes.ASPName, reduce_what []*basictypes.ASPName, ) error
func (*SystemPackages) RemoveASP ¶
func (self *SystemPackages) RemoveASP( aspname *basictypes.ASPName, unregister_only bool, called_by_reduce bool, reduce_exclude_files []string, force_removal_if_reduce_is_possible bool, ) error
func (*SystemPackages) RemoveASP_DestDir ¶
func (self *SystemPackages) RemoveASP_DestDir( aspname *basictypes.ASPName, exclude_files []string, keep_shared_objects bool, ) error
func (*SystemPackages) RemoveASP_FileLists ¶
func (self *SystemPackages) RemoveASP_FileLists( aspname *basictypes.ASPName, ) error
type SystemUpdates ¶
type SystemUpdates struct {
// contains filtered or unexported fields
}
func NewSystemUpdates ¶
func NewSystemUpdates(sys *System) *SystemUpdates
func (*SystemUpdates) GDKPixbuffQueryLoaders ¶
func (self *SystemUpdates) GDKPixbuffQueryLoaders() error
func (*SystemUpdates) GlibCompileSchemas ¶
func (self *SystemUpdates) GlibCompileSchemas() error
func (*SystemUpdates) GtkQueryImmodules20 ¶
func (self *SystemUpdates) GtkQueryImmodules20() error
func (*SystemUpdates) GtkQueryImmodules30 ¶
func (self *SystemUpdates) GtkQueryImmodules30() error
func (*SystemUpdates) InstallEtc ¶
func (self *SystemUpdates) InstallEtc(log *logger.Logger) error
func (*SystemUpdates) LDConfig ¶
func (self *SystemUpdates) LDConfig() error
func (*SystemUpdates) ResetSystemPermissions ¶
func (self *SystemUpdates) ResetSystemPermissions(log *logger.Logger) error
func (*SystemUpdates) Sync ¶
func (self *SystemUpdates) Sync() error
func (*SystemUpdates) UpdateMimeDatabase ¶
func (self *SystemUpdates) UpdateMimeDatabase() error
func (*SystemUpdates) UpdatesAfterPkgInstall ¶
func (self *SystemUpdates) UpdatesAfterPkgInstall() error
type SystemValuesCalculator ¶
type SystemValuesCalculator struct {
// contains filtered or unexported fields
}
func NewSystemValuesCalculator ¶
func NewSystemValuesCalculator(sys *System) *SystemValuesCalculator
func (*SystemValuesCalculator) CalculateHostArchDir ¶
func (self *SystemValuesCalculator) CalculateHostArchDir( host, hostarch string, ) string
func (*SystemValuesCalculator) CalculateHostCrossbuilderDir ¶
func (self *SystemValuesCalculator) CalculateHostCrossbuilderDir( host, target string, ) string
/{hostpath}/corssbuilders/{target}
func (*SystemValuesCalculator) CalculateHostCrossbuildersDir ¶
func (self *SystemValuesCalculator) CalculateHostCrossbuildersDir( host string, ) string
/{hostpath}/corssbuilders
func (*SystemValuesCalculator) CalculateHostDir ¶
func (self *SystemValuesCalculator) CalculateHostDir(host string) string
func (*SystemValuesCalculator) CalculateHostMultiarchDir ¶
func (self *SystemValuesCalculator) CalculateHostMultiarchDir( host string, ) string
func (*SystemValuesCalculator) CalculateMultihostDir ¶
func (self *SystemValuesCalculator) CalculateMultihostDir() string
type UserCtl ¶
type UserCtl struct {
// contains filtered or unexported fields
}
func NewUserCtl ¶
func (*UserCtl) CalcDaemonHomeDir ¶
func (*UserCtl) CalcUserHomeDir ¶
func (*UserCtl) RecreateDaemonHomes ¶
func (*UserCtl) RecreateUserDB ¶
Source Files ¶
- BootImgCtl.go
- BootImgInitRdCtl.go
- BootImgSquashCtl.go
- BuildingSiteCtl.go
- BuildingSiteValuesCalculator.go
- MassBuildCtl.go
- OverallPathsCalculator.go
- PackageChecker.go
- Packager.go
- PrePackager.go
- System.go
- SystemDocBook.go
- SystemMovedRoot.go
- SystemPackageRegistration.go
- SystemPackages.go
- SystemUpdates.go
- SystemValuesCalculator.go
- UserCtl.go
- generate.go
Click to show internal directories.
Click to hide internal directories.