]> git.ipfire.org Git - pakfire.git/log
pakfire.git
2 years agocgroup: Do not use TLS for buffer that is longer than one page
Michael Tremer [Thu, 5 Oct 2023 10:31:59 +0000 (10:31 +0000)] 
cgroup: Do not use TLS for buffer that is longer than one page

There seems to be a compiler bug that causes memory corruption in any
spawned threads. This used to materialize mostly in downloading files
when cURL spawned a thread to call the glibc resolver.

See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfigure: Enable lots more compiler warnings
Michael Tremer [Thu, 5 Oct 2023 10:00:20 +0000 (10:00 +0000)] 
configure: Enable lots more compiler warnings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotransaction: Drop unused set status callback
Michael Tremer [Thu, 5 Oct 2023 09:59:29 +0000 (09:59 +0000)] 
transaction: Drop unused set status callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agolibpakfire: Initialize strings correctly
Michael Tremer [Thu, 5 Oct 2023 09:58:25 +0000 (09:58 +0000)] 
libpakfire: Initialize strings correctly

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Fix wrong operator to check if flag is set
Michael Tremer [Thu, 5 Oct 2023 09:57:29 +0000 (09:57 +0000)] 
file: Fix wrong operator to check if flag is set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Refactor join function to avoid format errors
Michael Tremer [Thu, 5 Oct 2023 09:56:55 +0000 (09:56 +0000)] 
parser: Refactor join function to avoid format errors

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotransaction: Fix truncation of integer when showing transaction
Michael Tremer [Wed, 4 Oct 2023 17:12:17 +0000 (17:12 +0000)] 
transaction: Fix truncation of integer when showing transaction

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoFix any issues with falling through a switch statement
Michael Tremer [Wed, 4 Oct 2023 17:11:47 +0000 (17:11 +0000)] 
Fix any issues with falling through a switch statement

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostring: Silence a couple of format error warnings
Michael Tremer [Wed, 4 Oct 2023 17:10:28 +0000 (17:10 +0000)] 
string: Silence a couple of format error warnings

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoFix any incorrect format arguments throughout the code base
Michael Tremer [Wed, 4 Oct 2023 17:07:30 +0000 (17:07 +0000)] 
Fix any incorrect format arguments throughout the code base

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoMake old-style functions new-style functions
Michael Tremer [Wed, 4 Oct 2023 16:57:37 +0000 (16:57 +0000)] 
Make old-style functions new-style functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoMakefile: Do not try to include from non-existant directory
Michael Tremer [Wed, 4 Oct 2023 16:55:11 +0000 (16:55 +0000)] 
Makefile: Do not try to include from non-existant directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostring: inline must be the first word in a declaration
Michael Tremer [Wed, 4 Oct 2023 16:08:01 +0000 (16:08 +0000)] 
string: inline must be the first word in a declaration

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Break if we could not allocate memory on dump
Michael Tremer [Wed, 4 Oct 2023 16:03:29 +0000 (16:03 +0000)] 
parser: Break if we could not allocate memory on dump

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: grammar: Ensure we always free a dumped parser
Michael Tremer [Wed, 4 Oct 2023 16:02:44 +0000 (16:02 +0000)] 
parser: grammar: Ensure we always free a dumped parser

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: scanner: Abort if we could not allocate memory
Michael Tremer [Wed, 4 Oct 2023 16:02:21 +0000 (16:02 +0000)] 
parser: scanner: Abort if we could not allocate memory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: string: Free string after the replace test
Michael Tremer [Wed, 4 Oct 2023 15:34:54 +0000 (15:34 +0000)] 
tests: string: Free string after the replace test

