From bebc7a471cca2ec6582561baffb06ad48c756597 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 2 Feb 2010 22:30:39 +0000 Subject: [PATCH] - read /etc/pld-release Changed files: abrt-pld.patch -> 1.1 abrt.spec -> 1.12 --- abrt-pld.patch | 11 +++++++++++ abrt.spec | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 abrt-pld.patch diff --git a/abrt-pld.patch b/abrt-pld.patch new file mode 100644 index 0000000..f743bed --- /dev/null +++ b/abrt-pld.patch @@ -0,0 +1,11 @@ +--- abrt-1.0.0/lib/Utils/DebugDump.cpp~ 2009-11-22 21:50:18.000000000 +0200 ++++ abrt-1.0.0/lib/Utils/DebugDump.cpp 2010-02-03 00:20:43.878642078 +0200 +@@ -315,7 +315,7 @@ + SaveText(FILENAME_ARCHITECTURE, buf.machine); + } + std::string release; +- LoadTextFile("/etc/redhat-release", release); ++ LoadTextFile("/etc/pld-release", release); + const char *release_ptr = release.c_str(); + unsigned len_1st_str = strchrnul(release_ptr, '\n') - release_ptr; + release.erase(len_1st_str); /* usually simply removes trailing '\n' */ diff --git a/abrt.spec b/abrt.spec index b6acfa3..da6a7e7 100644 --- a/abrt.spec +++ b/abrt.spec @@ -3,7 +3,7 @@ Summary: Automatic bug detection and reporting tool Name: abrt Version: 1.0.0 -Release: 0.4 +Release: 0.5 License: GPL v2+ Group: Applications/System URL: https://fedorahosted.org/abrt/ @@ -12,6 +12,7 @@ Source0: %{name}-%{version}.tar.gz # Source0-md5: 62a8a6a1d7712472133b97b38469683e Source1: %{name}.init Patch0: %{name}-rpm.patch +Patch1: %{name}-pld.patch BuildRequires: bzip2-devel BuildRequires: curl-devel BuildRequires: dbus-devel @@ -239,6 +240,7 @@ environments. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %configure -- 2.44.0