]> git.ipfire.org Git - pakfire.git/log
pakfire.git
3 months agoprogress: Allow to push/pop the status
Michael Tremer [Sat, 15 Mar 2025 11:37:25 +0000 (11:37 +0000)] 
progress: Allow to push/pop the status

That way, we can return to something more useful.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agostrings: Add a function to pop the last element of an array
Michael Tremer [Sat, 15 Mar 2025 11:26:59 +0000 (11:26 +0000)] 
strings: Add a function to pop the last element of an array

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotests: Fix compilation of the archive test
Michael Tremer [Sat, 15 Mar 2025 11:15:23 +0000 (11:15 +0000)] 
tests: Fix compilation of the archive test

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotransaction: Drop old status callback
Michael Tremer [Sat, 15 Mar 2025 11:13:57 +0000 (11:13 +0000)] 
transaction: Drop old status callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotransaction: Add a unified progress meter
Michael Tremer [Sat, 15 Mar 2025 11:09:08 +0000 (11:09 +0000)] 
transaction: Add a unified progress meter

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoprogress: Never show any status for child-progress meters
Michael Tremer [Sat, 15 Mar 2025 11:08:30 +0000 (11:08 +0000)] 
progress: Never show any status for child-progress meters

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoprogress: Add support for a status message
Michael Tremer [Sat, 15 Mar 2025 10:53:49 +0000 (10:53 +0000)] 
progress: Add support for a status message

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoarchive: Add support for a parent progress indicator for extraction
Michael Tremer [Sat, 15 Mar 2025 10:53:16 +0000 (10:53 +0000)] 
archive: Add support for a parent progress indicator for extraction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoprogress: Rename status to state
Michael Tremer [Sat, 15 Mar 2025 10:44:45 +0000 (10:44 +0000)] 
progress: Rename status to state

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopython: transaction: Add function to run the transaction
Michael Tremer [Fri, 14 Mar 2025 17:59:02 +0000 (17:59 +0000)] 
python: transaction: Add function to run the transaction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopython: ctx: Initialize the callbacks
Michael Tremer [Fri, 14 Mar 2025 17:58:40 +0000 (17:58 +0000)] 
python: ctx: Initialize the callbacks

Just to be safe...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopython: ctx: Ensure we are holding the GIL
Michael Tremer [Fri, 14 Mar 2025 17:57:39 +0000 (17:57 +0000)] 
python: ctx: Ensure we are holding the GIL

This is required because we usally return the GIL when we are jumping
into Pakfire functions as these tend to take some time when running.

When we are jumping back into the Python code, we need to acquire the
GIL again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopython: Add functions to register a progress callback
Michael Tremer [Fri, 14 Mar 2025 16:04:19 +0000 (16:04 +0000)] 
python: Add functions to register a progress callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopython: Allow passing a confirm callback from Python
Michael Tremer [Fri, 14 Mar 2025 15:20:47 +0000 (15:20 +0000)] 
python: Allow passing a confirm callback from Python

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopython: Add a basic Transaction class
Michael Tremer [Fri, 14 Mar 2025 11:04:48 +0000 (11:04 +0000)] 
python: Add a basic Transaction class

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotransaction: Remove unused flags
Michael Tremer [Fri, 14 Mar 2025 11:00:54 +0000 (11:00 +0000)] 
transaction: Remove unused flags

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agodb: Fail graciously when we could not open the database
Michael Tremer [Fri, 14 Mar 2025 10:56:31 +0000 (10:56 +0000)] 
db: Fail graciously when we could not open the database

This mainly changes the return code and does some minor code cleanups

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopo: Update translations
Michael Tremer [Fri, 14 Mar 2025 10:40:06 +0000 (10:40 +0000)] 
po: Update translations

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agomacros: Add yet another kind of GitHub URL
Michael Tremer [Fri, 14 Mar 2025 10:39:12 +0000 (10:39 +0000)] 
macros: Add yet another kind of GitHub URL

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoarch: Don't use TLS to store the utsname struct
Michael Tremer [Sat, 22 Feb 2025 20:57:54 +0000 (20:57 +0000)] 
arch: Don't use TLS to store the utsname struct

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Ignore cgroups if they are not fully functional
Michael Tremer [Sat, 22 Feb 2025 20:28:16 +0000 (20:28 +0000)] 
build: Ignore cgroups if they are not fully functional

