]> git.ipfire.org Git - pakfire.git/log
pakfire.git
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months 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>
22 months agorepo: Fail if the baseurl could not be set
Michael Tremer [Mon, 25 Sep 2023 17:51:16 +0000 (17:51 +0000)] 
repo: Fail if the baseurl could not be set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agopakfire_repo_walk: Make sure r is initialized
Michael Tremer [Mon, 25 Sep 2023 17:23:49 +0000 (17:23 +0000)] 
pakfire_repo_walk: Make sure r is initialized

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agorepo: Remove useless logging line
Michael Tremer [Mon, 25 Sep 2023 17:18:28 +0000 (17:18 +0000)] 
repo: Remove useless logging line

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agodownloader: Fix cURL logging
Michael Tremer [Mon, 25 Sep 2023 17:17:06 +0000 (17:17 +0000)] 
downloader: Fix cURL logging

Log lines are not NULL-terminated and so we should not read further than
indicated.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agologging: Free buffer only if set
Michael Tremer [Mon, 25 Sep 2023 17:16:19 +0000 (17:16 +0000)] 
logging: Free buffer only if set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
22 months agostring: Refactor replace function
Michael Tremer [Mon, 25 Sep 2023 16:54:28 +0000 (16:54 +0000)] 
string: Refactor replace function

The old version was slightly over-engineered and the static analyzer was
not too happy with it. Instead of debugging any problems, I wrote this
version which is a lot easier and should be more bug-free.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>
22 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>