]> git.ipfire.org Git - pakfire.git/log
pakfire.git
2 years agostrip: Include PIE files
Michael Tremer [Tue, 22 Nov 2022 13:20:21 +0000 (13:20 +0000)] 
strip: Include PIE files

Fixes: #12999
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackager: Don't print message when a package is being written
Michael Tremer [Tue, 22 Nov 2022 09:54:42 +0000 (09:54 +0000)] 
packager: Don't print message when a package is being written

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodist: Pass absolute path when searching for files
Michael Tremer [Mon, 21 Nov 2022 15:49:05 +0000 (15:49 +0000)] 
dist: Pass absolute path when searching for files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelist: Scanning requires an absolute path
Michael Tremer [Mon, 21 Nov 2022 15:46:41 +0000 (15:46 +0000)] 
filelist: Scanning requires an absolute path

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocontrib: Increase priority of local and decrease bootstrap
Michael Tremer [Mon, 21 Nov 2022 10:47:59 +0000 (10:47 +0000)] 
contrib: Increase priority of local and decrease bootstrap

We prefer using packages from the local repository as they are usually
newer or being tested. The bootstrap repository should always be used as
last resort.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoarch: Fix making build target lowercase
Michael Tremer [Mon, 21 Nov 2022 10:47:06 +0000 (10:47 +0000)] 
arch: Fix making build target lowercase

The format function used to return the length of the string, but that
got changed some time ago.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomount: Cleanup auto-creating mount targets
Michael Tremer [Sat, 19 Nov 2022 15:01:12 +0000 (15:01 +0000)] 
mount: Cleanup auto-creating mount targets

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomount: Fix argument order for bind-mounting device nodes
Michael Tremer [Sat, 19 Nov 2022 15:00:37 +0000 (15:00 +0000)] 
mount: Fix argument order for bind-mounting device nodes

Fixes: #12987
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoutil: touch: Actually set mode
Michael Tremer [Sat, 19 Nov 2022 14:16:26 +0000 (14:16 +0000)] 
util: touch: Actually set mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire-builder: Fix search command
Michael Tremer [Sat, 19 Nov 2022 13:59:36 +0000 (13:59 +0000)] 
pakfire-builder: Fix search command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire-builder: Make search functions re-use some code
Michael Tremer [Sat, 19 Nov 2022 13:55:18 +0000 (13:55 +0000)] 
pakfire-builder: Make search functions re-use some code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire-builder: Make provides work again
Michael Tremer [Sat, 19 Nov 2022 13:24:23 +0000 (13:24 +0000)] 
pakfire-builder: Make provides work again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years ago_pakfire: Make packages hashable
Michael Tremer [Sat, 19 Nov 2022 13:24:03 +0000 (13:24 +0000)] 
_pakfire: Make packages hashable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackages: Export pakfire_package_id
Michael Tremer [Sat, 19 Nov 2022 13:23:45 +0000 (13:23 +0000)] 
packages: Export pakfire_package_id

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire: Add -y switch to CLI to avoid asking questions
Michael Tremer [Thu, 17 Nov 2022 20:41:36 +0000 (20:41 +0000)] 
pakfire: Add -y switch to CLI to avoid asking questions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years ago_pakfire: Fix parsing arguments for Pakfire.update()
Michael Tremer [Wed, 9 Nov 2022 18:10:26 +0000 (18:10 +0000)] 
_pakfire: Fix parsing arguments for Pakfire.update()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoUI: Drop the default confirm callback
Michael Tremer [Wed, 9 Nov 2022 10:08:33 +0000 (10:08 +0000)] 
UI: Drop the default confirm callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoUI: If Pakfire does not have a confirm callback set, log the message
Michael Tremer [Wed, 9 Nov 2022 10:05:52 +0000 (10:05 +0000)] 
UI: If Pakfire does not have a confirm callback set, log the message

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoUI: Move confirm callback into the CLI client
Michael Tremer [Wed, 9 Nov 2022 10:01:34 +0000 (10:01 +0000)] 
UI: Move confirm callback into the CLI client