Generally, we do not free stuff in the tests (because we don't care
about any leaks), but I wanted to see a clear valgrind result on this
one...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Initialize some more variables in the grammar
Michael Tremer [Mon, 2 Oct 2023 17:19:34 +0000 (17:19 +0000)] 
parser: Initialize some more variables in the grammar

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Initialize some more variables
Michael Tremer [Mon, 2 Oct 2023 17:18:11 +0000 (17:18 +0000)] 
parser: Initialize some more variables

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Leak less memory
Michael Tremer [Mon, 2 Oct 2023 17:15:36 +0000 (17:15 +0000)] 
parser: Leak less memory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Drop old functions
Michael Tremer [Mon, 2 Oct 2023 17:14:52 +0000 (17:14 +0000)] 
downloader: Drop old functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodist: Refactor downloading sources
Michael Tremer [Mon, 2 Oct 2023 17:13:25 +0000 (17:13 +0000)] 
dist: Refactor downloading sources

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostring: Remove unused chrcnt function
Michael Tremer [Mon, 2 Oct 2023 17:11:27 +0000 (17:11 +0000)] 
string: Remove unused chrcnt function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Initialize utime
Michael Tremer [Mon, 2 Oct 2023 16:14:56 +0000 (16:14 +0000)] 
downloader: Initialize utime

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostrings: Remove split function
Michael Tremer [Mon, 2 Oct 2023 16:11:39 +0000 (16:11 +0000)] 
strings: Remove split function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackage: Split descriptions using strtok()
Michael Tremer [Mon, 2 Oct 2023 16:09:26 +0000 (16:09 +0000)] 
package: Split descriptions using strtok()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Drop pakfire_parser_get_split
Michael Tremer [Mon, 2 Oct 2023 16:03:42 +0000 (16:03 +0000)] 
parser: Drop pakfire_parser_get_split

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodist: No longer use pakfire_parser_get_split()
Michael Tremer [Mon, 2 Oct 2023 16:03:14 +0000 (16:03 +0000)] 
dist: No longer use pakfire_parser_get_split()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostring: Refactor replacement function once again
Michael Tremer [Mon, 2 Oct 2023 15:53:09 +0000 (15:53 +0000)] 
string: Refactor replacement function once again

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Fail if we did not get a schema
Michael Tremer [Mon, 2 Oct 2023 15:10:32 +0000 (15:10 +0000)] 
downloader: Fail if we did not get a schema

It is quite unlikely that we are ending up here, but if we do, the
download with fail cleanly.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomount: Do not call mount with an empty filesystem type
Michael Tremer [Mon, 2 Oct 2023 15:09:52 +0000 (15:09 +0000)] 
mount: Do not call mount with an empty filesystem type

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodist: Drop our own source mirror
Michael Tremer [Mon, 2 Oct 2023 10:25:52 +0000 (10:25 +0000)] 
dist: Drop our own source mirror

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: This is the beginning of a rather large rewrite
Michael Tremer [Mon, 2 Oct 2023 10:17:36 +0000 (10:17 +0000)] 
downloader: This is the beginning of a rather large rewrite

The downloader code has become very complicated because we have large
functions that perform everything at once.

This patch splits a lot of functionality into smaller steps which are
easier to handle, allow better expansion and so on. You know?

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogress: Fix division by zero when calculating ETA
Michael Tremer [Mon, 2 Oct 2023 10:14:56 +0000 (10:14 +0000)] 
progress: Fix division by zero when calculating ETA

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogress: Implement child progress
Michael Tremer [Mon, 2 Oct 2023 10:14:00 +0000 (10:14 +0000)] 
progress: Implement child progress

This can be used if we need to propagate progress to an upstream
progress indicator.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: progressbar: Increment the size of the bar buffer
Michael Tremer [Mon, 2 Oct 2023 10:12:06 +0000 (10:12 +0000)] 
cli: progressbar: Increment the size of the bar buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: progressbar: Dynamically allocate all buffers
Michael Tremer [Sun, 1 Oct 2023 12:37:57 +0000 (12:37 +0000)] 
cli: progressbar: Dynamically allocate all buffers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogress: Set a default start action
Michael Tremer [Sun, 1 Oct 2023 12:29:03 +0000 (12:29 +0000)] 
progress: Set a default start action

