]> git.ipfire.org Git - pakfire.git/log
pakfire.git
2 years agobuild: Move SSP check into the build process
Michael Tremer [Sun, 5 Mar 2023 15:48:20 +0000 (15:48 +0000)] 
build: Move SSP check into the build process

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Check if files are in ELF format
Michael Tremer [Sun, 5 Mar 2023 15:41:13 +0000 (15:41 +0000)] 
file: Check if files are in ELF format

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Reuse function to walk through the package filelist
Michael Tremer [Sun, 5 Mar 2023 14:10:14 +0000 (14:10 +0000)] 
build: Reuse function to walk through the package filelist

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Move checking for broken symlinks into C
Michael Tremer [Sun, 5 Mar 2023 13:43:23 +0000 (13:43 +0000)] 
build: Move checking for broken symlinks into C

Fixes: #13057 - Broken symlink check seems to fail if spaces are in filename
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Use S_IFMT instead of AE_IFMT
Michael Tremer [Sun, 5 Mar 2023 13:40:39 +0000 (13:40 +0000)] 
file: Use S_IFMT instead of AE_IFMT

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Append symlink target to dump
Michael Tremer [Sun, 5 Mar 2023 13:40:05 +0000 (13:40 +0000)] 
file: Append symlink target to dump

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Don't install logrotate files
Michael Tremer [Sat, 4 Mar 2023 15:04:54 +0000 (15:04 +0000)] 
macros: Don't install logrotate files

logrotate has been dropped

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Don't run MACRO_FIX_AUTOTOOLS all the time any more
Michael Tremer [Sat, 4 Mar 2023 14:46:32 +0000 (14:46 +0000)] 
macros: Don't run MACRO_FIX_AUTOTOOLS all the time any more

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Fix update config.guess/config.sub macro
Michael Tremer [Sat, 4 Mar 2023 14:44:51 +0000 (14:44 +0000)] 
macros: Fix update config.guess/config.sub macro

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Delete static libraries only when there is a shared object
Michael Tremer [Sat, 4 Mar 2023 11:44:59 +0000 (11:44 +0000)] 
build: Delete static libraries only when there is a shared object

This brings back the former behaviour.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackagelist: Refactor the whole thing
Michael Tremer [Tue, 28 Feb 2023 17:15:02 +0000 (17:15 +0000)] 
packagelist: Refactor the whole thing

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoCLI: requires: Search for all reverse dependencies
Michael Tremer [Tue, 28 Feb 2023 16:59:23 +0000 (16:59 +0000)] 
CLI: requires: Search for all reverse dependencies

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agosearch: Consolidate using Dataiterator and add file search
Michael Tremer [Tue, 28 Feb 2023 15:53:15 +0000 (15:53 +0000)] 
search: Consolidate using Dataiterator and add file search

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire_whatprovides/requires: Write to an existant list
Michael Tremer [Tue, 28 Feb 2023 15:00:46 +0000 (15:00 +0000)] 
pakfire_whatprovides/requires: Write to an existant list

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoui: Don't ask any questions if the shell isn't interactive
Michael Tremer [Tue, 28 Feb 2023 14:45:58 +0000 (14:45 +0000)] 
ui: Don't ask any questions if the shell isn't interactive

This is a slight hack because we did not finish implementing a proper
solution with callbacks that we would prefer.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Refactor returning all packages in a repository
Michael Tremer [Mon, 27 Feb 2023 13:13:40 +0000 (13:13 +0000)] 
repo: Refactor returning all packages in a repository

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackagelist: Return some value on push
Michael Tremer [Mon, 27 Feb 2023 13:12:03 +0000 (13:12 +0000)] 
packagelist: Return some value on push

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackagelists: Split function to import packages from Queue
Michael Tremer [Sat, 25 Feb 2023 13:51:19 +0000 (13:51 +0000)] 
packagelists: Split function to import packages from Queue

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoCheck if makefile name matches the package name
Michael Tremer [Wed, 22 Feb 2023 10:49:06 +0000 (10:49 +0000)] 
Check if makefile name matches the package name

This is quite important because the build process relies on it.

Fixes: #13041 - pakfire-builder confuses on wrong .nm file name
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Fix sorting when adding more elements
Michael Tremer [Tue, 21 Feb 2023 18:16:50 +0000 (18:16 +0000)] 
filelists: Fix sorting when adding more elements

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: Add a simple test for filelists
Michael Tremer [Tue, 21 Feb 2023 18:15:37 +0000 (18:15 +0000)] 
tests: Add a simple test for filelists

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodb: Don't return filelists in a funny order
Michael Tremer [Tue, 21 Feb 2023 17:21:59 +0000 (17:21 +0000)] 
db: Don't return filelists in a funny order

