From 4ff2ffe8eab5fcae496b7b825093cb3a0d32425b Mon Sep 17 00:00:00 2001 From: David Shea Date: May 30 2024 15:38:25 +0000 Subject: Explicitly disable debuginfo when not requested The version of rpm currently in rawhide changes the behavior of debuginfo package creation, which breaks rpmfluff builds when makeDebugInfo is false. Explicitly disable debuginfo when makeDebugInfo is false. --- diff --git a/rpmfluff/rpmbuild.py b/rpmfluff/rpmbuild.py index 5d61498..bf6c4de 100644 --- a/rpmfluff/rpmbuild.py +++ b/rpmfluff/rpmbuild.py @@ -435,6 +435,8 @@ class SimpleRpmBuild(RpmBuild): if self.makeDebugInfo: specFile.write("%debug_package\n") + else: + specFile.write("%global debug_package %{nil}\n") for sub in self.subPackages: specFile.write("%%files %s\n"%sub.suffix)