If some application is not using the progress feature, at least we have
a log message about what is happening...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire: Enable progressbar
Michael Tremer [Sun, 1 Oct 2023 11:54:16 +0000 (11:54 +0000)] 
cli: pakfire: Enable progressbar

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogressbar: Drop old implementation
Michael Tremer [Sun, 1 Oct 2023 11:52:10 +0000 (11:52 +0000)] 
progressbar: Drop old implementation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Use new progress indicator
Michael Tremer [Sun, 1 Oct 2023 11:50:47 +0000 (11:50 +0000)] 
downloader: Use new progress indicator

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelist: Migrate to new progress indicator
Michael Tremer [Sun, 1 Oct 2023 11:37:18 +0000 (11:37 +0000)] 
filelist: Migrate to new progress indicator

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocompress: Migrate to the new progress indicator
Michael Tremer [Sun, 1 Oct 2023 11:29:23 +0000 (11:29 +0000)] 
compress: Migrate to the new progress indicator

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Use the new progress implementation
Michael Tremer [Sun, 1 Oct 2023 11:21:57 +0000 (11:21 +0000)] 
repo: Use the new progress implementation

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogress: Implement an increment function
Michael Tremer [Sun, 1 Oct 2023 11:20:54 +0000 (11:20 +0000)] 
progress: Implement an increment function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogress: Implement setting the title as a separate call
Michael Tremer [Sun, 1 Oct 2023 11:20:23 +0000 (11:20 +0000)] 
progress: Implement setting the title as a separate call

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Drop tests for the progressbar module
Michael Tremer [Sun, 1 Oct 2023 10:59:29 +0000 (10:59 +0000)] 
tests: Drop tests for the progressbar module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years ago_pakfire: Drop the Python wrapper for the progress bar
Michael Tremer [Sun, 1 Oct 2023 10:58:26 +0000 (10:58 +0000)] 
_pakfire: Drop the Python wrapper for the progress bar

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopython: hub: Use an external progressbar module
Michael Tremer [Sun, 1 Oct 2023 10:56:29 +0000 (10:56 +0000)] 
python: hub: Use an external progressbar module

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogress: Add a new abstraction to indicate progress
Michael Tremer [Sun, 1 Oct 2023 10:31:25 +0000 (10:31 +0000)] 
progress: Add a new abstraction to indicate progress

The pakfire library has a progressbar object which is complicated to
handle when functions are called from Python, etc.

This new abstraction allows easy handling of progress inside the library
and other applications can hook into it and show the desired status in
whatever way they like.

This patch also implements a classic progressbar in the CLI utils.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Keep log messages in the logger
Michael Tremer [Sat, 30 Sep 2023 12:13:33 +0000 (12:13 +0000)] 
jail: Keep log messages in the logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Always send everything to the parent logger, too
Michael Tremer [Sat, 30 Sep 2023 12:00:36 +0000 (12:00 +0000)] 
build: Always send everything to the parent logger, too

This patch will make sure that we log everything to the parent logger,
too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Send all build-related stuff to the build logger
Michael Tremer [Sat, 30 Sep 2023 11:52:38 +0000 (11:52 +0000)] 
build: Send all build-related stuff to the build logger

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Log the UUID of the source package
Michael Tremer [Sat, 30 Sep 2023 11:35:33 +0000 (11:35 +0000)] 
build: Log the UUID of the source package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Refactor the logger
Michael Tremer [Sat, 30 Sep 2023 11:34:09 +0000 (11:34 +0000)] 
build: Refactor the logger

We now have the option to directly write something directly into the
build logger.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire: Set the default log level to INFO
Michael Tremer [Sat, 30 Sep 2023 11:11:17 +0000 (11:11 +0000)] 
pakfire: Set the default log level to INFO

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Properly crash if we are not handling a CLI argument
Michael Tremer [Sat, 30 Sep 2023 10:25:16 +0000 (10:25 +0000)] 
cli: Properly crash if we are not handling a CLI argument

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Fix parsing command options
Michael Tremer [Sat, 30 Sep 2023 10:17:29 +0000 (10:17 +0000)] 
cli: Fix parsing command options

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Keep all appdata in the same struct
Michael Tremer [Sat, 30 Sep 2023 09:09:16 +0000 (09:09 +0000)] 
repo: Keep all appdata in the same struct

