]> git.ipfire.org Git - pakfire.git/log
pakfire.git
22 months agotransaction: Initialize the job queue earlier
Michael Tremer [Mon, 25 Sep 2023 16:53:58 +0000 (16:53 +0000)] 
transaction: Initialize the job queue earlier

It could happen that we try to free the queue when it has not been
initialized.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agodownloader: Correctly initialize cURL
Michael Tremer [Mon, 25 Sep 2023 15:34:57 +0000 (15:34 +0000)] 
downloader: Correctly initialize cURL

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Fix writing the separator line
Michael Tremer [Mon, 25 Sep 2023 15:33:42 +0000 (15:33 +0000)] 
transaction: Fix writing the separator line

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocli: pakfire: Initilize config structs for install/update actions
Michael Tremer [Mon, 25 Sep 2023 15:24:31 +0000 (15:24 +0000)] 
cli: pakfire: Initilize config structs for install/update actions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocli: Link against our own libpakfire library
Michael Tremer [Mon, 25 Sep 2023 15:21:01 +0000 (15:21 +0000)] 
cli: Link against our own libpakfire library

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocli: pakfire: Use transaction stuff to install packages
Michael Tremer [Mon, 25 Sep 2023 15:17:28 +0000 (15:17 +0000)] 
cli: pakfire: Use transaction stuff to install packages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agolibpakfire: Fix loading repositories
Michael Tremer [Mon, 25 Sep 2023 14:39:03 +0000 (14:39 +0000)] 
libpakfire: Fix loading repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocli: pakfire: Implement enabling/disabling repos on CLI
Michael Tremer [Mon, 25 Sep 2023 14:13:11 +0000 (14:13 +0000)] 
cli: pakfire: Implement enabling/disabling repos on CLI

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agolibpakfire: Remove the unused copy_in/copy_out functions
Michael Tremer [Mon, 25 Sep 2023 13:59:01 +0000 (13:59 +0000)] 
libpakfire: Remove the unused copy_in/copy_out functions

Fixes: #12973
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotests: Bind-mount the test command to the jail
Michael Tremer [Mon, 25 Sep 2023 13:58:33 +0000 (13:58 +0000)] 
tests: Bind-mount the test command to the jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agolibpakfire: Remove pakfire_install/_update/_sync/_erase
Michael Tremer [Mon, 25 Sep 2023 13:45:19 +0000 (13:45 +0000)] 
libpakfire: Remove pakfire_install/_update/_sync/_erase

These functions used to call a mega function to perform some basic
actions which was getting too complicated to keep alive.

This way, we export the transaction object which breaks down all those
actions into many smaller steps.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agobuild: Implement a simple function to install packages in a shell
Michael Tremer [Mon, 25 Sep 2023 13:43:16 +0000 (13:43 +0000)] 
build: Implement a simple function to install packages in a shell

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agobuild: Implement installing build dependencies using a transaction
Michael Tremer [Mon, 25 Sep 2023 13:35:36 +0000 (13:35 +0000)] 
build: Implement installing build dependencies using a transaction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agopakfire: Re-implement pakfire as a C binary
Michael Tremer [Mon, 25 Sep 2023 10:34:10 +0000 (10:34 +0000)] 
pakfire: Re-implement pakfire as a C binary

