]>
git.ipfire.org Git - pakfire.git/log
Michael Tremer [Sun, 27 Oct 2024 11:12:28 +0000 (11:12 +0000)]
filelist: Refactor using binary search
If we want to conduct fast searches over the list we should implement it
like this so that we don't have to iterate very long lists.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 09:33:23 +0000 (09:33 +0000)]
transactions: Store a list of all installed and newly installed packages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:59:47 +0000 (08:59 +0000)]
transaction: Avoid using a label to retry solving
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:59:06 +0000 (08:59 +0000)]
tests: db: Initialize package to avoid SEGV on early fails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:51:11 +0000 (08:51 +0000)]
transaction: Minor code cleanups
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:44:50 +0000 (08:44 +0000)]
transaction: Avoid leaking memory
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:34:51 +0000 (08:34 +0000)]
build: Simplify check for libtool archives and static libraries
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:31:00 +0000 (08:31 +0000)]
file: Remove ELF detection with libelf
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sun, 27 Oct 2024 08:26:55 +0000 (08:26 +0000)]
file: Remove unused classes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 23 Oct 2024 12:22:22 +0000 (12:22 +0000)]
testsuite: Translate negative return values
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 23 Oct 2024 12:18:52 +0000 (12:18 +0000)]
tests: Ensure that values are initialized before free
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 23 Oct 2024 12:10:34 +0000 (12:10 +0000)]
parser: Initialize r on merge
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 23 Oct 2024 12:08:26 +0000 (12:08 +0000)]
parser: Don't duplicate and leak arch
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Wed, 23 Oct 2024 12:06:21 +0000 (12:06 +0000)]
parser: Fix assigning value
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 18:23:21 +0000 (18:23 +0000)]
logging: Handle warning messages everywhere
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 18:12:39 +0000 (18:12 +0000)]
linter: Parse the ELF file early to avoid this callback hell
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 17:41:31 +0000 (17:41 +0000)]
linter: Always mmap() the file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 17:34:30 +0000 (17:34 +0000)]
file: Remove the remainder of the file checks
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 17:26:27 +0000 (17:26 +0000)]
linter: Move script interpreter check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 16:12:17 +0000 (16:12 +0000)]
linter: Check if we have Build IDs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 16:06:46 +0000 (16:06 +0000)]
linter: Check if ELF files have a debug link
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 15:51:21 +0000 (15:51 +0000)]
linter: Check for more symbols for SSP
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 15:46:33 +0000 (15:46 +0000)]
linter: Check if files have been stripped
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 15:31:00 +0000 (15:31 +0000)]
jenkins: Upload everything after tests
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:48:05 +0000 (13:48 +0000)]
jenkins: Group the package mastering stages together
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:39:22 +0000 (13:39 +0000)]
jenkins: Keep directory structure of the test logs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:37:53 +0000 (13:37 +0000)]
string: Constify inputs when joining strings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:31:24 +0000 (13:31 +0000)]
tests: os: Remove pointless unsigned integer tests
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:30:39 +0000 (13:30 +0000)]
tests: jail: Remove unused variable
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:29:20 +0000 (13:29 +0000)]
digests: Simplify initialization
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:24:05 +0000 (13:24 +0000)]
tests: util: Cast values for printing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:23:15 +0000 (13:23 +0000)]
tests: Fix integer sizes in string formatting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:20:54 +0000 (13:20 +0000)]
tests: Fix old-style function definition
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:20:27 +0000 (13:20 +0000)]
tests: Align signedness of integers
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:19:51 +0000 (13:19 +0000)]
tests: Fix string formatting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:17:36 +0000 (13:17 +0000)]
tests: Don't shadow r
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:17:26 +0000 (13:17 +0000)]
tests: Actually print the line number
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:17:01 +0000 (13:17 +0000)]
tests: Compile using our standard set of CFLAGS
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:09:18 +0000 (13:09 +0000)]
jenkins: Always archive all test logs for all distros
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:03:50 +0000 (13:03 +0000)]
debian: We no longer depend on libdw
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 13:00:20 +0000 (13:00 +0000)]
util: Remove unused includes
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:54:29 +0000 (12:54 +0000)]
util: Move base64 functions into a separate file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:47:22 +0000 (12:47 +0000)]
util: Move hex function into a separate file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:40:02 +0000 (12:40 +0000)]
libpakfire: Move syscalls into a separate file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:35:47 +0000 (12:35 +0000)]
path: Move pakfire_path_age
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:33:02 +0000 (12:33 +0000)]
*: Replace pakfire_remove_trailing_newline with pakfire_string_rstrip
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:28:54 +0000 (12:28 +0000)]
path: Move pakfire_path_exists
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:24:42 +0000 (12:24 +0000)]
path: Move pakfire_path_realpath
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:21:18 +0000 (12:21 +0000)]
path: Move function to replace the file extension
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:18:10 +0000 (12:18 +0000)]
path: Move the match function into the path library
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:14:29 +0000 (12:14 +0000)]
file: Ensure the path is always absolute
Even if we import it from libarchive.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:07:43 +0000 (12:07 +0000)]
linter: Move capability check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 12:02:34 +0000 (12:02 +0000)]
linter: Move CF protection check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:51:12 +0000 (11:51 +0000)]
file: Remove old flags
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:46:39 +0000 (11:46 +0000)]
linter: Move RPATH check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:39:58 +0000 (11:39 +0000)]
filelist: Avoid putting the same file on the list more than once
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:36:09 +0000 (11:36 +0000)]
linter: Check for RELRO
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:25:30 +0000 (11:25 +0000)]
linter: Make it easier to report file issues
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:22:20 +0000 (11:22 +0000)]
linter: Check for executable stacks
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:12:12 +0000 (11:12 +0000)]
linter: Don't try to lint firmware files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 11:07:49 +0000 (11:07 +0000)]
build: Abort if linting failed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:54:15 +0000 (10:54 +0000)]
linter: Return a non-zero error code if we found errors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:51:53 +0000 (10:51 +0000)]
linter: Add a newline after dumping the output
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:50:20 +0000 (10:50 +0000)]
linter: Drop the default result callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:48:23 +0000 (10:48 +0000)]
linter: Dump the result in a very human readable way
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:48:10 +0000 (10:48 +0000)]
linter: Keep stats about how many warnings/errors/etc.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:47:43 +0000 (10:47 +0000)]
logging: Create new warning log level
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:20:38 +0000 (10:20 +0000)]
linter: Create a filelist with all files with issues
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 10:08:12 +0000 (10:08 +0000)]
linter: Store a reference to the broken files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 09:56:58 +0000 (09:56 +0000)]
linter: Move the SSP check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Sat, 26 Oct 2024 09:56:01 +0000 (09:56 +0000)]
linter: Send results to the logger by default
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 17:33:34 +0000 (17:33 +0000)]
linter: Move the ELF stuff to the file stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 17:24:25 +0000 (17:24 +0000)]
linter: Make the result function non-static
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 17:20:45 +0000 (17:20 +0000)]
linter: Create a separate place to scan the payload
Otherwise this is becoming yet another callback hell...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 16:57:50 +0000 (16:57 +0000)]
file: Remove PIE code that was moved into the linter
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 16:56:07 +0000 (16:56 +0000)]
linter: Don't move the FD into the file module
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 16:49:12 +0000 (16:49 +0000)]
stripper: Throw this away
I am really not sure whether this is a really good idea or will just be
causing us a lot of pain in the future. For now we have something, so
lets use that and rethink this all later.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 16:38:49 +0000 (16:38 +0000)]
repo: Refactor scanning once again
I was being lazy. We need to scan recursively.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 16:00:39 +0000 (16:00 +0000)]
build: Fix parsing dependencies
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 16:00:17 +0000 (16:00 +0000)]
package: Fail if we could not add a dependency
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 15:59:43 +0000 (15:59 +0000)]
deps: Simplify checking for valid inputs
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 15:59:25 +0000 (15:59 +0000)]
tests: deps: Don't check for errno any more
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 15:58:43 +0000 (15:58 +0000)]
PTY: Remove carriage returns when passing data to the callback
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 15:58:13 +0000 (15:58 +0000)]
tests: deps: Check if we can parse paths
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:43:13 +0000 (14:43 +0000)]
libpakfire: Rename dependencies.c to deps.c
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:40:25 +0000 (14:40 +0000)]
logging: Rename the logging functions to something sane again
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:37:52 +0000 (14:37 +0000)]
logging: Remove the last bits of the Pakfire logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:37:27 +0000 (14:37 +0000)]
deps: Remove some logging
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:33:13 +0000 (14:33 +0000)]
mount: Remove the special Pakfire logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:19:47 +0000 (14:19 +0000)]
linter: Try to lint some ELF stuff
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:12:54 +0000 (14:12 +0000)]
logging: Remove the actual legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:11:15 +0000 (14:11 +0000)]
dist: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 14:05:15 +0000 (14:05 +0000)]
util: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:58:07 +0000 (13:58 +0000)]
transaction: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:50:26 +0000 (13:50 +0000)]
problem: Remove an unused function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:48:31 +0000 (13:48 +0000)]
problem: Minor code cleanups
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:45:59 +0000 (13:45 +0000)]
parser: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:31:40 +0000 (13:31 +0000)]
packager: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:27:48 +0000 (13:27 +0000)]
package: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Michael Tremer [Fri, 25 Oct 2024 13:17:33 +0000 (13:17 +0000)]
repo: Remove the legacy logger
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>