This is mainly to make the static analyzer happy which fails to track
any strings allocated and stored in the appdata struct.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoutil: Make the static analyzer happy to free p
Michael Tremer [Fri, 29 Sep 2023 15:46:35 +0000 (15:46 +0000)] 
util: Make the static analyzer happy to free p

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Add implicit dist() when a makefile is passed
Michael Tremer [Fri, 29 Sep 2023 14:59:37 +0000 (14:59 +0000)] 
build: Add implicit dist() when a makefile is passed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoarchive: Return better error codes when archives could not be opened
Michael Tremer [Fri, 29 Sep 2023 14:59:09 +0000 (14:59 +0000)] 
archive: Return better error codes when archives could not be opened

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: build: Show the build log
Michael Tremer [Fri, 29 Sep 2023 13:27:04 +0000 (13:27 +0000)] 
cli: pakfire-builder: build: Show the build log

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Add log callback
Michael Tremer [Fri, 29 Sep 2023 13:26:46 +0000 (13:26 +0000)] 
build: Add log callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire: Silence mapping UID/GID messages
Michael Tremer [Fri, 29 Sep 2023 13:05:03 +0000 (13:05 +0000)] 
pakfire: Silence mapping UID/GID messages

This is waaaay to verbose in debug mode.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Add color functions
Michael Tremer [Fri, 29 Sep 2023 11:58:18 +0000 (11:58 +0000)] 
cli: Add color functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoDrop old pakfire-builder Python script
Michael Tremer [Fri, 29 Sep 2023 11:34:48 +0000 (11:34 +0000)] 
Drop old pakfire-builder Python script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Implement "image create"
Michael Tremer [Fri, 29 Sep 2023 11:33:32 +0000 (11:33 +0000)] 
cli: pakfire-builder: Implement "image create"

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Implement repo compose
Michael Tremer [Fri, 29 Sep 2023 11:13:04 +0000 (11:13 +0000)] 
cli: pakfire-builder: Implement repo compose

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Fix passing around command line arguments
Michael Tremer [Fri, 29 Sep 2023 11:08:36 +0000 (11:08 +0000)] 
cli: Fix passing around command line arguments

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Implement the build command
Michael Tremer [Fri, 29 Sep 2023 09:43:10 +0000 (09:43 +0000)] 
cli: pakfire-builder: Implement the build command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Implement dist command
Michael Tremer [Fri, 29 Sep 2023 09:11:47 +0000 (09:11 +0000)] 
cli: pakfire-builder: Implement dist command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Implement shell
Michael Tremer [Thu, 28 Sep 2023 15:16:08 +0000 (15:16 +0000)] 
cli: pakfire-builder: Implement shell

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Add info command
Michael Tremer [Thu, 28 Sep 2023 14:57:10 +0000 (14:57 +0000)] 
cli: pakfire-builder: Add info command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Show more information in build mode
Michael Tremer [Thu, 28 Sep 2023 14:55:17 +0000 (14:55 +0000)] 
cli: pakfire-builder: Show more information in build mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agolibpakfire: Make pakfire_has_flag() public
Michael Tremer [Thu, 28 Sep 2023 14:54:59 +0000 (14:54 +0000)] 
libpakfire: Make pakfire_has_flag() public

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire: Add flag to signal that we are running in build mode
Michael Tremer [Thu, 28 Sep 2023 14:54:28 +0000 (14:54 +0000)] 
pakfire: Add flag to signal that we are running in build mode

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Remove double error message
Michael Tremer [Thu, 28 Sep 2023 14:42:20 +0000 (14:42 +0000)] 
cli: pakfire-builder: Remove double error message

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Add other basic commands
Michael Tremer [Thu, 28 Sep 2023 14:40:32 +0000 (14:40 +0000)] 
cli: pakfire-builder: Add other basic commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Update help text
Michael Tremer [Thu, 28 Sep 2023 10:48:33 +0000 (10:48 +0000)] 
cli: pakfire-builder: Update help text

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire-builder: Add repolist command
Michael Tremer [Thu, 28 Sep 2023 10:48:17 +0000 (10:48 +0000)] 
cli: pakfire-builder: Add repolist command

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Move pakfire/pakfire-builder into a single file
Michael Tremer [Thu, 28 Sep 2023 10:46:03 +0000 (10:46 +0000)] 
cli: Move pakfire/pakfire-builder into a single file