This patch removes the Python wrapper script which implemented the
"pakfire" command. Therefore we lose the runtime dependency on Pakfire
for basic system administration tasks and can hopefully remove a lot of
Python glue code.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agolibpakfire: Export pakfire_transaction_solve()
Michael Tremer [Sat, 23 Sep 2023 12:16:36 +0000 (12:16 +0000)] 
libpakfire: Export pakfire_transaction_solve()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Drop DRY_RUN flag
Michael Tremer [Sat, 23 Sep 2023 12:16:18 +0000 (12:16 +0000)] 
transaction: Drop DRY_RUN flag

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Remove option to perform a dry-run
Michael Tremer [Sat, 23 Sep 2023 10:19:38 +0000 (10:19 +0000)] 
transaction: Remove option to perform a dry-run

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Automatically solve if not done, yet
Michael Tremer [Sat, 23 Sep 2023 10:07:18 +0000 (10:07 +0000)] 
transaction: Automatically solve if not done, yet

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransactions: Create a pick solution callback
Michael Tremer [Sat, 23 Sep 2023 10:03:16 +0000 (10:03 +0000)] 
transactions: Create a pick solution callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Log any solving problems to the debug logger
Michael Tremer [Sat, 23 Sep 2023 09:42:20 +0000 (09:42 +0000)] 
transaction: Log any solving problems to the debug logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoproblems: Refactor fetching problems and solutions
Michael Tremer [Sat, 23 Sep 2023 09:36:46 +0000 (09:36 +0000)] 
problems: Refactor fetching problems and solutions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Merge requests into the transaction
Michael Tremer [Fri, 22 Sep 2023 15:41:18 +0000 (15:41 +0000)] 
transaction: Merge requests into the transaction

It makes a lot more sense to have one large object that wraps the
solving process around libsolv instead of having multiple and passing
things around.

This is the first step to move things over and allow more flexibility
when performing depenedency resolution.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorequest: Obey policy when best flag is set
Michael Tremer [Fri, 22 Sep 2023 09:13:42 +0000 (09:13 +0000)] 
request: Obey policy when best flag is set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorepo: Increase subpriority for commandline repositories
Michael Tremer [Fri, 22 Sep 2023 09:12:25 +0000 (09:12 +0000)] 
repo: Increase subpriority for commandline repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Changing packages is a re-install
Michael Tremer [Thu, 21 Sep 2023 16:00:22 +0000 (16:00 +0000)] 
transaction: Changing packages is a re-install

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorequest: Fix sync
Michael Tremer [Thu, 21 Sep 2023 15:58:26 +0000 (15:58 +0000)] 
request: Fix sync

The dist-upgrade job became a noop when the DROP_ORPHANED flag got set,
because it is not a flag but a separate job instead.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorequest: Implement locking the running kernel as a pool job
Michael Tremer [Thu, 21 Sep 2023 14:50:48 +0000 (14:50 +0000)] 
request: Implement locking the running kernel as a pool job

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Silence debugging messaging saying which step to run
Michael Tremer [Thu, 21 Sep 2023 14:24:50 +0000 (14:24 +0000)] 
transaction: Silence debugging messaging saying which step to run

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorequest: Automatically attempt to update packages on install
Michael Tremer [Thu, 21 Sep 2023 10:53:30 +0000 (10:53 +0000)] 
request: Automatically attempt to update packages on install

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocontrib: Drop priority from development repositories
Michael Tremer [Thu, 21 Sep 2023 14:41:07 +0000 (14:41 +0000)] 
contrib: Drop priority from development repositories

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocontrib: Make the local repository preferred over stable
Michael Tremer [Tue, 19 Sep 2023 11:12:38 +0000 (11:12 +0000)] 
contrib: Make the local repository preferred over stable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransactions: Major rewrite of step generation
Michael Tremer [Thu, 21 Sep 2023 10:40:09 +0000 (10:40 +0000)] 
transactions: Major rewrite of step generation

When we extract from libsolv what steps we need to perform in order to
apply the changes to our system, there was a problem that when updating
packages, the previous version was not properly removed from the
database.

This has now been fixed by adding additional steps which are passive and
will remove the left-over metadata.

This should hopefully make the entire process more robust and easier to
handle in the code as each step has one simple job to do.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocontrib: Remove old signature configuration
Michael Tremer [Wed, 20 Sep 2023 18:27:11 +0000 (18:27 +0000)] 
contrib: Remove old signature configuration

