]> git.ipfire.org Git - pakfire.git/log
pakfire.git
15 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months 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>
16 months agoconfigure: Do not link against libsolv-ext any more
Michael Tremer [Thu, 8 Dec 2022 15:38:15 +0000 (15:38 +0000)] 
configure: Do not link against libsolv-ext any more

We do not use anything that is part of this library.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofind-provides/requires: Drop Perl handling
Michael Tremer [Thu, 8 Dec 2022 15:17:20 +0000 (15:17 +0000)] 
find-provides/requires: Drop Perl handling

This is now done in a separate script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofilelist: Sort the filelist after scanning
Michael Tremer [Thu, 8 Dec 2022 15:14:10 +0000 (15:14 +0000)] 
filelist: Sort the filelist after scanning

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agomacros: Call better things for Python 3
Michael Tremer [Thu, 8 Dec 2022 15:12:50 +0000 (15:12 +0000)] 
macros: Call better things for Python 3

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobuild: Only send Perl files to the perl dependency scripts
Michael Tremer [Thu, 8 Dec 2022 15:11:51 +0000 (15:11 +0000)] 
build: Only send Perl files to the perl dependency scripts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofilelist: Add pattern filtering to walk
Michael Tremer [Thu, 8 Dec 2022 15:11:14 +0000 (15:11 +0000)] 
filelist: Add pattern filtering to walk

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofile: Add a function to check whether the path matches a pattern
Michael Tremer [Thu, 8 Dec 2022 15:09:58 +0000 (15:09 +0000)] 
file: Add a function to check whether the path matches a pattern

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofind-requires: Fix matching Python paths
Michael Tremer [Thu, 8 Dec 2022 15:08:13 +0000 (15:08 +0000)] 
find-requires: Fix matching Python paths

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoperl: Re-indent scripts
Michael Tremer [Wed, 7 Dec 2022 18:48:30 +0000 (18:48 +0000)] 
perl: Re-indent scripts

No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoperl.req: Don't call perl.prov
Michael Tremer [Wed, 7 Dec 2022 18:09:00 +0000 (18:09 +0000)] 
perl.req: Don't call perl.prov

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoperl: Behave like the other dependency scripts
Michael Tremer [Wed, 7 Dec 2022 18:07:07 +0000 (18:07 +0000)] 
perl: Behave like the other dependency scripts

The only argument will be the BUILDROOT path and the filelist will be
passed to stdin.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoperl.req: Drop Fedora-specific stuff
Michael Tremer [Wed, 7 Dec 2022 18:04:59 +0000 (18:04 +0000)] 
perl.req: Drop Fedora-specific stuff

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoscripts: Update perl.{prov,req} from RPM
Michael Tremer [Wed, 7 Dec 2022 17:55:16 +0000 (17:55 +0000)] 
scripts: Update perl.{prov,req} from RPM

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobuild: Refactor dependency scanning
Michael Tremer [Tue, 6 Dec 2022 19:20:52 +0000 (19:20 +0000)] 
build: Refactor dependency scanning

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoscripts: Log BUILDROOT when it cannot be found
Michael Tremer [Tue, 6 Dec 2022 19:19:50 +0000 (19:19 +0000)] 
scripts: Log BUILDROOT when it cannot be found

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodependencies: Ignore newline
Michael Tremer [Tue, 6 Dec 2022 19:18:50 +0000 (19:18 +0000)] 
dependencies: Ignore newline

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Make pakfire_jail_exec_script private
Michael Tremer [Tue, 6 Dec 2022 18:48:02 +0000 (18:48 +0000)] 
jail: Make pakfire_jail_exec_script private

We don't need anything else to call this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Drop superfluous arguments that are never used from convenience function
Michael Tremer [Tue, 6 Dec 2022 18:37:51 +0000 (18:37 +0000)] 
jail: Drop superfluous arguments that are never used from convenience function

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agobuild: Pass filelists into dependency scripts
Michael Tremer [Tue, 6 Dec 2022 18:34:10 +0000 (18:34 +0000)] 
build: Pass filelists into dependency scripts

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Refactor pakfire_jail_exec_script
Michael Tremer [Tue, 6 Dec 2022 16:07:10 +0000 (16:07 +0000)] 
jail: Refactor pakfire_jail_exec_script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Refactor pakfire_jail_exec
Michael Tremer [Tue, 6 Dec 2022 15:59:16 +0000 (15:59 +0000)] 
jail: Refactor pakfire_jail_exec

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Add new way to communicate with child processes
Michael Tremer [Tue, 6 Dec 2022 15:54:54 +0000 (15:54 +0000)] 
jail: Add new way to communicate with child processes

