Commit Graph

434 Commits

Author SHA1 Message Date
Martchus b9021286bf Apply change of `global.h` template 2024-02-27 00:51:43 +01:00
Martchus ac30fd2996 Use `CRYPTO_memcmp` to compare password to prevent timing attacks 2024-02-21 20:43:38 +01:00
Martchus cc05267338 Allow parsing sub-variants of mingw-w64 packages
This might be useful for providing additional targets in the future. The
exact names of those sub-variants are still subject to change.
2024-02-18 15:54:58 +01:00
Martchus 56ee1325f0 Add "AUR-only" flag for "Prepare build" action
This might be useful to avoid accidentally rebuilding a package with a
local/custom override withiout actually updating the custom PKGBUILD.
2024-02-11 17:40:28 +01:00
Martchus 9150d90233 Fix handling of "Use container" flag for the "Prepare build" action 2024-02-09 23:09:38 +01:00
Martchus 287b20e793 Update copyright date 2024-02-09 23:09:38 +01:00
Martchus f5eab41e74 Improve a few details in the README 2023-12-25 01:05:09 +01:00
Martchus 82af909b9f Prevent cmake-format from messing with the comment about BOOST_ASIO_DISABLE_CONCEPTS 2023-12-21 21:00:39 +01:00
Martchus 4e141f7a04 Avoid misleading name of lock variable 2023-12-21 20:54:16 +01:00
Martchus 5d5b673b3c Improve updating package database when loading library dependencies
* Make use of `PackageUpdater` more efficient by avoiding multiple calls of
  `addDepsAndProvidesFromOtherPackage`
* Fix leaving old provides in the database by splitting the update via new
  `beginUpdate()` and `endUpdate()` functions
2023-12-21 20:51:38 +01:00
Martchus da19885d8b Ensure case of empty package name is handled in find/remove functions 2023-12-19 21:41:38 +01:00
Martchus 8deeb0a82b Remove non-forcing package updates
This was only used in tests but was otherwise not very useful as we
normally need to ensure the persistent database is updated as well.
2023-12-19 21:34:18 +01:00
Martchus f0761ed70e Apply clang-format 2023-12-19 21:32:05 +01:00
Martchus 303d0bd17b Clear entries from package cache correctly 2023-12-17 01:41:13 +01:00
Martchus 40e2fb82de Avoid unqualified use of `std::move` 2023-12-16 23:07:00 +01:00
Martchus 141d8fa3f5 Allow dumping package databases 2023-12-16 22:13:44 +01:00
Martchus 00b737e334 Fix constness of `MDBOutVal::get()` 2023-12-16 22:11:42 +01:00
Martchus 400d260230 Improve error messages when an exception occurs when fixing DBs 2023-12-16 21:04:41 +01:00
Martchus 0984cf0d0c Make package database path configurable 2023-12-16 21:03:49 +01:00
Martchus ec493b3454 Remove unused includes 2023-12-09 23:28:02 +01:00
Martchus 0d4b6c1ad0 Fix build preparation when an empty dependency is present 2023-12-02 20:35:44 +01:00
Martchus edd78667c5 Allow configuring retention for build actions 2023-11-23 18:49:43 +01:00
Martchus 24e2ec0136 Fix reporting an error during build preparation as such 2023-11-22 21:50:45 +01:00
Martchus 653867a49c Allow parsing binaries via `pacparse` 2023-11-17 01:03:26 +01:00
Martchus df55813d59 Add `pacparse` utility to parse package files 2023-11-09 16:22:09 +01:00
Martchus bf67d1914d Allow using `repo-add`/`repo-remove` from container in repo management actions 2023-11-09 13:48:57 +01:00
Martchus 60a477af99 Keep setup lock while checking executables
In the error case we use the fields from `m_setup.building` so the lock
needs to be kept.
2023-11-09 13:46:47 +01:00
Martchus 28c079ee00 Round the figures in the resource usage table 2023-11-09 13:06:53 +01:00
Martchus 72d1999e72 Fallback to using `updpkgsums`/`repo-add` from container for containerized builds
If those tools are not installed on the host but we use `makecontainerpkg`
anyways for the build we might as well use it to run these additional tools
as well.
2023-11-08 17:27:46 +01:00
Martchus 10e86c759c Avoid running into exception when checking whether executable exists
When we cannot even check whether the executable exists we can just assume
it doesn't.
2023-11-08 17:26:04 +01:00
Martchus e108c98826 Apply clang-format 2023-11-08 17:25:18 +01:00
Martchus c31027fc7f Pass `PKGNAME` to `makecontainerpkg` to avoid sourcing PKGBUILD again 2023-11-08 16:08:54 +01:00
Martchus 1a4b9282d2 Allow using `makecontainerpkg` in prepare action 2023-11-08 15:09:42 +01:00
Martchus 434e1a8f0c Improve database selection when invoking package search from params
* Select all relevant DBs, also when multiple `db` parameters are present
* Avoid the architecture filter from interfering by simply selecting "All
  archs" when starting a package search from query params
2023-11-08 14:35:28 +01:00
Martchus f0d9b684df Make default arch configurable 2023-11-08 14:02:47 +01:00
Martchus 5bcd0dee6e Make repo selection by arch easier
* Select only repos of default arch initially
* Select all repos of the architecture when selecting a different arch
2023-11-08 13:39:06 +01:00
Martchus 6016ff7658 Fix typo in lmdb-safe docstring 2023-11-08 13:30:20 +01:00
Martchus 5a006c6b6d Use CMake `option()` correctly 2023-10-16 23:50:01 +02:00
Martchus d3e556cea7 Notify systemd when the service is ready or stopping 2023-10-16 23:48:19 +02:00
Martchus 37ee4f8fa7 Fix assert message in allocatePointer() function of lmdb-safe 2023-10-16 23:23:06 +02:00
Martchus 7cea1c5f41 Fix package search for exact name; fix use after move in `routes.cpp` 2023-09-11 21:49:43 +02:00
Martchus 85736af4bb Avoid warnings about unqualified calls to `std::move` in `routes.cpp` 2023-09-11 21:43:36 +02:00
Martchus 12722741c8 Add package-lock.json 2023-09-09 00:00:17 +02:00
Martchus 3f3cc917d7 Update xterm.js to 5.3.0 2023-09-08 23:56:33 +02:00
Martchus 0acbc2d193 Avoid resetting updated version if the package has already been built 2023-09-04 21:20:10 +02:00
Martchus 61756023db Fix accidentally adding an old package version to the repository
Ensure updated version from previous run is cleared
2023-09-04 21:06:38 +02:00
Martchus 91ee500b0a Show amended upstream version correctly 2023-09-03 22:09:28 +02:00
Martchus c816972a16 Avoid having to rely on `pkgver()` yielding a newer version for VCS packages
Bump pkgver/pkgrel of VCS packages. This should help with case (1) and
should not interfere with case (2).

(1) If the pkgver does not change after all then makepkg leaves the bumped
    pkgrel untouched.
(2) If the pkgver does change then makepkg will reset the bumped pkgrel and
    it is as if we haven't changed anything.
2023-09-03 14:29:04 +02:00
Martchus cda3c34806 Avoid CMake deprecation warning by bumping version 2023-07-23 21:17:53 +02:00
Martchus ca4b35cbf0 Add favicon 2023-06-20 17:59:38 +02:00