We do not support disabling the signature check any more and we no
longer have any host keys to sign packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorepos: Implement subpriorities to prefer local packages when possible
Michael Tremer [Wed, 20 Sep 2023 18:26:05 +0000 (18:26 +0000)] 
repos: Implement subpriorities to prefer local packages when possible

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Don't wipe dump when we change a package
Michael Tremer [Wed, 20 Sep 2023 18:25:34 +0000 (18:25 +0000)] 
transaction: Don't wipe dump when we change a package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Refactor reading userinstalled packages
Michael Tremer [Wed, 20 Sep 2023 18:15:18 +0000 (18:15 +0000)] 
transaction: Refactor reading userinstalled packages

This could potentially leak memory and was less robust.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agodependencies: Don't log parsed dependencies
Michael Tremer [Wed, 20 Sep 2023 18:14:50 +0000 (18:14 +0000)] 
dependencies: Don't log parsed dependencies

This is quite verbose...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agotransaction: Refactor code to dump a transaction
Michael Tremer [Mon, 18 Sep 2023 18:53:56 +0000 (18:53 +0000)] 
transaction: Refactor code to dump a transaction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agopackage: Treat sizes as unsigned long long
Michael Tremer [Mon, 18 Sep 2023 13:23:42 +0000 (13:23 +0000)] 
package: Treat sizes as unsigned long long

It looks like there have been some more casting issues which should
hopefully be fixed now.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocompress-man-pages: Support already XZ compressed man pages
Michael Tremer [Mon, 18 Sep 2023 12:36:13 +0000 (12:36 +0000)] 
compress-man-pages: Support already XZ compressed man pages

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocontrib: Disable the bootstrap repository
Michael Tremer [Mon, 18 Sep 2023 11:44:05 +0000 (11:44 +0000)] 
contrib: Disable the bootstrap repository

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agoutil: Fix casting issue when writing JSON
Michael Tremer [Mon, 18 Sep 2023 11:42:59 +0000 (11:42 +0000)] 
util: Fix casting issue when writing JSON

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorequest: Log dependency issues if not in interactive mode
Michael Tremer [Sun, 17 Sep 2023 20:21:58 +0000 (20:21 +0000)] 
request: Log dependency issues if not in interactive mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agobuild: Build things with a lower nice level
Michael Tremer [Sun, 17 Sep 2023 19:41:11 +0000 (19:41 +0000)] 
build: Build things with a lower nice level

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agojail: Don't abort if /etc/hosts or /etc/resolv.conf cannot be bind-mounted
Michael Tremer [Sun, 17 Sep 2023 19:39:51 +0000 (19:39 +0000)] 
jail: Don't abort if /etc/hosts or /etc/resolv.conf cannot be bind-mounted

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorepo: Fix compiler warning due to iterating over the wrong type
Michael Tremer [Sun, 17 Sep 2023 13:16:11 +0000 (13:16 +0000)] 
repo: Fix compiler warning due to iterating over the wrong type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agocontrib: Update IPFire 3 repositoriy definitions
Michael Tremer [Sun, 17 Sep 2023 13:10:45 +0000 (13:10 +0000)] 
contrib: Update IPFire 3 repositoriy definitions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agodownloader: Fix JSON reference counting in mirror list parser
Michael Tremer [Sun, 17 Sep 2023 13:07:27 +0000 (13:07 +0000)] 
downloader: Fix JSON reference counting in mirror list parser

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months ago_pakfire: Correctly handle it no configuration was given
Michael Tremer [Fri, 15 Sep 2023 15:47:29 +0000 (15:47 +0000)] 
_pakfire: Correctly handle it no configuration was given

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agopakfire: Fix passing --config option to Pakfire
Michael Tremer [Fri, 15 Sep 2023 15:38:46 +0000 (15:38 +0000)] 
pakfire: Fix passing --config option to Pakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofhs.c: Correct permissions for /var/mail and /tmp
Adolf Belka [Fri, 15 Sep 2023 15:19:10 +0000 (17:19 +0200)] 
fhs.c: Correct permissions for /var/mail and /tmp