In order to read and write to the child process, a new interface is
being added.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotests: Add command that reads from stdin and writes it back
Michael Tremer [Tue, 6 Dec 2022 15:50:20 +0000 (15:50 +0000)] 
tests: Add command that reads from stdin and writes it back

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Remove extra % in formatting string
Michael Tremer [Tue, 6 Dec 2022 13:45:52 +0000 (13:45 +0000)] 
jail: Remove extra % in formatting string

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotransaction: Drop file conflicts check
Michael Tremer [Tue, 6 Dec 2022 12:42:18 +0000 (12:42 +0000)] 
transaction: Drop file conflicts check

We cannot use this in IPFire since we don't have librpm.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofilelist: Always prefer excludes first, then includes
Michael Tremer [Tue, 6 Dec 2022 12:30:06 +0000 (12:30 +0000)] 
filelist: Always prefer excludes first, then includes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agojail: Add exception for root user when reading subuid/subgid
Michael Tremer [Tue, 6 Dec 2022 12:28:09 +0000 (12:28 +0000)] 
jail: Add exception for root user when reading subuid/subgid

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agofile: Copy more stat attributes
Michael Tremer [Tue, 6 Dec 2022 12:26:01 +0000 (12:26 +0000)] 
file: Copy more stat attributes

This is useful for any hardlink detection

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoMakefile: Don't install test programs into the system
Michael Tremer [Fri, 2 Dec 2022 13:34:09 +0000 (13:34 +0000)] 
Makefile: Don't install test programs into the system

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodependencies: Consume any excess space
Michael Tremer [Fri, 2 Dec 2022 11:41:12 +0000 (11:41 +0000)] 
dependencies: Consume any excess space

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agodependencies: Log any invalid dependencies
Michael Tremer [Fri, 2 Dec 2022 11:40:43 +0000 (11:40 +0000)] 
dependencies: Log any invalid dependencies

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agotests: dependencies: Add tests for dependencies with excess space
Michael Tremer [Fri, 2 Dec 2022 11:39:10 +0000 (11:39 +0000)] 
tests: dependencies: Add tests for dependencies with excess space

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
16 months agoconfigure: Use pkg-config to find gpgme
Michael Tremer [Fri, 2 Dec 2022 11:38:37 +0000 (11:38 +0000)] 
configure: Use pkg-config to find gpgme

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agofind-requires: Make pkg-config aware of other installed .pc files
Michael Tremer [Thu, 1 Dec 2022 13:41:37 +0000 (13:41 +0000)] 
find-requires: Make pkg-config aware of other installed .pc files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agofind-provides: Process all .so files
Michael Tremer [Thu, 1 Dec 2022 12:18:33 +0000 (12:18 +0000)] 
find-provides: Process all .so files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agopakfire-builder: shell: Allow passing --install multiple times
Michael Tremer [Thu, 1 Dec 2022 12:18:08 +0000 (12:18 +0000)] 
pakfire-builder: shell: Allow passing --install multiple times

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agoparser: Fix appending to variables with inheritance
Michael Tremer [Wed, 30 Nov 2022 15:25:17 +0000 (15:25 +0000)] 
parser: Fix appending to variables with inheritance

Fixes: #12997
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agotest: Add a simple test program for the parser
Michael Tremer [Wed, 30 Nov 2022 13:55:14 +0000 (13:55 +0000)] 
test: Add a simple test program for the parser

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agotests: parser: Check if appending variables works
Michael Tremer [Wed, 30 Nov 2022 13:02:30 +0000 (13:02 +0000)] 
tests: parser: Check if appending variables works

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agobuild: Fix splitting the filelist
Michael Tremer [Wed, 30 Nov 2022 12:56:14 +0000 (12:56 +0000)] 
build: Fix splitting the filelist

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agobuild: Split filelist on spaces, too
Michael Tremer [Wed, 30 Nov 2022 11:08:05 +0000 (11:08 +0000)] 
build: Split filelist on spaces, too

Sometimes, we append items to the filelist using the += which will not
create a new line. Therefore we need to split on spaces, too.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agorepo: Slightly refactor scanning
Michael Tremer [Tue, 29 Nov 2022 17:10:04 +0000 (17:10 +0000)] 
repo: Slightly refactor scanning

No functional changes.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agofilelist: Unify include/exclude pattern matching
Michael Tremer [Tue, 29 Nov 2022 17:09:05 +0000 (17:09 +0000)] 
filelist: Unify include/exclude pattern matching

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agobuild: Strip the leading ! from excluded files
Michael Tremer [Tue, 29 Nov 2022 17:03:23 +0000 (17:03 +0000)] 
build: Strip the leading ! from excluded files

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
17 months agojail: Set a default PATH to avoid using login shells everywhere
Michael Tremer [Tue, 29 Nov 2022 16:44:36 +0000 (16:44 +0000)] 
jail: Set a default PATH to avoid using login shells everywhere

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