Since filelists are now ordered, there is no point in trying to be smart
here. In fact it is more efficient to return it pre-sorted.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Rename *_append() to *_add()
Michael Tremer [Tue, 21 Feb 2023 17:08:10 +0000 (17:08 +0000)] 
filelists: Rename *_append() to *_add()

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopython: Drop performance_index function
Michael Tremer [Tue, 21 Feb 2023 17:03:04 +0000 (17:03 +0000)] 
python: Drop performance_index function

We no longer use this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Rename *_size() -> *_length()
Michael Tremer [Tue, 21 Feb 2023 16:56:12 +0000 (16:56 +0000)] 
filelists: Rename *_size() -> *_length()

Also call *_is_empty() wherever suitable as it is much faster.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Remove any *.a and *.la files internally instead of using a script
Michael Tremer [Tue, 21 Feb 2023 16:43:35 +0000 (16:43 +0000)] 
build: Remove any *.a and *.la files internally instead of using a script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Implement removing files from a filelist
Michael Tremer [Tue, 21 Feb 2023 16:29:38 +0000 (16:29 +0000)] 
filelists: Implement removing files from a filelist

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofile: Implement detecting static libraries and libtool archives
Michael Tremer [Tue, 21 Feb 2023 16:28:55 +0000 (16:28 +0000)] 
file: Implement detecting static libraries and libtool archives

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Drop sort function as filelists are now always sorted
Michael Tremer [Tue, 21 Feb 2023 16:08:14 +0000 (16:08 +0000)] 
filelists: Drop sort function as filelists are now always sorted

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Refactor the entire module
Michael Tremer [Tue, 21 Feb 2023 16:04:57 +0000 (16:04 +0000)] 
filelists: Refactor the entire module

This carries some changes that will allow us more flexibility with
filelists as they are now based on a slightly easier to manage data
structure.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofind-requires: Only check for interpreters for executable files
Michael Tremer [Tue, 21 Feb 2023 13:04:32 +0000 (13:04 +0000)] 
find-requires: Only check for interpreters for executable files

This avoids collecting interpreters from firmware likes like QEMU
installs them for instance.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodependencies: Add support for arch() namespace
Michael Tremer [Tue, 21 Feb 2023 12:59:14 +0000 (12:59 +0000)] 
dependencies: Add support for arch() namespace

This can be used (mainly in source packages) to check on what system a
package is being installed - but not to check whether it is compatible.

Most commonly, this feature is going to be used to pull in dependencies
that should only be installed on certain architectures.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodependencies: Fix parsing complex dependencies
Michael Tremer [Tue, 21 Feb 2023 12:56:07 +0000 (12:56 +0000)] 
dependencies: Fix parsing complex dependencies

It is possible that a complex dependency has more than one closing
bracket. In that case, we will take too much of the string.

This patch makes sure we take the first bracket.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomount: Increase size for /tmp in jail
Michael Tremer [Tue, 21 Feb 2023 10:42:29 +0000 (10:42 +0000)] 
mount: Increase size for /tmp in jail

Some build processes require more temporary space than 1GiB, so I up
this to 4GiB hoping that it will suffice for most builds.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Skip calling scripts if no file matches
Michael Tremer [Mon, 20 Feb 2023 16:19:22 +0000 (16:19 +0000)] 
build: Skip calling scripts if no file matches

Fixes: #13038
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agocgroups: Make killall function static and fix memory leak
Michael Tremer [Thu, 12 Jan 2023 12:27:58 +0000 (12:27 +0000)] 
cgroups: Make killall function static and fix memory leak

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Try to classify files using libmagic
Michael Tremer [Thu, 12 Jan 2023 17:07:44 +0000 (17:07 +0000)] 
build: Try to classify files using libmagic

Just filtering by "*.pm" will result in packages that miss some
dependencies, but the provides script generates too many false-positives
so that we cannot just pass the entire filelist.