- /var/mail is looking for 0755 but dma is setting 02775
   checking FHS it looks like the settings should be 02775
- /tmp is being checked for 1755 instead of 01755 so the number is
   not being recognised as octal but as decimal
- The /var/mail change confirmed to allow dma to be built in ipfire3.x
   without failing for FHS errors

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoconfigure: Bump version to 0.9.29 0.9.29
Michael Tremer [Fri, 15 Sep 2023 13:14:53 +0000 (13:14 +0000)] 
configure: Bump version to 0.9.29

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Truncate file before rewriting it
Michael Tremer [Thu, 14 Sep 2023 11:49:57 +0000 (11:49 +0000)] 
file: Truncate file before rewriting it

It can happen that the file is shorter after we have fixed the
interpreter, which causes that the remaining data is still in the file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months ago_pakfire: util: Fix SEGV when we could not read from file
Michael Tremer [Thu, 14 Sep 2023 11:49:06 +0000 (11:49 +0000)] 
_pakfire: util: Fix SEGV when we could not read from file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoutil: Fix potential double-free on error
Michael Tremer [Tue, 12 Sep 2023 17:43:38 +0000 (17:43 +0000)] 
util: Fix potential double-free on error

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agopakfire: Create a ramdisk if no path has been given
Michael Tremer [Tue, 12 Sep 2023 17:42:30 +0000 (17:42 +0000)] 
pakfire: Create a ramdisk if no path has been given

This might be more useful when we struggle to cleanup the build
environment due to large IO. The build environment should generally be
small enough to easily fit into memory.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoutil: b64encode: Fix leak of p
Michael Tremer [Tue, 12 Sep 2023 17:19:36 +0000 (17:19 +0000)] 
util: b64encode: Fix leak of p

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoconfig: Don't copy section names
Michael Tremer [Tue, 12 Sep 2023 17:18:40 +0000 (17:18 +0000)] 
config: Don't copy section names

This mainly makes the static analyzer happy :)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Rewrite fixing interpreters
Michael Tremer [Tue, 12 Sep 2023 17:17:07 +0000 (17:17 +0000)] 
file: Rewrite fixing interpreters

The old version had some weaknesses in finding any arguments that came
after the interpreter which are being fixed here.

This version should also be easier to read.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Fix check if an interpreter has any additional arguments
Michael Tremer [Sat, 9 Sep 2023 18:03:54 +0000 (18:03 +0000)] 
file: Fix check if an interpreter has any additional arguments

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Don't fail on non-implemented CF protection check
Michael Tremer [Sat, 9 Sep 2023 17:03:44 +0000 (17:03 +0000)] 
file: Don't fail on non-implemented CF protection check

See: #13084 - Implement CF protection check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoutil: Fix potential NULL pointer dereference in pattern matching
Michael Tremer [Sat, 9 Sep 2023 16:10:20 +0000 (16:10 +0000)] 
util: Fix potential NULL pointer dereference in pattern matching

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agopackage: Make code clearer where dumping deps
Michael Tremer [Sat, 9 Sep 2023 16:08:13 +0000 (16:08 +0000)] 
package: Make code clearer where dumping deps

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months ago*list: Fix potential NULL pointer dereference
Michael Tremer [Sat, 9 Sep 2023 16:02:24 +0000 (16:02 +0000)] 
*list: Fix potential NULL pointer dereference

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Fix pattern matching for files we don't scan
Michael Tremer [Sat, 9 Sep 2023 16:01:35 +0000 (16:01 +0000)] 
file: Fix pattern matching for files we don't scan

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agotests: Never compile the test command using the analyzer
Michael Tremer [Sat, 9 Sep 2023 16:00:57 +0000 (16:00 +0000)] 
tests: Never compile the test command using the analyzer