This is an experimental change to see how this will all turn out on
Jenkins.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Fix printing erros when repos config could not be written
Michael Tremer [Sat, 22 Feb 2025 20:08:43 +0000 (20:08 +0000)] 
build: Fix printing erros when repos config could not be written

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotests: Fix makefile tests
Michael Tremer [Sat, 22 Feb 2025 20:08:13 +0000 (20:08 +0000)] 
tests: Fix makefile tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agorepo: Fix writing configuration
Michael Tremer [Sat, 22 Feb 2025 20:00:41 +0000 (20:00 +0000)] 
repo: Fix writing configuration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoparser: Make it less verbose
Michael Tremer [Sat, 22 Feb 2025 19:54:35 +0000 (19:54 +0000)] 
parser: Make it less verbose

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojail: Log less when creating/freeing a jail
Michael Tremer [Sat, 22 Feb 2025 19:51:10 +0000 (19:51 +0000)] 
jail: Log less when creating/freeing a jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Move the asan logs to the root
Michael Tremer [Sat, 22 Feb 2025 17:58:12 +0000 (17:58 +0000)] 
jenkins: Move the asan logs to the root

Because otherwise I am too stupid to find them.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotests: Avoid leaking memory in parser tests
Michael Tremer [Sat, 22 Feb 2025 17:46:25 +0000 (17:46 +0000)] 
tests: Avoid leaking memory in parser tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Upload asan logs only when tests have failed
Michael Tremer [Sat, 22 Feb 2025 17:39:42 +0000 (17:39 +0000)] 
jenkins: Upload asan logs only when tests have failed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoparser: Dump the current status less often
Michael Tremer [Sat, 22 Feb 2025 17:28:32 +0000 (17:28 +0000)] 
parser: Dump the current status less often

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoxfopen: Include limits.h
Michael Tremer [Sat, 22 Feb 2025 17:27:45 +0000 (17:27 +0000)] 
xfopen: Include limits.h

We need this for ULONG_MAX.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agostrings: Have pakfire_string_format_interval write to a preallocated buffer
Michael Tremer [Sat, 22 Feb 2025 17:20:43 +0000 (17:20 +0000)] 
strings: Have pakfire_string_format_interval write to a preallocated buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Use multiple CPU cores for the static analyzer & LCOV
Michael Tremer [Sat, 22 Feb 2025 17:20:11 +0000 (17:20 +0000)] 
jenkins: Use multiple CPU cores for the static analyzer & LCOV

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Run the testsuite with address sanitization
Michael Tremer [Sat, 22 Feb 2025 17:09:18 +0000 (17:09 +0000)] 
jenkins: Run the testsuite with address sanitization

There are still some things that are broken (Python), so for now, we
won't care if this fails.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoconfigure: Let the compiler figure out what to link for ASAN
Michael Tremer [Sat, 22 Feb 2025 17:05:09 +0000 (17:05 +0000)] 
configure: Let the compiler figure out what to link for ASAN

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoCLI: Refactor progressbar to use statically allocated buffers
Michael Tremer [Sat, 22 Feb 2025 17:04:23 +0000 (17:04 +0000)] 
CLI: Refactor progressbar to use statically allocated buffers

This might take a little bit of pressure off the allocator and we don't
have to deal with asprintf() loosing memory.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotransactions: Free the job queue
Michael Tremer [Sat, 22 Feb 2025 16:49:30 +0000 (16:49 +0000)] 
transactions: Free the job queue

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agosnapshots: Be less verbose when destroying a snapshot
Michael Tremer [Sat, 22 Feb 2025 16:49:04 +0000 (16:49 +0000)] 
snapshots: Be less verbose when destroying a snapshot

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojail: Fix buffer overrun when reading the scriptlet
Michael Tremer [Sat, 22 Feb 2025 16:48:42 +0000 (16:48 +0000)] 
jail: Fix buffer overrun when reading the scriptlet

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoasan: Use libunwind for better stack traces
Michael Tremer [Sat, 22 Feb 2025 16:48:08 +0000 (16:48 +0000)] 
asan: Use libunwind for better stack traces

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agotests: Remove various smaller memory "leaks"
Michael Tremer [Sat, 22 Feb 2025 16:20:04 +0000 (16:20 +0000)] 
tests: Remove various smaller memory "leaks"

There are not critical because the test suite does not run for very
long.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojail: Free the timeout timer
Michael Tremer [Sat, 22 Feb 2025 16:12:34 +0000 (16:12 +0000)] 
jail: Free the timeout timer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojail: Use the reference to the loop that we already have
Michael Tremer [Sat, 22 Feb 2025 16:12:19 +0000 (16:12 +0000)] 
jail: Use the reference to the loop that we already have

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agofile: Refactor making the filelist
Michael Tremer [Sat, 22 Feb 2025 16:01:51 +0000 (16:01 +0000)] 
file: Refactor making the filelist

