]>
git.ipfire.org Git - people/stevee/pakfire.git/log
Michael Tremer [Tue, 1 Nov 2022 13:21:30 +0000 (13:21 +0000)]
macros: Disable -fstack-clash-protection on aarch64
The bootstrap toolchain is too old and does not support this.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 1 Nov 2022 13:17:39 +0000 (13:17 +0000)]
compress: Always clear any extended attributes on extraction
We use those attributes in the tarball, but we don't want them to be
extracted to disk for now.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 1 Nov 2022 13:08:09 +0000 (13:08 +0000)]
daemon: Configure the build logger to propagate everything
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 1 Nov 2022 13:07:25 +0000 (13:07 +0000)]
repos: Be more tolerant when keys are being used twice
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 1 Nov 2022 12:56:43 +0000 (12:56 +0000)]
pakfire: Setup logging on regular CLI tool
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 1 Nov 2022 12:49:36 +0000 (12:49 +0000)]
daemon: Write result into a temporary directory and upload the packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 18:13:59 +0000 (18:13 +0000)]
build: Perform an installation test after the build
We will try to install all packages that have been built and log any
errors if that was not possible including potential solutions.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 18:12:17 +0000 (18:12 +0000)]
request: Implement a new interface how to walk through problems/solutions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 17:59:56 +0000 (17:59 +0000)]
request: Allow to solve a request without returning a transaction & problems
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 16:44:45 +0000 (16:44 +0000)]
build: No longer set a default target
We automatically copy everything to the local repository if it exists.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 16:44:18 +0000 (16:44 +0000)]
build: Copy the result to the local repository and target
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 16:23:40 +0000 (16:23 +0000)]
build: Read all built packages into a package list
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 16:11:06 +0000 (16:11 +0000)]
packagelist: Add a function to walk through all packages on the list
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 16:10:39 +0000 (16:10 +0000)]
repo: Add function to export a repository to a package list
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 15:33:23 +0000 (15:33 +0000)]
build: Rename the results repository
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 15:27:18 +0000 (15:27 +0000)]
build: Make the local repository just a regular repository
Fixes: #12970
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 15:16:17 +0000 (15:16 +0000)]
build: Write all packages to the @build repository
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 15:12:14 +0000 (15:12 +0000)]
build: Create a new repository for the build result
That will allow us to perform some post-build checks.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 11:28:37 +0000 (11:28 +0000)]
Revert "package: Drop installing self-provides"
This reverts commit
9a9d2e5897c780cc9fd3c2fdeb821fd5b7e6eed9.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 11:19:03 +0000 (11:19 +0000)]
compress: Show how large a package is
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 11:14:03 +0000 (11:14 +0000)]
build: Add switch to disable tests
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:58:06 +0000 (10:58 +0000)]
build: Add switch to disable the ccache
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:55:57 +0000 (10:55 +0000)]
builder: Allow building multiple packages one after the other
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:32:39 +0000 (10:32 +0000)]
jail: Try to be smarter when mapping UID/GIDs
This still doesn't work any I have absolutely no idea why. It shouldn't
be a problem :(
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:18:30 +0000 (10:18 +0000)]
pwd: Sum up reading subuid/subgid
I misinterpreted the format of /etc/subgid and used the group name when
instead it is the same format as /etc/subuid.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:15:39 +0000 (10:15 +0000)]
pakfire: Read the effective UID/GID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:15:02 +0000 (10:15 +0000)]
pakfire: Add function to read the UID/GID pakfire is running as
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 31 Oct 2022 10:13:15 +0000 (10:13 +0000)]
tests: package: Fix typo in database ID variable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 16:38:31 +0000 (16:38 +0000)]
macros: Extract any tarballs as our own user
This works around a problem with the jail at the moment which only has
one user ID available.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 16:38:10 +0000 (16:38 +0000)]
file: Ignore any errors when trying to remove the parent
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 16:10:37 +0000 (16:10 +0000)]
dist: Fix splitting mirror list
It could happen that an empty string passed as a mirror which caused an
invalid download URL being generated.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 15:38:27 +0000 (15:38 +0000)]
pakfire-builder: Make --disable-snapshot a switch for build
There is no point in having this as a global configuration option.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 15:34:42 +0000 (15:34 +0000)]
packages: Make it possible to set the database ID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 15:34:15 +0000 (15:34 +0000)]
db: Improve error reporting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 10:30:24 +0000 (10:30 +0000)]
package: Refactor reading the filelist
The old approach never returned any results. This one finally works.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Thu, 27 Oct 2022 10:30:01 +0000 (10:30 +0000)]
tests: Add a test that writes a filelist and reads it back
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 20:49:04 +0000 (20:49 +0000)]
packages: Don't set string after removing it
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 20:48:26 +0000 (20:48 +0000)]
repos: Don't worry about our repodata
This will be implicitely created by libsolv.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 20:02:34 +0000 (20:02 +0000)]
tests: Add some tests for packages with invalid inputs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:51:36 +0000 (19:51 +0000)]
tests: Test package UUID functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:42:19 +0000 (19:42 +0000)]
packages: Internalize the pool when fetching numeric values
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:41:55 +0000 (19:41 +0000)]
packages: Fix fetching NEVRA
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:41:26 +0000 (19:41 +0000)]
tests: Set various package attributes and read them back
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:41:00 +0000 (19:41 +0000)]
tests: Add a test that checks if two values are equal
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:13:30 +0000 (19:13 +0000)]
Add some more error messages in dist/parser
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 19:12:34 +0000 (19:12 +0000)]
packages: Silently ignore any invalid dependencies
This might be a bad idea, but there are comments and such things here
that we would need to filter out.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 17:59:47 +0000 (17:59 +0000)]
tests: Add a simple test for package dependencies
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 17:54:42 +0000 (17:54 +0000)]
libpakfire.sym: Remove unknown function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 17:53:37 +0000 (17:53 +0000)]
packages: Unify the dependency functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 26 Oct 2022 16:40:56 +0000 (16:40 +0000)]
packages: Move pakfire_package_get/set_path into string function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 17:57:32 +0000 (17:57 +0000)]
packages: Create a unified numbers function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 17:21:55 +0000 (17:21 +0000)]
packages: Move pakfire_package_{g,s}et_source_* functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 17:04:19 +0000 (17:04 +0000)]
packages: Move pakfire_package_get_source_package into string function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:58:30 +0000 (16:58 +0000)]
packages: Add functions to easily set UUIDs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:42:18 +0000 (16:42 +0000)]
packages: Replace pakfire_package_{g,s}_build_id with string function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:35:55 +0000 (16:35 +0000)]
packages: Move pakfire_package_{g,s}et_build_host into string function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:27:12 +0000 (16:27 +0000)]
packages: Make pakfire_package_is_installed private
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:21:41 +0000 (16:21 +0000)]
packages: Move pakfire_package_{g,s}et_filename into string function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:09:45 +0000 (16:09 +0000)]
tests: makefile: Fix forgotten string functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:06:43 +0000 (16:06 +0000)]
_pakfire: Drop function to add a new package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 16:05:35 +0000 (16:05 +0000)]
packages: Make constructor function more similar to others
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 15:42:49 +0000 (15:42 +0000)]
packages: Drop old property functions for strings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 14:42:04 +0000 (14:42 +0000)]
packages: Add a combined function to get/set string arguments
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 14:10:22 +0000 (14:10 +0000)]
tests: Add a very simple test to create a package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 14:09:04 +0000 (14:09 +0000)]
archive: Fetch filelist from JSON for new packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 12:39:47 +0000 (12:39 +0000)]
pakfire-build: Remove debug line
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 25 Oct 2022 12:39:27 +0000 (12:39 +0000)]
_pakfire: Correctly free the package dump
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 24 Oct 2022 10:49:30 +0000 (10:49 +0000)]
daemon: Remove any trailing newlines
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Mon, 24 Oct 2022 10:49:12 +0000 (10:49 +0000)]
daemon: Log the received Pakfire configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 20:54:05 +0000 (20:54 +0000)]
daemon: Call the finished handler after a job has finished
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 20:03:45 +0000 (20:03 +0000)]
daemon: Drop workers logger and use daemon logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 20:03:23 +0000 (20:03 +0000)]
daemon: Open the log file in text mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 18:02:47 +0000 (18:02 +0000)]
hub: Log that we joined the queue
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 18:01:49 +0000 (18:01 +0000)]
daemon: Setup the correct logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:57:10 +0000 (17:57 +0000)]
daemon: Upload the log after the build has finished
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:39:44 +0000 (17:39 +0000)]
client: Fix connection check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:33:43 +0000 (17:33 +0000)]
Merge branch 'master' of ssh://people.ipfire.org/pub/git/pakfire
Michael Tremer [Sun, 23 Oct 2022 17:33:25 +0000 (17:33 +0000)]
client: Add command to list all uploads
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:26:59 +0000 (17:26 +0000)]
client: Create a subparser for uploads
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:24:01 +0000 (17:24 +0000)]
client: Drop unimplemented commands
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:22:29 +0000 (17:22 +0000)]
client: Drop wrapper class and connect straight to the hub
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 17:12:21 +0000 (17:12 +0000)]
client: Implement deleting uploads
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 14:53:15 +0000 (14:53 +0000)]
arch: Fix off-by-one error in allocation
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 23 Oct 2022 14:45:48 +0000 (14:45 +0000)]
Merge branch 'master' of ssh://people.ipfire.org/pub/git/pakfire
Michael Tremer [Sun, 23 Oct 2022 14:44:44 +0000 (14:44 +0000)]
arch: Add function that returns a list of all supported arches
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:54:57 +0000 (18:54 +0000)]
client: Implement sending the build repository
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:48:09 +0000 (18:48 +0000)]
archive: Don't read the distribution twice
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:46:58 +0000 (18:46 +0000)]
packages: Write/read distro tag from metadata
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:44:50 +0000 (18:44 +0000)]
distro: Add a function that creates the tag
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:26:35 +0000 (18:26 +0000)]
file: Accept relative paths and make them absolute
I have no idea what new problems this will create, but let's try...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:26:03 +0000 (18:26 +0000)]
file: Correctly return the error code
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 18 Oct 2022 18:25:36 +0000 (18:25 +0000)]
compress: Add entry to filelist before we modify it
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 10:09:39 +0000 (10:09 +0000)]
repo: Store the fingerprint of the imported key
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 12 Oct 2022 09:25:39 +0000 (09:25 +0000)]
repos: Read key immediately and write it to the config
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 16:09:07 +0000 (16:09 +0000)]
config: Continue after parsing a multiline value
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 16:08:46 +0000 (16:08 +0000)]
config: Increase maximum length of values
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 16:08:12 +0000 (16:08 +0000)]
contrib: Embed key into the repository configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 16:00:50 +0000 (16:00 +0000)]
_pakfire: repo: Remove function to export configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 16:00:17 +0000 (16:00 +0000)]
config: Add function to format values
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Tue, 11 Oct 2022 14:37:18 +0000 (14:37 +0000)]
config: Dump configuration files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>