We intentionally have some memory leaks and other bad things in here...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Initialize buffer when dumping a file
Michael Tremer [Sat, 9 Sep 2023 13:27:48 +0000 (13:27 +0000)] 
file: Initialize buffer when dumping a file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofilter-requires: Remove check if files are on filelist
Michael Tremer [Sat, 9 Sep 2023 13:06:48 +0000 (13:06 +0000)] 
filter-requires: Remove check if files are on filelist

This does not work in this place because we are streaming the filelist
into the script and the check is being performed in Pakfire.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofilelist: Fix return code check on pattern matching function
Michael Tremer [Sat, 9 Sep 2023 13:03:19 +0000 (13:03 +0000)] 
filelist: Fix return code check on pattern matching function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoarchive: Ensure the target directory exists
Michael Tremer [Sat, 9 Sep 2023 10:51:30 +0000 (10:51 +0000)] 
archive: Ensure the target directory exists

This causes that we could not hard-link any repositories since we put
archives into subdirectories resulting in a lot of unnecessary IO.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Fix potential memory leak if entry couldn't be copied
Michael Tremer [Fri, 8 Sep 2023 14:55:26 +0000 (14:55 +0000)] 
file: Fix potential memory leak if entry couldn't be copied

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agodaemon: Don't overwrite noarch
Michael Tremer [Fri, 8 Sep 2023 14:55:14 +0000 (14:55 +0000)] 
daemon: Don't overwrite noarch

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoparser: Remove debgugging line
Michael Tremer [Thu, 7 Sep 2023 15:13:06 +0000 (15:13 +0000)] 
parser: Remove debgugging line

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofile: Correctly initialize the dump buffer
Michael Tremer [Thu, 7 Sep 2023 15:11:10 +0000 (15:11 +0000)] 
file: Correctly initialize the dump buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agofilelist: Don't fail scan when the path does not exist
Michael Tremer [Thu, 7 Sep 2023 14:22:20 +0000 (14:22 +0000)] 
filelist: Don't fail scan when the path does not exist

I believe this is what we mostly want.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agorepo: Ignore if local repositories don't exist when scanning
Michael Tremer [Tue, 5 Sep 2023 16:11:21 +0000 (16:11 +0000)] 
repo: Ignore if local repositories don't exist when scanning

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agodb: Check if schema exists before reading settings
Michael Tremer [Tue, 5 Sep 2023 15:52:23 +0000 (15:52 +0000)] 
db: Check if schema exists before reading settings

Earlier versions of SQLite did not seem to complain, but newer versions
log an error when we are trying to access the settings table when it
does not exist, yet.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoutil: Remove static buffers from basename/dirname
Michael Tremer [Sat, 2 Sep 2023 10:42:21 +0000 (10:42 +0000)] 
util: Remove static buffers from basename/dirname

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoutil: Drop unused pakfire_path_abspath function
Michael Tremer [Sat, 2 Sep 2023 10:03:35 +0000 (10:03 +0000)] 
util: Drop unused pakfire_path_abspath function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agopwd: Don't fail if we cannot read SUBUID/SUBGID from configuration
Michael Tremer [Fri, 1 Sep 2023 14:35:03 +0000 (14:35 +0000)] 
pwd: Don't fail if we cannot read SUBUID/SUBGID from configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agopwd: Set maximum range for SUBUID/SUBGIDs by default
Michael Tremer [Fri, 1 Sep 2023 14:23:53 +0000 (14:23 +0000)] 
pwd: Set maximum range for SUBUID/SUBGIDs by default

This allows us to continue even if we cannot read anything from
/etc/subuid or /etc/subgid.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agotests: packages: Fix group check
Michael Tremer [Thu, 31 Aug 2023 06:08:01 +0000 (06:08 +0000)] 
tests: packages: Fix group check

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agorepo: Reformat code that downloads metadata
Michael Tremer [Thu, 31 Aug 2023 05:42:44 +0000 (05:42 +0000)] 
repo: Reformat code that downloads metadata