There seems to have been a leak when initializing the string, so we
format it on the stack first and then copy it to the heap later.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agostrings: Add function to add formatted strings to a buffer
Michael Tremer [Sat, 22 Feb 2025 16:00:36 +0000 (16:00 +0000)] 
strings: Add function to add formatted strings to a buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agolog buffer: Free all held lines when freeing the buffer
Michael Tremer [Sat, 22 Feb 2025 15:44:12 +0000 (15:44 +0000)] 
log buffer: Free all held lines when freeing the buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agodb: Ensure to free the deps list after each iteration
Michael Tremer [Sat, 22 Feb 2025 15:43:53 +0000 (15:43 +0000)] 
db: Ensure to free the deps list after each iteration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoconfigure: Build with debugging information when using asan
Michael Tremer [Sat, 22 Feb 2025 15:38:31 +0000 (15:38 +0000)] 
configure: Build with debugging information when using asan

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoconfigure: Add option to enable the address sanitizer
Michael Tremer [Sat, 22 Feb 2025 15:14:01 +0000 (15:14 +0000)] 
configure: Add option to enable the address sanitizer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Remove any traces for Almalinux
Michael Tremer [Wed, 19 Feb 2025 19:31:06 +0000 (19:31 +0000)] 
jenkins: Remove any traces for Almalinux

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Use more modern command line to install dev tools on Fedora
Michael Tremer [Wed, 19 Feb 2025 19:30:23 +0000 (19:30 +0000)] 
jenkins: Use more modern command line to install dev tools on Fedora

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoparser: Ignore comments regardless what state the scanner is in
Michael Tremer [Wed, 19 Feb 2025 19:26:31 +0000 (19:26 +0000)] 
parser: Ignore comments regardless what state the scanner is in

Fixes: #13363 - A comment character anywhere in the build or packages section causes the build to fail
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agodist: Fix return codes
Michael Tremer [Wed, 19 Feb 2025 19:19:38 +0000 (19:19 +0000)] 
dist: Fix return codes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoparser: Properly handle yyparse() return codes
Michael Tremer [Wed, 19 Feb 2025 19:12:38 +0000 (19:12 +0000)] 
parser: Properly handle yyparse() return codes

This patch converts them into our usual errno codes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Strictly name releases
Michael Tremer [Wed, 19 Feb 2025 18:42:37 +0000 (18:42 +0000)] 
jenkins: Strictly name releases

For Ubuntu, latest points at the latest LTS release, which is not what I
expected. To avoid any confusion, let's name the releases that we want
to support by their number or code name.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojenkins: Add Ubuntu latest for the tests
Michael Tremer [Tue, 18 Feb 2025 18:09:16 +0000 (18:09 +0000)] 
jenkins: Add Ubuntu latest for the tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agojail: Run setuid/gid mapping even when we are running in /
Michael Tremer [Sun, 16 Feb 2025 16:30:17 +0000 (16:30 +0000)] 
jail: Run setuid/gid mapping even when we are running in /

Since we always create a new namespace, we need to always run this, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoctx: Remove another hard-coded configuration path
Michael Tremer [Sun, 16 Feb 2025 16:24:03 +0000 (16:24 +0000)] 
ctx: Remove another hard-coded configuration path

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoconfigure: Bump version to 0.9.30 0.9.30
Michael Tremer [Sun, 16 Feb 2025 16:21:54 +0000 (16:21 +0000)] 
configure: Bump version to 0.9.30

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Permit to uninstall or downgrade packages in installcheck
Michael Tremer [Sun, 16 Feb 2025 16:03:05 +0000 (16:03 +0000)] 
build: Permit to uninstall or downgrade packages in installcheck