This will now filter them using libmagic.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfigure: Depend on libmagic
Michael Tremer [Thu, 12 Jan 2023 17:06:44 +0000 (17:06 +0000)] 
configure: Depend on libmagic

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Make it easier to build in a different directory
Michael Tremer [Wed, 11 Jan 2023 09:26:29 +0000 (09:26 +0000)] 
macros: Make it easier to build in a different directory

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Define firmwaredir
Michael Tremer [Wed, 11 Jan 2023 09:25:44 +0000 (09:25 +0000)] 
macros: Define firmwaredir

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoperl: Correctly decode Perl versions
Michael Tremer [Wed, 11 Jan 2023 09:25:06 +0000 (09:25 +0000)] 
perl: Correctly decode Perl versions

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Meson does not support parallel tests
Michael Tremer [Sun, 8 Jan 2023 13:28:58 +0000 (13:28 +0000)] 
macros: Meson does not support parallel tests

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Implement filter_provides/filter_requires
Michael Tremer [Sun, 8 Jan 2023 13:28:36 +0000 (13:28 +0000)] 
build: Implement filter_provides/filter_requires

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoutil: Move regex compilation function
Michael Tremer [Sun, 8 Jan 2023 13:27:53 +0000 (13:27 +0000)] 
util: Move regex compilation function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Construct LDFLAGS with more information and add -O1
Michael Tremer [Sat, 7 Jan 2023 12:11:28 +0000 (12:11 +0000)] 
macros: Construct LDFLAGS with more information and add -O1

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Implement configuring timeouts for commands
Michael Tremer [Fri, 6 Jan 2023 10:27:56 +0000 (10:27 +0000)] 
jail: Implement configuring timeouts for commands

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: cmake: Fix setting paths
Michael Tremer [Fri, 30 Dec 2022 15:48:50 +0000 (15:48 +0000)] 
macros: cmake: Fix setting paths

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Set container and container_uuid environment variables in jail
Michael Tremer [Fri, 30 Dec 2022 14:32:07 +0000 (14:32 +0000)] 
jail: Set container and container_uuid environment variables in jail

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Set SYSTEMD_OFFLINE when in chroot
Michael Tremer [Fri, 30 Dec 2022 14:22:49 +0000 (14:22 +0000)] 
jail: Set SYSTEMD_OFFLINE when in chroot

This will prevent systemctl to talk to systemd which won't work in a
chroot environment.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Set LANG to C.utf-8 by default
Michael Tremer [Fri, 30 Dec 2022 14:17:21 +0000 (14:17 +0000)] 
jail: Set LANG to C.utf-8 by default

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Make sure that CMake always uses the correct CFLAGS
Michael Tremer [Fri, 30 Dec 2022 14:16:58 +0000 (14:16 +0000)] 
macros: Make sure that CMake always uses the correct CFLAGS

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelist: Drop pattern matching from walk function
Michael Tremer [Fri, 16 Dec 2022 15:17:32 +0000 (15:17 +0000)] 
filelist: Drop pattern matching from walk function

This is no longer being used.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Bring back pattern matching which was accidentially dropped
Michael Tremer [Fri, 16 Dec 2022 15:08:11 +0000 (15:08 +0000)] 
build: Bring back pattern matching which was accidentially dropped

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Do not add dependencies to files provided by the same package
Michael Tremer [Fri, 16 Dec 2022 10:26:05 +0000 (10:26 +0000)] 
build: Do not add dependencies to files provided by the same package

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: communicate: Mark the stdin fd as closed to avoid later writes
Michael Tremer [Fri, 16 Dec 2022 10:25:26 +0000 (10:25 +0000)] 
jail: communicate: Mark the stdin fd as closed to avoid later writes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Send the scriptlet only once
Michael Tremer [Fri, 16 Dec 2022 10:24:52 +0000 (10:24 +0000)] 
build: Send the scriptlet only once

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: epoll: Only register for the operations we actually need
Michael Tremer [Fri, 16 Dec 2022 10:23:48 +0000 (10:23 +0000)] 
jail: epoll: Only register for the operations we actually need

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Avoid deadlock when sending data to stdin
Michael Tremer [Thu, 15 Dec 2022 16:41:12 +0000 (16:41 +0000)] 
jail: Avoid deadlock when sending data to stdin

It could happen that we filled up the buffer the input pipe and the jail
communication got deadlocked.

This is now being solved by using the event loop to find out when we are
ready to send more data. This required some changes into how the
callbacks behave.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopakfire: Fix searching for descriptions
Michael Tremer [Tue, 13 Dec 2022 11:38:47 +0000 (11:38 +0000)] 
pakfire: Fix searching for descriptions

SEARCH_SUBSTRING and SEARCH_GLOB does not seem to work together.

Therefore I am dropping SEARCH_GLOB because a substring search is the
more intuitive one.

