]> git.ipfire.org Git - pakfire.git/commitdiff
build: Don't try to find dependencies for debug files
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Jan 2025 08:51:43 +0000 (08:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Jan 2025 08:51:43 +0000 (08:51 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/build.c

index 3b5eff37e54e4b99ebc49242d9e13cf03af49a85..5e5563da5cc7f69ea3530c1a65d38c513d76ea6a 100644 (file)
@@ -623,6 +623,14 @@ static int __pakfire_build_find_requires(
        if (!path)
                return -EINVAL;
 
+       // Skip debug files
+       if (pakfire_path_match("/usr/lib/debug/**", path))
+               return 0;
+
+       // Skip debug sources
+       else if (pakfire_path_match("/usr/src/debug/**", path))
+               return 0;
+
        // Handle pkg-config files
        if (pakfire_path_match("**.pc", path))
                return pakfire_build_find_pkgconfig_requires(ctx, file, deps);