| Age | Commit message (Collapse) | Author |
|
This allows the packaging infrastructure to distinguish between
externally registered azalea packages and built-in packages, allowing
for more assumptions to be made, and more sanity checks.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is mostly useful for fetching dependencies before a build.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This provides a generic way for any package to reject cross-compilation
without going through its helper.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
There is only one primary source directory per package, so naming the
directory after the package makes little sense, and introduces many
complications and ugliness of having to refer to their own name. This
change also moves extras to /extra, preserving the relative pathnames.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These used to never accept user input, so unrecovered panics were
considered an acceptable way to notify a bad API usage. These now accept
user input via registered azalea files, so make them more elegant by
panicking errors only, which enables error recovery via the azalea
evaluator, and enables better error messages pointing to azalea source
code, if the error originated from azalea.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This does a bunch of unnecessary things and is another heavy piece of
GNU software we can get rid of. Toybox patch works just fine. This
causes rebuilds due to backup files no longer being created.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This change avoids duplicating this piece of code all over the place.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is quite difficult to figure out just from reading source code.
This change documents as much of azalea as possible, excluding some
fields intended for internal use only.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This allows the prefix to be changed, at runtime if needed.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is different from linuxArch for PowerPC. While the alternative
usually works fine, compiling compiler-rt builtins produces no output
with linuxArch. The musl installation also uses this name.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This must bypass the cross-compiling infrastructure, a patched source
tree is not arch-specific.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Meson does not want to play nice and accept arguments or environment
variables for cross-compiling configuration, so a so-called mfile had
to be generated and placed here.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
For situations where a package uses a just-built program as part of its
own build process.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is otherwise never added to the cross root.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Cross-compilation is not applicable to everything, and it is quite
wasteful rebuilding the same thing for every architecture when it is
just using host tools to create arch-independent files.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This successfully cross-compiles the toolchain. More work is needed to
support cross-compilation on all native helpers and existing packages.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is cleaner and prepares for cross-compilation support.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This removes most redundant runtime arguments and is useful for cross-compilation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Closes #43.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This bootstrap step is not required for a native Rosa OS stage0 distribution.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This avoids having to rebuild cmd/mbf over and over.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This removes potential footguns caused by mutable builtins without requiring unnecessary clones.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This helps avoid inadvertently increasing bootstrap input count.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This sets known de facto standard environment variables to enable colours during builds.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This change also adds a fourth stage to the bootstrap machinery, offering more correct toolchain validation that works around LLVM dynamic linking flaws.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This method predates the helper infrastructure, it is awkward to use and difficult to maintain for the replacement bootstrap mechanism. This change prepares for its removal.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This replaces all xz invocations with the native decompressor. This also significantly cleans up the Gentoo stage3 bootstrap path.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This makes it slightly easier to invoke when working on a package via --enter.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This seems more intuitive than letting the filesystem decide, and having to use awkward names.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This centralises the workaround for surprisingly common buggy scripts with nonstandard hardcoded paths.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Source is not always required. This improves flexibility.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Missing kernel headers implicitly disables many useful things. This change also enables PGO and installs symlink, since a rebuild is unavoidable.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This is useful for external container tooling.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This information is useful to external tooling and makes a lot more sense in this package than cmd/mbf. This change also fixes non-native artifact resolution during clean.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This improves readability.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Nothing can depend on this, so remove it from the namespace.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The go toolchain predates all abstractions currently available. This migration causes rebuilds due to internal cleanups affecting the final build script.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This change also combines the createDir and wantsDir methods, and replaces the non-inplace target of the generic helper with a deterministic path.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These no longer serve any purpose.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
The rest are migrated individually.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This benefits greatly from the new generic helper.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This also introduces the generic helper for unusual build scripts.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This can be invoked from azalea.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This also enables concurrent evaluation.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
Useful to track performance regressions over migrations.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|
|
These are quite trivial, so migrate them in one pass.
Signed-off-by: Ophestra <cat@gensokyo.uk>
|