Blame 0016-build-files.c-Unset-__debug_package-implies-missing-.patch
|
Igor Gnatenko |
082d5d |
From 5bc9efa303efe933b02cc8679ef3134668839831 Mon Sep 17 00:00:00 2001
|
|
Igor Gnatenko |
082d5d |
From: Mark Wielaard <mark@klomp.org>
|
|
Igor Gnatenko |
082d5d |
Date: Thu, 9 Mar 2017 15:52:12 +0100
|
|
Mark Wielaard |
284dc3 |
Subject: [PATCH] build/files.c: Unset __debug_package implies missing
|
|
Igor Gnatenko |
082d5d |
build-ids aren't fatal.
|
|
Igor Gnatenko |
082d5d |
|
|
Igor Gnatenko |
082d5d |
Historically we have only checked build_ids when __debug_package was
|
|
Igor Gnatenko |
082d5d |
defined. So don't terminate the build if __debug_package is unset, even
|
|
Igor Gnatenko |
082d5d |
when _missing_build_ids_terminate_build is. Only warn.
|
|
Igor Gnatenko |
082d5d |
|
|
Igor Gnatenko |
082d5d |
Signed-off-by: Mark Wielaard <mark@klomp.org>
|
|
Igor Gnatenko |
082d5d |
(cherry picked from commit 22260d3580fcdafa5579128401adf1a05d36f316)
|
|
Igor Gnatenko |
082d5d |
---
|
|
Igor Gnatenko |
082d5d |
build/files.c | 6 +++++-
|
|
Igor Gnatenko |
082d5d |
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
Igor Gnatenko |
082d5d |
|
|
Mark Wielaard |
b70aa8 |
diff --git a/build/files.c b/build/files.c
|
|
Igor Gnatenko |
082d5d |
index 274b38c62..b19abf299 100644
|
|
Mark Wielaard |
b70aa8 |
--- a/build/files.c
|
|
Mark Wielaard |
b70aa8 |
+++ b/build/files.c
|
|
Igor Gnatenko |
082d5d |
@@ -1672,7 +1672,11 @@ static int generateBuildIDs(FileList fl)
|
|
Mark Wielaard |
b70aa8 |
if (build_id_links == BUILD_IDS_NONE || rc != 0)
|
|
Mark Wielaard |
b70aa8 |
return rc;
|
|
Mark Wielaard |
b70aa8 |
|
|
Mark Wielaard |
b70aa8 |
- int terminate = rpmExpandNumeric("%{?_missing_build_ids_terminate_build}");
|
|
Mark Wielaard |
b70aa8 |
+ /* Historically we have only checked build_ids when __debug_package
|
|
Mark Wielaard |
b70aa8 |
+ was defined. So don't terminate the build if __debug_package is
|
|
Mark Wielaard |
b70aa8 |
+ unset, even when _missing_build_ids_terminate_build is. */
|
|
Mark Wielaard |
b70aa8 |
+ int terminate = (rpmExpandNumeric("%{?_missing_build_ids_terminate_build}")
|
|
Mark Wielaard |
b70aa8 |
+ && rpmExpandNumeric("%{?__debug_package}"));
|
|
Mark Wielaard |
b70aa8 |
|
|
Mark Wielaard |
b70aa8 |
/* Collect and check all build-ids for ELF files in this package. */
|
|
Mark Wielaard |
b70aa8 |
int needMain = 0;
|