Whenever we have a snapshot loaded, the solver might want to have a
little bit more liberty to find a solution. As we give it that liberty
later, we should not let the install check become a barrier.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agocli: Fix path of default configuration file
Michael Tremer [Sun, 16 Feb 2025 15:58:19 +0000 (15:58 +0000)] 
cli: Fix path of default configuration file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoconfigure: Compile everything with -std=gnu17
Michael Tremer [Sun, 16 Feb 2025 15:54:11 +0000 (15:54 +0000)] 
configure: Compile everything with -std=gnu17

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agocli: pakfire: Log everything to the console by default
Michael Tremer [Sun, 16 Feb 2025 15:53:49 +0000 (15:53 +0000)] 
cli: pakfire: Log everything to the console by default

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoMakefile: Ship i18n.h
Michael Tremer [Sun, 16 Feb 2025 15:34:14 +0000 (15:34 +0000)] 
Makefile: Ship i18n.h

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Fix check for BUILDROOT
Michael Tremer [Sun, 16 Feb 2025 15:15:01 +0000 (15:15 +0000)] 
build: Fix check for BUILDROOT

The actual variable was not reachable which is changed in this patch.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoPTY: Automatically connect stdout/stderr in some cases
Michael Tremer [Sun, 16 Feb 2025 14:54:02 +0000 (14:54 +0000)] 
PTY: Automatically connect stdout/stderr in some cases

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoPTY: Connect stdout/stderr to /dev/null unless something else was requested
Michael Tremer [Sun, 16 Feb 2025 14:20:09 +0000 (14:20 +0000)] 
PTY: Connect stdout/stderr to /dev/null unless something else was requested

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoarchive: Reformat arguments for systemd-sysusers
Michael Tremer [Sun, 16 Feb 2025 14:19:36 +0000 (14:19 +0000)] 
archive: Reformat arguments for systemd-sysusers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoarchive: Make the systemd sysusers filter logic slightly more obvious
Michael Tremer [Sun, 16 Feb 2025 14:19:10 +0000 (14:19 +0000)] 
archive: Make the systemd sysusers filter logic slightly more obvious

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopackages: Always check if the file size matches
Michael Tremer [Sun, 16 Feb 2025 13:40:55 +0000 (13:40 +0000)] 
packages: Always check if the file size matches

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoOCI: Initialize size
Michael Tremer [Sun, 16 Feb 2025 13:36:03 +0000 (13:36 +0000)] 
OCI: Initialize size

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoELF: Don't fail if we could not parse some DWARF information
Michael Tremer [Sun, 16 Feb 2025 13:30:15 +0000 (13:30 +0000)] 
ELF: Don't fail if we could not parse some DWARF information

This is in line with what has been recommended from upstream.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoPTY: Increase maximum line length to 16k
Michael Tremer [Sun, 16 Feb 2025 13:28:18 +0000 (13:28 +0000)] 
PTY: Increase maximum line length to 16k

Some compiler command lines massively exceed the 4k, so let's try with
something much larger.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoarchive writer: Don't use --long for Zstandard
Michael Tremer [Sun, 16 Feb 2025 13:26:59 +0000 (13:26 +0000)] 
archive writer: Don't use --long for Zstandard

This seems to be too complicated and there is too little value in it.
Packages cannot be uncompressed using the zstd command without enabling
long mode, too. libarchive requires the same which is also not
implemented.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoUse assert() to make the static analyzer happy
Michael Tremer [Sat, 15 Feb 2025 14:47:05 +0000 (14:47 +0000)] 
Use assert() to make the static analyzer happy

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agolinter: Skip all ELF checks for relocatable objects
Michael Tremer [Sat, 15 Feb 2025 14:42:35 +0000 (14:42 +0000)] 
linter: Skip all ELF checks for relocatable objects

This is a little bit more accurate than checking for the file extension.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoconfig: Drop unused function
Michael Tremer [Sat, 15 Feb 2025 14:10:42 +0000 (14:10 +0000)] 
config: Drop unused function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agomacros: Add a GitHub URL macro for tags (instead of releases)
Michael Tremer [Sat, 15 Feb 2025 13:43:53 +0000 (13:43 +0000)] 
macros: Add a GitHub URL macro for tags (instead of releases)

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agomacros: Add helpers to make GitHub URLs
Michael Tremer [Sat, 15 Feb 2025 13:28:09 +0000 (13:28 +0000)] 
macros: Add helpers to make GitHub URLs

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Dump all information about the source package
Michael Tremer [Sat, 15 Feb 2025 13:18:58 +0000 (13:18 +0000)] 
build: Dump all information about the source package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopackages: Return the actual error when we fail to open an archive
Michael Tremer [Sat, 15 Feb 2025 13:11:28 +0000 (13:11 +0000)] 
packages: Return the actual error when we fail to open an archive

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Print debug messages as well
Michael Tremer [Sat, 15 Feb 2025 13:07:17 +0000 (13:07 +0000)] 
build: Print debug messages as well

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopackages: Use the new path function to find the package
Michael Tremer [Sat, 15 Feb 2025 13:06:57 +0000 (13:06 +0000)] 
packages: Use the new path function to find the package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoxfer: Improve error message if the URL could not be put together
Michael Tremer [Sat, 15 Feb 2025 13:06:36 +0000 (13:06 +0000)] 
xfer: Improve error message if the URL could not be put together

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoxfer: Improve our user agent
Michael Tremer [Sat, 15 Feb 2025 13:06:16 +0000 (13:06 +0000)] 
xfer: Improve our user agent

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoxfer: Show a message if we are running out of mirrors
Michael Tremer [Sat, 15 Feb 2025 13:05:53 +0000 (13:05 +0000)] 
xfer: Show a message if we are running out of mirrors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agolinter: Skip linting any object files
Michael Tremer [Sat, 15 Feb 2025 12:05:21 +0000 (12:05 +0000)] 
linter: Skip linting any object files

