From df99b64f739c66caaa2240c78f4f9142c2f6cd1c Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 12 Jan 2010 19:05:27 +0000 Subject: [PATCH] - non-librpm missing debuginfo yumcommand now prints also --disablerepo='*' to save some bandwidth by yum (Robin Green, BZ 554152). --- gdb-6.6-buildid-locate-rpm.patch | 12 +++++++----- gdb.spec | 6 +++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gdb-6.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index 32cbca3..f07f7ec 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.patch @@ -48,7 +48,7 @@ Index: gdb-6.8.50.20090909/gdb/symfile.c int (*deprecated_ui_load_progress_hook) (const char *section, unsigned long num); -@@ -1673,8 +1675,352 @@ build_id_to_filename (struct build_id *b +@@ -1673,8 +1675,353 @@ build_id_to_filename (struct build_id *b return retval; } @@ -258,7 +258,8 @@ Index: gdb-6.8.50.20090909/gdb/symfile.c + + /* Base package name for `debuginfo-install'. We do not use the + `yum' command directly as the line -+ yum --enablerepo='*-debuginfo' install NAME-debuginfo.ARCH ++ yum --disablerepo='*' --enablerepo='*-debuginfo' \ ++ install NAME-debuginfo.ARCH + would be more complicated than just: + debuginfo-install NAME-VERSION-RELEASE.ARCH + Do not supply the rpm base name (derived from .src.rpm name) as @@ -398,7 +399,7 @@ Index: gdb-6.8.50.20090909/gdb/symfile.c + /* This MISSING_FILEPAIR_HASH tracker is used only for the duplicite messages - Try to install the hash file ... -+ yum --enablerepo='*-debuginfo' install ... ++ yum --disablerepo='*' --enablerepo='*-debuginfo' install ... avoidance. */ struct missing_filepair @@ -420,7 +421,7 @@ Index: gdb-6.8.50.20090909/gdb/symfile.c missing_filepair_change (); } -@@ -1799,14 +2151,33 @@ debug_print_missing (const char *binary, +@@ -1799,14 +2151,34 @@ debug_print_missing (const char *binary, *slot = missing_filepair; @@ -456,7 +457,8 @@ Index: gdb-6.8.50.20090909/gdb/symfile.c + _("Missing separate debuginfo for %s\n"), binary); + if (debug != NULL) + fprintf_unfiltered (gdb_stdlog, _("Try: %s %s\n"), -+ "yum --enablerepo='*-debuginfo' install", debug); ++ "yum --disablerepo='*' --enablerepo='*-debuginfo'" ++ " install", debug); + } } diff --git a/gdb.spec b/gdb.spec index d3dbe71..4e513e9 100644 --- a/gdb.spec +++ b/gdb.spec @@ -36,7 +36,7 @@ Version: 7.0.1 # The release always contains a leading reserved number, start it at 1. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing. -Release: 24%{?_with_upstream:.upstream}%{dist} +Release: 25%{?_with_upstream:.upstream}%{dist} License: GPLv3+ Group: Development/Debuggers @@ -1014,6 +1014,10 @@ fi %endif %changelog +* Tue Jan 12 2010 Jan Kratochvil - 7.0.1-25.fc12 +- non-librpm missing debuginfo yumcommand now prints also --disablerepo='*' + to save some bandwidth by yum (Robin Green, BZ 554152). + * Sun Jan 10 2010 Jan Kratochvil - 7.0.1-24.fc12 - testsuite: BuildRequires also valgrind.