Fixes: #12998
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: jail: Send signals to ourselves
Michael Tremer [Tue, 13 Dec 2022 11:17:32 +0000 (11:17 +0000)] 
tests: jail: Send signals to ourselves

This should not cause the parent process to die.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: jail: Check for correct exit code on SEGV
Michael Tremer [Tue, 13 Dec 2022 11:02:35 +0000 (11:02 +0000)] 
tests: jail: Check for correct exit code on SEGV

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: command: Add a command that immediately causes SEGV
Michael Tremer [Tue, 13 Dec 2022 11:02:02 +0000 (11:02 +0000)] 
tests: command: Add a command that immediately causes SEGV

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Return 139 when the child was killed
Michael Tremer [Tue, 13 Dec 2022 11:01:43 +0000 (11:01 +0000)] 
jail: Return 139 when the child was killed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotests: jail: Check for correct exit code
Michael Tremer [Tue, 13 Dec 2022 10:53:45 +0000 (10:53 +0000)] 
tests: jail: Check for correct exit code

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomount: Fix bind-mounting read-only shares
Michael Tremer [Mon, 12 Dec 2022 18:06:26 +0000 (18:06 +0000)] 
mount: Fix bind-mounting read-only shares

Fixes: #12968
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Remind libtool where to find any system libraries
Michael Tremer [Mon, 12 Dec 2022 17:45:11 +0000 (17:45 +0000)] 
macros: Remind libtool where to find any system libraries

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Set CC and CXX environment variables to the default compilers
Michael Tremer [Mon, 12 Dec 2022 17:40:21 +0000 (17:40 +0000)] 
macros: Set CC and CXX environment variables to the default compilers

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotransactions: Fix showing freed space
Michael Tremer [Mon, 12 Dec 2022 17:32:34 +0000 (17:32 +0000)] 
transactions: Fix showing freed space

Fixes: #13013
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Append -pipe to CFLAGS
Michael Tremer [Mon, 12 Dec 2022 17:13:05 +0000 (17:13 +0000)] 
macros: Append -pipe to CFLAGS

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Support export VAR += VALUE
Michael Tremer [Mon, 12 Dec 2022 17:12:07 +0000 (17:12 +0000)] 
parser: Support export VAR += VALUE

Fixes: #13011
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Move CFLAGS/CXXFLAGS/LDFLAGS into the build section
Michael Tremer [Mon, 12 Dec 2022 17:06:21 +0000 (17:06 +0000)] 
macros: Move CFLAGS/CXXFLAGS/LDFLAGS into the build section

This is where they belong and it makes it easier to modify them in the
build section of individual packages.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Do not log skipped dependencies
Michael Tremer [Mon, 12 Dec 2022 17:03:16 +0000 (17:03 +0000)] 
build: Do not log skipped dependencies

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Add -Wl,--as-needed to LDFLAGS by default
Michael Tremer [Mon, 12 Dec 2022 17:02:54 +0000 (17:02 +0000)] 
macros: Add -Wl,--as-needed to LDFLAGS by default

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Fix FTBFS linux/fcntl.h and fcntl.h are incompatible
Michael Tremer [Fri, 9 Dec 2022 16:41:41 +0000 (16:41 +0000)] 
jail: Fix FTBFS linux/fcntl.h and fcntl.h are incompatible

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoconfigure: Bump release to 0.9.28 0.9.28
Michael Tremer [Fri, 9 Dec 2022 16:35:10 +0000 (16:35 +0000)] 
configure: Bump release to 0.9.28

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Avoid reading past the end of the key buffer
Michael Tremer [Fri, 9 Dec 2022 16:27:52 +0000 (16:27 +0000)] 
repo: Avoid reading past the end of the key buffer

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agorepo: Avoid double brackets in section name
Michael Tremer [Fri, 9 Dec 2022 16:22:23 +0000 (16:22 +0000)] 
repo: Avoid double brackets in section name

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Ensure /etc/pakfire/repos exists before writing files
Michael Tremer [Fri, 9 Dec 2022 16:21:59 +0000 (16:21 +0000)] 
build: Ensure /etc/pakfire/repos exists before writing files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Create a new network namespace unless running interactively
Michael Tremer [Fri, 9 Dec 2022 15:53:01 +0000 (15:53 +0000)] 
jail: Create a new network namespace unless running interactively