This way, we do not have to know whether we are running in some sort of
interactive mode, but simply call the callback, or continue if no
callback has been configured.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Fix use of temporary directories
Michael Tremer [Wed, 9 Nov 2022 08:51:39 +0000 (08:51 +0000)] 
build: Fix use of temporary directories

Some paths were hardcoded and some used hidden files which this patch
changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Replace macro to compile Python modules
Michael Tremer [Tue, 8 Nov 2022 18:26:50 +0000 (18:26 +0000)] 
macros: Replace macro to compile Python modules

This also drops compiling modules for Python2

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Log the name of any opened files
Michael Tremer [Tue, 8 Nov 2022 18:01:10 +0000 (18:01 +0000)] 
parser: Log the name of any opened files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Move patch script into macros
Michael Tremer [Tue, 8 Nov 2022 18:00:19 +0000 (18:00 +0000)] 
macros: Move patch script into macros

We no longer have a way to copy any scripts into the build environment,
but we can simply embed them.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Reset the package path after copying
Michael Tremer [Tue, 8 Nov 2022 17:30:51 +0000 (17:30 +0000)] 
repo: Reset the package path after copying

We do not want to leave any trace about where the package was copied
from in the repository database.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodigests: Add convenience function to fetch a digest
Michael Tremer [Fri, 4 Nov 2022 18:21:34 +0000 (18:21 +0000)] 
digests: Add convenience function to fetch a digest

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoarchive: Show better error when digest check fails
Michael Tremer [Fri, 4 Nov 2022 18:21:11 +0000 (18:21 +0000)] 
archive: Show better error when digest check fails

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Fix digest computation
Michael Tremer [Fri, 4 Nov 2022 18:20:47 +0000 (18:20 +0000)] 
downloader: Fix digest computation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoarchive: Ensure reading the archive from the beginning for digest
Michael Tremer [Fri, 4 Nov 2022 18:18:21 +0000 (18:18 +0000)] 
archive: Ensure reading the archive from the beginning for digest

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocontrib: Drop old key file
Michael Tremer [Fri, 4 Nov 2022 17:12:52 +0000 (17:12 +0000)] 
contrib: Drop old key file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Use the URL check function from string.c
Michael Tremer [Fri, 4 Nov 2022 17:08:56 +0000 (17:08 +0000)] 
downloader: Use the URL check function from string.c

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Install "build-essential" by default
Michael Tremer [Fri, 4 Nov 2022 16:48:45 +0000 (16:48 +0000)] 
build: Install "build-essential" by default

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Don't attempt to cleanup any empty filelists
Michael Tremer [Fri, 4 Nov 2022 16:35:40 +0000 (16:35 +0000)] 
filelists: Don't attempt to cleanup any empty filelists

Walking through the list won't work.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Disable using mirror lists
Michael Tremer [Fri, 4 Nov 2022 16:24:20 +0000 (16:24 +0000)] 
repos: Disable using mirror lists

This doesn't work and I have no time to debug this now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodependencies: Fix parsing deps that don't have any space
Michael Tremer [Fri, 4 Nov 2022 16:21:15 +0000 (16:21 +0000)] 
dependencies: Fix parsing deps that don't have any space

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfig: Upgrade IPFire 3 repositories to new URLs
Michael Tremer [Fri, 4 Nov 2022 16:18:30 +0000 (16:18 +0000)] 
config: Upgrade IPFire 3 repositories to new URLs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Fix check for interactive flag
Michael Tremer [Fri, 4 Nov 2022 15:15:11 +0000 (15:15 +0000)] 
build: Fix check for interactive flag

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire-builder: Make it possible to run builds interactive and non-interactive
Michael Tremer [Fri, 4 Nov 2022 15:03:01 +0000 (15:03 +0000)] 
pakfire-builder: Make it possible to run builds interactive and non-interactive

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Require to install all packages in the install test
Michael Tremer [Fri, 4 Nov 2022 11:45:28 +0000 (11:45 +0000)] 
build: Require to install all packages in the install test

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Refactor installing the source package
Michael Tremer [Fri, 4 Nov 2022 11:43:10 +0000 (11:43 +0000)] 
build: Refactor installing the source package