There are no functional changes here, but this is better to read.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agorepos: Configure better default refresh times
Michael Tremer [Thu, 31 Aug 2023 05:40:44 +0000 (05:40 +0000)] 
repos: Configure better default refresh times

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agorepo: Allow storing custom refresh times for metadata
Michael Tremer [Thu, 31 Aug 2023 05:38:51 +0000 (05:38 +0000)] 
repo: Allow storing custom refresh times for metadata

Fixes: #13248 - repo: Build TTL for metadata
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agostring: Add function to format/parse intervals
Michael Tremer [Thu, 31 Aug 2023 05:17:58 +0000 (05:17 +0000)] 
string: Add function to format/parse intervals

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agobuild: Increase precision of the logging timestamp
Michael Tremer [Thu, 31 Aug 2023 04:41:23 +0000 (04:41 +0000)] 
build: Increase precision of the logging timestamp

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agobuild: Implement custom logging that shows build time
Michael Tremer [Thu, 31 Aug 2023 04:18:05 +0000 (04:18 +0000)] 
build: Implement custom logging that shows build time

Fixes: #13250 - log: Add timestamp for each log line
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agojail: Allow customising the log callback
Michael Tremer [Thu, 31 Aug 2023 04:17:50 +0000 (04:17 +0000)] 
jail: Allow customising the log callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agodb: Fix double free of joined groups string
Michael Tremer [Thu, 31 Aug 2023 04:17:13 +0000 (04:17 +0000)] 
db: Fix double free of joined groups string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agojail: Ignore any return codes from the shell
Michael Tremer [Thu, 31 Aug 2023 03:37:52 +0000 (03:37 +0000)] 
jail: Ignore any return codes from the shell

Fixes: #13003 - Python exception when exiting the build jail or requested shell
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months ago_pakfire: package: Fix cleaning up build arches
Michael Tremer [Thu, 31 Aug 2023 03:36:37 +0000 (03:36 +0000)] 
_pakfire: package: Fix cleaning up build arches

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agopackages: Store groups as array
Michael Tremer [Thu, 31 Aug 2023 03:20:46 +0000 (03:20 +0000)] 
packages: Store groups as array

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agotests: package: Check reading build_id in Python
Michael Tremer [Wed, 30 Aug 2023 18:04:58 +0000 (18:04 +0000)] 
tests: package: Check reading build_id in Python

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months ago_pakfire: package: Export Build IDs as string
Michael Tremer [Wed, 30 Aug 2023 18:01:46 +0000 (18:01 +0000)] 
_pakfire: package: Export Build IDs as string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agodownloader: Drop using deprecated CURLOPT_PROTOCOLS
Michael Tremer [Wed, 30 Aug 2023 17:53:39 +0000 (17:53 +0000)] 
downloader: Drop using deprecated CURLOPT_PROTOCOLS

This reverts commit bf0f7d4ad237169f0da6a02c5b19981348616d30.

It looks like we no longer need to support Buster, so this commit is now
safe to apply.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agohub: Fix typo in sleep command
Michael Tremer [Wed, 30 Aug 2023 17:48:16 +0000 (17:48 +0000)] 
hub: Fix typo in sleep command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months ago_pakfire: Fix multiple issues in a utility function
Michael Tremer [Wed, 30 Aug 2023 17:28:32 +0000 (17:28 +0000)] 
_pakfire: Fix multiple issues in a utility function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agobuild: Check if we can build a packager on our architecture
Michael Tremer [Wed, 30 Aug 2023 17:04:41 +0000 (17:04 +0000)] 
build: Check if we can build a packager on our architecture

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
23 months agoarch: Enhance check for support by host and check for interpreter
Michael Tremer [Wed, 30 Aug 2023 17:04:18 +0000 (17:04 +0000)] 
arch: Enhance check for support by host and check for interpreter

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>