We seem to only have very few of these, but this might be easier than
keeping any kind of whitelist.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoarchive writer: Don't compress in parallel
Michael Tremer [Sat, 15 Feb 2025 12:04:21 +0000 (12:04 +0000)] 
archive writer: Don't compress in parallel

There is almost no speed benefit here because most packages are rather
small so that Zstandard does not fan out. The result will however be a
couple of percent larger which is something we don't want.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopackager: Compress source archives less
Michael Tremer [Sat, 15 Feb 2025 12:03:47 +0000 (12:03 +0000)] 
packager: Compress source archives less

There is no reason to try to compress the compressed tarballs again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopty: Connect stdin to /dev/null when not connected
Michael Tremer [Sat, 15 Feb 2025 11:40:53 +0000 (11:40 +0000)] 
pty: Connect stdin to /dev/null when not connected

We don't want to run an interactive console and nothing should think
that we are.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopty: Close the file descriptor of the console
Michael Tremer [Sat, 15 Feb 2025 11:39:27 +0000 (11:39 +0000)] 
pty: Close the file descriptor of the console

This file descriptor was otherwise just leaked.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agodaemon: Use macros to make time deltas easier to understand
Michael Tremer [Fri, 14 Feb 2025 17:49:46 +0000 (17:49 +0000)] 
daemon: Use macros to make time deltas easier to understand

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agolog file: Never write any debug stuff to the file
Michael Tremer [Fri, 14 Feb 2025 17:47:05 +0000 (17:47 +0000)] 
log file: Never write any debug stuff to the file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agodaemon: Don't remove the stats timer
Michael Tremer [Fri, 14 Feb 2025 17:41:27 +0000 (17:41 +0000)] 
daemon: Don't remove the stats timer

We used to free the stats timer whenever the daemon lost the connection
to the build service. Although that should be supported, it could make
the event loop abort because of some unexpected conditions.

This patch simply allocates the timer once and we just arm and disarm it
as needed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Fix adding Python ABI dependencies
Michael Tremer [Fri, 14 Feb 2025 17:40:50 +0000 (17:40 +0000)] 
build: Fix adding Python ABI dependencies

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agocli: Remove unused variable
Michael Tremer [Fri, 14 Feb 2025 17:07:48 +0000 (17:07 +0000)] 
cli: Remove unused variable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agopty: Move filtering escape characters to the PTY
Michael Tremer [Fri, 14 Feb 2025 17:04:32 +0000 (17:04 +0000)] 
pty: Move filtering escape characters to the PTY

This is probably the place where this should live. We are now processing
cursor positioning events inside the same line and we are filtering out
any escape sequences that we don't know.

It is a bit sad to lose the colors, but I don't have to have two places
where we process this. At least this is going to be more robust and we
can be sure to not forward anything malicious to the controlling
terminal.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agolog file: Try to process any ANSI escape sequences
Michael Tremer [Fri, 14 Feb 2025 15:55:27 +0000 (15:55 +0000)] 
log file: Try to process any ANSI escape sequences

This is a rather basic implementation and it has the problem that it
erases the entire timestamp on carriage return, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agobuild: Add CLI switch to write the build log to file
Michael Tremer [Fri, 14 Feb 2025 15:12:16 +0000 (15:12 +0000)] 
build: Add CLI switch to write the build log to file

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
3 months agoxfopen: Don't set errno when we don't fail
Michael Tremer [Mon, 10 Feb 2025 17:58:03 +0000 (17:58 +0000)] 
xfopen: Don't set errno when we don't fail

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