This will deny any internet connectivity in the build environment, but
will allow users in an interative shell to use the network.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agojail: Set HOME in shell environment
Michael Tremer [Fri, 9 Dec 2022 15:25:17 +0000 (15:25 +0000)] 
jail: Set HOME in shell environment

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoprogressbar: Don't join rendering thread when it has never been started
Michael Tremer [Fri, 9 Dec 2022 15:24:52 +0000 (15:24 +0000)] 
progressbar: Don't join rendering thread when it has never been started

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelists: Silence a compiler warning that a comment contains /*
Michael Tremer [Fri, 9 Dec 2022 15:02:02 +0000 (15:02 +0000)] 
filelists: Silence a compiler warning that a comment contains /*

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoRevert "packages: Ensure that the pool is internalized for packages w/o repo"
Michael Tremer [Fri, 9 Dec 2022 15:01:02 +0000 (15:01 +0000)] 
Revert "packages: Ensure that the pool is internalized for packages w/o repo"

This reverts commit 2fcc2e22f92577c8bf572a3276445fd6869eb158.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelist: Make pattern matching less eager
Michael Tremer [Fri, 9 Dec 2022 13:19:59 +0000 (13:19 +0000)] 
filelist: Make pattern matching less eager

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agomacros: Add newline to python3_version output
Michael Tremer [Fri, 9 Dec 2022 13:17:40 +0000 (13:17 +0000)] 
macros: Add newline to python3_version output

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agofilelist: Fix off-by-one error when deleting files
Michael Tremer [Fri, 9 Dec 2022 11:14:31 +0000 (11:14 +0000)] 
filelist: Fix off-by-one error when deleting files

The last file was never deleted.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackager: Sort the filelist before writing the package
Michael Tremer [Fri, 9 Dec 2022 11:13:57 +0000 (11:13 +0000)] 
packager: Sort the filelist before writing the package

This is probably not strictly necessary, but is nicer for humans.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotransaction: Don't print empty string
Michael Tremer [Fri, 9 Dec 2022 10:51:25 +0000 (10:51 +0000)] 
transaction: Don't print empty string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agoparser: Fix function declaration for yy_scan_bytes
Michael Tremer [Fri, 9 Dec 2022 10:50:17 +0000 (10:50 +0000)] 
parser: Fix function declaration for yy_scan_bytes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodownloader: Actually check whether title is set
Michael Tremer [Fri, 9 Dec 2022 10:49:53 +0000 (10:49 +0000)] 
downloader: Actually check whether title is set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agodb: Free correct value
Michael Tremer [Fri, 9 Dec 2022 10:49:37 +0000 (10:49 +0000)] 
db: Free correct value

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackages: Fix my messy code and use proper return codes
Michael Tremer [Thu, 8 Dec 2022 18:14:31 +0000 (18:14 +0000)] 
packages: Fix my messy code and use proper return codes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackage: Don't make types array static
Michael Tremer [Thu, 8 Dec 2022 17:49:16 +0000 (17:49 +0000)] 
package: Don't make types array static

Let the compiler decide what is best.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Skip requires which are provided by the same package
Michael Tremer [Thu, 8 Dec 2022 17:48:08 +0000 (17:48 +0000)] 
build: Skip requires which are provided by the same package

This will avoid that the dependency resolution has to deal with
dependencies which should not really exist.

Fixes: #13000
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackages: Ensure that the pool is internalized for packages w/o repo
Michael Tremer [Thu, 8 Dec 2022 17:47:43 +0000 (17:47 +0000)] 
packages: Ensure that the pool is internalized for packages w/o repo

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackage: Add function to check whether a depenency matches
Michael Tremer [Thu, 8 Dec 2022 17:46:26 +0000 (17:46 +0000)] 
package: Add function to check whether a depenency matches

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agopackage: Use self-provides function from libsolv
Michael Tremer [Thu, 8 Dec 2022 16:34:55 +0000 (16:34 +0000)] 
package: Use self-provides function from libsolv

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agotransaction: Add error message when digest isn't set
Michael Tremer [Thu, 8 Dec 2022 16:12:48 +0000 (16:12 +0000)] 
transaction: Add error message when digest isn't set

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Fix compiler warning
Michael Tremer [Thu, 8 Dec 2022 16:10:10 +0000 (16:10 +0000)] 
build: Fix compiler warning

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2 years agobuild: Fix checking scriptlets for any dependencies
Michael Tremer [Thu, 8 Dec 2022 16:09:03 +0000 (16:09 +0000)] 
build: Fix checking scriptlets for any dependencies

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