From a9127744b8a2a2d4492b6caa7da4cb450df8116e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 3 Jan 2025 08:51:43 +0000 Subject: [PATCH] build: Don't try to find dependencies for debug files Signed-off-by: Michael Tremer --- src/pakfire/build.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pakfire/build.c b/src/pakfire/build.c index 3b5eff37e..5e5563da5 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -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); -- 2.47.3