This is required because the old way required the package to be
available on the local filesystem. This way, we only require the package
to exist (usually in the commandline repository).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorequests: Move the solution picking here
Michael Tremer [Fri, 4 Nov 2022 11:27:25 +0000 (11:27 +0000)] 
requests: Move the solution picking here

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorequests: Move fetching the transaction into a separate function
Michael Tremer [Fri, 4 Nov 2022 11:09:16 +0000 (11:09 +0000)] 
requests: Move fetching the transaction into a separate function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorequest: Refactor and remove all those customs functions
Michael Tremer [Fri, 4 Nov 2022 11:02:16 +0000 (11:02 +0000)] 
request: Refactor and remove all those customs functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorequests: Make them private
Michael Tremer [Fri, 4 Nov 2022 09:24:49 +0000 (09:24 +0000)] 
requests: Make them private

I hope this works...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years ago_pakfire: Remove some dead code
Michael Tremer [Fri, 4 Nov 2022 09:20:53 +0000 (09:20 +0000)] 
_pakfire: Remove some dead code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepos: Add convenience function to download packages from cmdline
Michael Tremer [Fri, 4 Nov 2022 09:18:21 +0000 (09:18 +0000)] 
repos: Add convenience function to download packages from cmdline

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostring: Move function to check for URL out of request
Michael Tremer [Fri, 4 Nov 2022 08:44:17 +0000 (08:44 +0000)] 
string: Move function to check for URL out of request

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodaemon: Catch any timeout errors in the log streamer
Michael Tremer [Thu, 3 Nov 2022 21:49:52 +0000 (21:49 +0000)] 
daemon: Catch any timeout errors in the log streamer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years ago_pakfire: Pass target for build()
Michael Tremer [Thu, 3 Nov 2022 21:49:31 +0000 (21:49 +0000)] 
_pakfire: Pass target for build()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodaemon: await the build task to fetch any exceptions
Michael Tremer [Thu, 3 Nov 2022 21:40:35 +0000 (21:40 +0000)] 
daemon: await the build task to fetch any exceptions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: package: Fix dependency check after adding self-provides
Michael Tremer [Thu, 3 Nov 2022 21:08:58 +0000 (21:08 +0000)] 
tests: package: Fix dependency check after adding self-provides

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: file: It is now possible to set relative paths
Michael Tremer [Thu, 3 Nov 2022 21:04:38 +0000 (21:04 +0000)] 
tests: file: It is now possible to set relative paths

Fixes: #12976
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackages: Replace maintainers with packagers
Michael Tremer [Thu, 3 Nov 2022 20:59:30 +0000 (20:59 +0000)] 
packages: Replace maintainers with packagers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackage: Add packages available in the build environment to the package
Michael Tremer [Thu, 3 Nov 2022 20:51:17 +0000 (20:51 +0000)] 
package: Add packages available in the build environment to the package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackager: Don't set the filelist twice
Michael Tremer [Thu, 3 Nov 2022 20:50:48 +0000 (20:50 +0000)] 
packager: Don't set the filelist twice

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoscripts: Fix reading binary data in check-interpreters
Michael Tremer [Thu, 3 Nov 2022 20:10:18 +0000 (20:10 +0000)] 
scripts: Fix reading binary data in check-interpreters

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoscripts: Use correct variable name for BUILDROOT
Michael Tremer [Thu, 3 Nov 2022 19:54:14 +0000 (19:54 +0000)] 
scripts: Use correct variable name for BUILDROOT

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoutil: Drop unused function pakfire_archive_copy_data
Michael Tremer [Thu, 3 Nov 2022 13:59:56 +0000 (13:59 +0000)] 
util: Drop unused function pakfire_archive_copy_data

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoutil: Allow setting file mode for temporary files
Michael Tremer [Wed, 2 Nov 2022 18:38:29 +0000 (18:38 +0000)] 
util: Allow setting file mode for temporary files

