Blame 0008-Fix-behavior-when-_build_id_links-is-undefined.patch
|
Igor Gnatenko |
082d5d |
From a040e812b39d1fcc6aa69ca6aa5ff2fe4316a018 Mon Sep 17 00:00:00 2001
|
|
Panu Matilainen |
5b4d98 |
From: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
5b4d98 |
Date: Mon, 3 Oct 2016 12:36:46 +0300
|
|
Mark Wielaard |
284dc3 |
Subject: [PATCH] Fix behavior when %_build_id_links is undefined
|
|
Panu Matilainen |
5b4d98 |
|
|
Panu Matilainen |
5b4d98 |
Commit bbfe1f86b2e4b5c0bd499d9f3dd9de9c9c20fff2 tries to behave sanely
|
|
Panu Matilainen |
5b4d98 |
and use compat setting when %_build_id_links is undefined, but
|
|
Panu Matilainen |
5b4d98 |
rpmExpand() never returns NULL so the original check is incorrect.
|
|
Panu Matilainen |
5b4d98 |
Check for empty string instead.
|
|
Igor Gnatenko |
082d5d |
|
|
Igor Gnatenko |
082d5d |
(cherry picked from commit 2ea72daabe3f0c4bef628d5a16768f293ffab3df)
|
|
Panu Matilainen |
5b4d98 |
---
|
|
Panu Matilainen |
5b4d98 |
build/files.c | 2 +-
|
|
Panu Matilainen |
5b4d98 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Panu Matilainen |
5b4d98 |
|
|
Panu Matilainen |
5b4d98 |
diff --git a/build/files.c b/build/files.c
|
|
Igor Gnatenko |
082d5d |
index eb398562a..6215bf85c 100644
|
|
Panu Matilainen |
5b4d98 |
--- a/build/files.c
|
|
Panu Matilainen |
5b4d98 |
+++ b/build/files.c
|
|
Panu Matilainen |
5b4d98 |
@@ -1648,7 +1648,7 @@ static int generateBuildIDs(FileList fl)
|
|
Panu Matilainen |
5b4d98 |
/* How are we supposed to create the build-id links? */
|
|
Panu Matilainen |
5b4d98 |
char *build_id_links_macro = rpmExpand("%{?_build_id_links}", NULL);
|
|
Panu Matilainen |
5b4d98 |
int build_id_links;
|
|
Panu Matilainen |
5b4d98 |
- if (build_id_links_macro == NULL) {
|
|
Panu Matilainen |
5b4d98 |
+ if (*build_id_links_macro == '\0') {
|
|
Panu Matilainen |
5b4d98 |
rpmlog(RPMLOG_WARNING,
|
|
Panu Matilainen |
5b4d98 |
_("_build_id_links macro not set, assuming 'compat'\n"));
|
|
Panu Matilainen |
5b4d98 |
build_id_links = BUILD_IDS_COMPAT;
|