Commit Graph

32 Commits

Author SHA1 Message Date
2071327a71 Fix building packages using signed git repositories as source 2022-02-25 23:09:16 +01:00
f088e54c61 lmdb: Use package cache when querying packages for dependencies
* Use package cache when querying packages for dependencies or library
  names
* Avoid manual instantiations of `std::shared_ptr<Package>`
2022-01-21 20:35:43 +01:00
2ffa6629c8 lmdb: Use lmdb to store packages and dependency indices 2022-01-18 21:50:53 +01:00
6f652922cd Add lookup for repo-specific config file path
This could be useful to create another repository with packages that are
built using different compile flags, e.g. optimized for certain processors.
2021-11-14 22:59:46 +01:00
2adc80e5fc Override existing symlinks when adding signatures to repo 2021-11-03 16:32:38 +01:00
893a8473ad Override existing symlinks when adding packages to repo 2021-11-03 16:06:16 +01:00
755e1958d3 Allow overriding existing files in repository
When `repo-add` fails but files could be copied before refusing to override
is actually very annoying because one has to delete the files before
restarting the build task.
2021-10-07 18:12:44 +02:00
672f3b4e97 Fix staging check for split packages
* Consider all split packages when skipping an affected package
2021-09-30 22:23:54 +02:00
2ad4a39aea Handle case when a split package overrides the archs from the base 2021-08-28 00:25:09 +02:00
e5f4057c61 Use BufferSearch from c++utilities 2021-07-16 16:01:23 +02:00
49aebdd8a5 Fix typos found via codespell --skip .git -w 2021-07-03 19:59:57 +02:00
8b70cc5f8e Clear added/removed provides from previous builds 2021-06-22 00:02:41 +02:00
0a55412625 Remove unused #include 2021-06-21 23:58:34 +02:00
9359004a10 Allow resetting chroot settings as well when preparing build 2021-05-16 16:49:09 +02:00
efbcef5e6e Fix error handling when makechrootpkg can not be invoked 2021-05-16 13:49:57 +02:00
6101eaa6b6 Ensure staging flag is not unset 2021-04-28 22:19:10 +02:00
a96ba707cd Populate list of packages to be re-built also for removed libraries 2021-04-28 21:58:33 +02:00
e4755a283b Prevent running out of memory when signing split packages
* Launch only up to 4 gpg processes at a time
* Prevent `gpg: signing failed: Nicht genügend Hauptspeicher verfügbar`
2021-04-17 17:30:18 +02:00
1c75e8f957 Allow signing packages manually after the build
Simply adding `--sign` to the `makepkg` flags doesn't work because it would
require setting up GPG within the chroot environment (of `makechrootpkg`).

When debugging it is anyways annoying that `makepkg` sends the `gpg` output
to `/dev/null`. This way the logs are preserved.
2021-03-14 21:53:51 +01:00
45bf4fa234 Handle signature file when adding/removing/moving/checking/cleaning packages 2021-03-14 01:53:40 +01:00
94b39f55dc Lock working copy directory as well (as root directory) 2021-03-06 17:08:04 +01:00
556a749362 Improve lock-related code in conductbuild.cpp 2021-03-02 18:30:40 +01:00
930d449333 Fix handling locks in ConductBuild 2021-02-25 23:20:07 +01:00
0760860c6d Log lock acquisitions/releases 2021-02-25 22:12:56 +01:00
b7f27cb0a0 Use locks to prevent multiple actions accessing the same db files and chroot dirs 2021-02-22 23:44:06 +01:00
f040418bdd Avoid checking for failed dependencies when processing the last package of batch 2021-02-13 12:54:01 +01:00
97001740e2 Do enable staging in the current batch when processing the very first package
Likely not really relevant because the function should only be called when
processing the 2nd or further packages. However, this way it seems a little
bit less error prone.
2021-02-13 12:52:54 +01:00
b556c39cd7 Skip the current package when checking for failed dependencies
We usually wouldn't expect a package to depend on itself but the different
packages build as part of one split-package might do.
2021-02-13 12:30:13 +01:00
3fe15fb081 Add missing newline when logging failed makechrootpkg invocation 2021-02-13 12:28:42 +01:00
cfdf980511 Avoid constructing extra string in ConductBuild::dumpBuildProgress() 2021-02-08 23:54:03 +01:00
aa356944da Log process IDs of started sub processes 2021-02-08 23:54:02 +01:00
c1554f4c87 Initial import 2021-02-08 23:53:56 +01:00