Fixes: #12974
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agolibpakfire.sym: Drop long gone function
Michael Tremer [Tue, 1 Nov 2022 14:31:25 +0000 (14:31 +0000)] 
libpakfire.sym: Drop long gone function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoproblems: Drop pakfire_problem_get_solutions in favour of *_next_solution
Michael Tremer [Tue, 1 Nov 2022 14:28:32 +0000 (14:28 +0000)] 
problems: Drop pakfire_problem_get_solutions in favour of *_next_solution

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorequest: No longer return problems when solving failed
Michael Tremer [Tue, 1 Nov 2022 14:22:15 +0000 (14:22 +0000)] 
request: No longer return problems when solving failed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Export all repository configuration into the environment
Michael Tremer [Tue, 1 Nov 2022 14:01:44 +0000 (14:01 +0000)] 
build: Export all repository configuration into the environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Make functions to check if internal or local available everywhere
Michael Tremer [Tue, 1 Nov 2022 14:00:28 +0000 (14:00 +0000)] 
repo: Make functions to check if internal or local available everywhere

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Add a function to walk through all repositories
Michael Tremer [Tue, 1 Nov 2022 13:38:08 +0000 (13:38 +0000)] 
repo: Add a function to walk through all repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Disable -fstack-clash-protection on aarch64
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>
2 years agocompress: Always clear any extended attributes on extraction
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>
2 years agodaemon: Configure the build logger to propagate everything
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>
2 years agorepos: Be more tolerant when keys are being used twice
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>
2 years agopakfire: Setup logging on regular CLI tool
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>
2 years agodaemon: Write result into a temporary directory and upload the packages
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>
2 years agobuild: Perform an installation test after the build
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>
2 years agorequest: Implement a new interface how to walk through problems/solutions
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>
2 years agorequest: Allow to solve a request without returning a transaction & problems
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>
2 years agobuild: No longer set a default target
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>
2 years agobuild: Copy the result to the local repository and target
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>
2 years agobuild: Read all built packages into a package list
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>
2 years agopackagelist: Add a function to walk through all packages on the list
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>
2 years agorepo: Add function to export a repository to a package list
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>
2 years agobuild: Rename the results repository
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>
2 years agobuild: Make the local repository just a regular repository
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>
2 years agobuild: Write all packages to the @build repository
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>
2 years agobuild: Create a new repository for the build result
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>
2 years agoRevert "package: Drop installing self-provides"
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>
2 years agocompress: Show how large a package is
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>
2 years agobuild: Add switch to disable tests
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>
2 years agobuild: Add switch to disable the ccache
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>
2 years agobuilder: Allow building multiple packages one after the other
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>
2 years agojail: Try to be smarter when mapping UID/GIDs
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>
2 years agopwd: Sum up reading subuid/subgid
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>
2 years agopakfire: Read the effective UID/GID
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>
2 years agopakfire: Add function to read the UID/GID pakfire is running as
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>
2 years agotests: package: Fix typo in database ID variable
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>
2 years agomacros: Extract any tarballs as our own user
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>
2 years agofile: Ignore any errors when trying to remove the parent
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>
2 years agodist: Fix splitting mirror list
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>
2 years agopakfire-builder: Make --disable-snapshot a switch for build
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>
2 years agopackages: Make it possible to set the database ID
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>
2 years agodb: Improve error reporting
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>
2 years agopackage: Refactor reading the filelist
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>
2 years agotests: Add a test that writes a filelist and reads it back
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>