Age | Commit message (Collapse) | Author |
|
There's pre_configure to do things required by the configure script,
let's also add post_configure for things not covered by the configure
script.
The specific use case is overwriting a file created by python3's
configure script.
|
|
When removing and recreating the Build directory, it's quite annoying
having to edit/remove Ports/packages.db as the installer won't install
previously installed port dependencies again if they're still listed.
This problem is easily solved by just considering packages.db a
build-specific file.
|
|
Just a small modification so that ports that are configured e.g.
using cmake don't need a dummy configure file anymore.
|
|
Calling installdepends in do_fetch seems kinda silly and unexpected.
Let's add a separate step with the same name instead.
|
|
|
|
Let's keep things consistent, .diff is the name we use pretty much
everywhere. Also tweak the glob in .port_includes.sh to be
'patches/*.patch' rather than just 'patches/*'.
|
|
|
|
* Add SERENITY_ARCH option to CMake for selecting the target toolchain
* Port all build scripts but continue to use i686
* Update GitHub Actions cache to include BuildIt.sh
|
|
Increases the number of successfully building ports from
27 to 36 (of 56) on my system.
|
|
Closes https://github.com/SerenityOS/serenity/issues/2080
|
|
This is useful if we want to do something after patching but before
running the configure script - e.g. creating the configure script using
another script :^)
|
|
I've added a post_install step to the system that allows you to run
arbitrary commands after the regular install step.
This allows scripts that start with "#!/bin/bash" to work in Serenity.
|
|
* Add authenticity methods: sig, asc, md5sum, sha1sum, sha256sum
* Split patch into own step
* Improve extraction and patching: only do it, if it hasn't already be done,
to do that, hidden files are created when a file is extracted or a patch is
applied
* Patch function is named patched_internal to not overwrite patch command in /usr/bin
|
|
When running ./package.sh to rebuild an already installed port, we would not
want to spend time re-downlodaing the same tarball again. Ideally, this should
use some sort of hash checking to ensure the file is not truncated or something,
but this is good enough for now.
|
|
The build system uses relative paths to the toolchain binaries, so
modifying $PATH is no longer necessary, and nothing needs
$SERENITY_ROOT anymore.
|
|
|
|
|
|
Partial revert of 704f48d7f3a1a88047a64b4e2939878d6d4fafb8.
These changes made the ports system unusable.
|
|
Ports/.port_include.sh, Toolchain/BuildIt.sh, Toolchain/UseIt.sh
have been left largely untouched due to use of Bash-exclusive
functions and variables such as $BASH_SOURCE, pushd and popd.
|
|
Now uninstalling should just work once we have plists in place.
|
|
Much redundancy is removed from package scripts with this system.
It also supports simple dependency management, uninstalling (through
BSD ports style plist files), cleaning up after itself (with clean,
clean_dist, clean_all commands), etc.
|
|
Export the appropriate CC and CXX to all port commands.
|
|
This fixes downloading files from github when building ports.
|
|
I didn't look into why, but for some reason the SDL2 cmake build system
thinks it should build against PulseAudio which we definitely don't have.
So just tell it explicitly not to do that.
Fixes #265.
|
|
|
|
Doesn't actually run yet. in_term's read() fails with EFAULT for reasons that
are presently beyond me, points to a bug in Serenity.
|
|
|
|
|
|
This way, we don't (in the ports themselves) depend on perl as a public
interface, which means if we ever have to, we can port to something else easier.
|
|
This doesn't seem to go wrong anymore.
|
|
Also don't run cd for the initial git clone (DERP!), and other bash port fixes.
|
|
* Prints what is run, which is useful for trace purposes.
* Fix autotools configure to respect arguments
* Add run_patch for applying patches
|
|
|