[PATCH] install devel header files
by Jiri Moskovcak
This patch should fix a problem with compiling custom plugins outside
the ABRT source tree. I made a small example to test the -devel package.
1. download http://jmoskovc.fedorapeople.org/bugzilla.zip
2. compile it issuing:
$ g++ `pkg-config abrt-utils --cflags --libs` Bugzilla.cpp Bugzilla.h
--shared -fPIC -o libKokotice.so
3. mv libKokotice /usr/lib{64}/abrt
4. restart abrtd and look if the new plugin is properly loaded
Please review,
Jirka
13 years, 10 months
Show hostname in abrt-cli
by Karel Klic
diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp
index c751bd3..0a9384d 100644
--- a/src/CLI/CLI.cpp
+++ b/src/CLI/CLI.cpp
@@ -58,6 +58,11 @@ static void print_crash(const map_crash_data_t &crash)
get_crash_data_item_content(crash,
FILENAME_EXECUTABLE).c_str(),
timeloc,
get_crash_data_item_content(crash, CD_COUNT).c_str());
+
+ /* Print the hostname if it's available. */
+ const char *hostname = get_crash_data_item_content_or_NULL(crash,
FILENAME_HOSTNAME);
+ if (hostname)
+ printf(_("\tHostname : %s\n"), hostname);
}
13 years, 10 months