There is no point to have subdirectory for only one file when everything
else is going into the lib.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Move any kind of actions into the library so we can re-use them
Michael Tremer [Thu, 28 Sep 2023 10:41:28 +0000 (10:41 +0000)] 
cli: Move any kind of actions into the library so we can re-use them

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Include headers of the library in a more explicit way
Michael Tremer [Thu, 28 Sep 2023 10:32:05 +0000 (10:32 +0000)] 
cli: Include headers of the library in a more explicit way

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Implement scaffolding for pakfire-builder
Michael Tremer [Thu, 28 Sep 2023 10:24:30 +0000 (10:24 +0000)] 
cli: Implement scaffolding for pakfire-builder

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: pakfire: Implement --yes
Michael Tremer [Wed, 27 Sep 2023 15:43:29 +0000 (15:43 +0000)] 
cli: pakfire: Implement --yes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agolibpakfire: Move loglevel into flags on create for Pakfire
Michael Tremer [Wed, 27 Sep 2023 15:32:47 +0000 (15:32 +0000)] 
libpakfire: Move loglevel into flags on create for Pakfire

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agolibpakfire: Drop old CLI functions
Michael Tremer [Wed, 27 Sep 2023 15:19:40 +0000 (15:19 +0000)] 
libpakfire: Drop old CLI functions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Implement interactive selection of solutions
Michael Tremer [Wed, 27 Sep 2023 15:13:51 +0000 (15:13 +0000)] 
cli: Implement interactive selection of solutions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Do not compile with -fno-analyzer
Michael Tremer [Wed, 27 Sep 2023 15:11:52 +0000 (15:11 +0000)] 
parser: Do not compile with -fno-analyzer

The flex/bison-generated code is having too many problems to make this
output any useful.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocli: Implement the confirm callback
Michael Tremer [Tue, 26 Sep 2023 18:48:11 +0000 (18:48 +0000)] 
cli: Implement the confirm callback

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Check very early whether we can install the source package
Michael Tremer [Tue, 26 Sep 2023 17:59:06 +0000 (17:59 +0000)] 
build: Check very early whether we can install the source package

It might still fail, but at least we tried to solve this here before
extracting the build environment and so on.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfig: Move the strip functions into the string library
Michael Tremer [Tue, 26 Sep 2023 17:48:56 +0000 (17:48 +0000)] 
config: Move the strip functions into the string library

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Log cURL stuff to the debug log
Michael Tremer [Tue, 26 Sep 2023 17:35:53 +0000 (17:35 +0000)] 
downloader: Log cURL stuff to the debug log

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfig: Fix read-out-of-bounds when stripping the entire string
Michael Tremer [Tue, 26 Sep 2023 16:46:36 +0000 (16:46 +0000)] 
config: Fix read-out-of-bounds when stripping the entire string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Skip checking files in /usr/lib/valgrind
Michael Tremer [Tue, 26 Sep 2023 13:39:49 +0000 (13:39 +0000)] 
file: Skip checking files in /usr/lib/valgrind

valgrind is a special case which we cannot harden very well, so we just
skip checking those files.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Do not fail if we did not find a dynamic section
Michael Tremer [Tue, 26 Sep 2023 13:38:59 +0000 (13:38 +0000)] 
file: Do not fail if we did not find a dynamic section

Some files might not have these. That should not be an error, because
those files will fail their checks later on.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Silence a message that an interpreter has been found
Michael Tremer [Tue, 26 Sep 2023 13:38:38 +0000 (13:38 +0000)] 
file: Silence a message that an interpreter has been found

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agostring: Accept NULL as an empty replacement
Michael Tremer [Tue, 26 Sep 2023 13:19:17 +0000 (13:19 +0000)] 
string: Accept NULL as an empty replacement

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfig: Refactor data model and iterating over sections
Michael Tremer [Mon, 25 Sep 2023 19:02:56 +0000 (19:02 +0000)] 
config: Refactor data model and iterating over sections

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