Matej Habrnal 0e9ae4
From 0020bf80cda35ee0ce0ecf91023f3abcc1c4d26d Mon Sep 17 00:00:00 2001
Matej Habrnal 0e9ae4
From: Jakub Filak <jfilak@redhat.com>
Matej Habrnal 0e9ae4
Date: Sat, 20 Feb 2016 08:27:32 +0100
Matej Habrnal 0e9ae4
Subject: [PATCH] Add basic documentation
Matej Habrnal 0e9ae4
Matej Habrnal 0e9ae4
Signed-off-by: Jakub Filak <jfilak@redhat.com>
Matej Habrnal 0e9ae4
---
Matej Habrnal 0e9ae4
 CONTRIBUTING.md | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Matej Habrnal 0e9ae4
 INSTALL         |  7 -----
Matej Habrnal 0e9ae4
 INSTALL.md      | 56 ++++++++++++++++++++++++++++++++++
Matej Habrnal 0e9ae4
 Makefile.am     |  2 ++
Matej Habrnal 0e9ae4
 README          | 11 -------
Matej Habrnal 0e9ae4
 README.md       | 48 +++++++++++++++++++++++++++++
Matej Habrnal 0e9ae4
 6 files changed, 200 insertions(+), 18 deletions(-)
Matej Habrnal 0e9ae4
 create mode 100644 CONTRIBUTING.md
Matej Habrnal 0e9ae4
 delete mode 100644 INSTALL
Matej Habrnal 0e9ae4
 create mode 100644 INSTALL.md
Matej Habrnal 0e9ae4
 delete mode 100644 README
Matej Habrnal 0e9ae4
 create mode 100644 README.md
Matej Habrnal 0e9ae4
Matej Habrnal 0e9ae4
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
Matej Habrnal 0e9ae4
new file mode 100644
Matej Habrnal 0e9ae4
index 0000000..4b27138
Matej Habrnal 0e9ae4
--- /dev/null
Matej Habrnal 0e9ae4
+++ b/CONTRIBUTING.md
Matej Habrnal 0e9ae4
@@ -0,0 +1,94 @@
Matej Habrnal 0e9ae4
+# Contributing to ABRT
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Adopted from http://www.contribution-guide.org/
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+BSD, Copyright (c) 2015 Jeff Forcier
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+## Submitting bugs
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Due diligence
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Before submitting a bug, please do the following:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+* Perform **basic troubleshooting** steps:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    * **Make sure you're on the latest version.** If you're not on the most
Matej Habrnal 0e9ae4
+      recent version, your problem may have been solved already! Upgrading is
Matej Habrnal 0e9ae4
+      always the best first step.
Matej Habrnal 0e9ae4
+    * **Try older versions.** If you're already *on* the latest release, try
Matej Habrnal 0e9ae4
+      rolling back a few minor versions (e.g. if on 1.7, try 1.5 or 1.6) and
Matej Habrnal 0e9ae4
+      see if the problem goes away. This will help the devs narrow down when
Matej Habrnal 0e9ae4
+      the problem first arose in the commit log.
Matej Habrnal 0e9ae4
+    * **Try switching up dependency versions.** If the software in question has
Matej Habrnal 0e9ae4
+      dependencies (other libraries, etc) try upgrading/downgrading those as
Matej Habrnal 0e9ae4
+      well.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+* **Search the project's bug/issue tracker** to make sure it's not a known issue.
Matej Habrnal 0e9ae4
+* If you don't find a pre-existing issue, consider **checking with the mailing
Matej Habrnal 0e9ae4
+  list and/or IRC channel** in case the problem is non-bug-related.
Matej Habrnal 0e9ae4
+* Consult [README.md](README.md) for links to bugtracker, mailinglist or IRC.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### What to put in your bug report
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Make sure your report gets the attention it deserves: bug reports with missing
Matej Habrnal 0e9ae4
+information may be ignored or punted back to you, delaying a fix. The below
Matej Habrnal 0e9ae4
+constitutes a bare minimum; more info is almost always better:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+* **What version of the core programming language interpreter/compiler are you
Matej Habrnal 0e9ae4
+  using?** For example, if it's a Python project, are you using Python 2.7.3?
Matej Habrnal 0e9ae4
+  Python 3.3.1? PyPy 2.0?
Matej Habrnal 0e9ae4
+* **What operating system are you on?** Make sure to include release and distribution.
Matej Habrnal 0e9ae4
+* **Which version or versions of the software are you using?** Ideally, you
Matej Habrnal 0e9ae4
+  followed the advice above and have ruled out (or verified that the problem
Matej Habrnal 0e9ae4
+  exists in) a few different versions.
Matej Habrnal 0e9ae4
+* **How can the developers recreate the bug on their end?** If possible,
Matej Habrnal 0e9ae4
+  include a copy of your code, the command you used to invoke it, and the full
Matej Habrnal 0e9ae4
+  output of your run (if applicable.)
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    * A common tactic is to pare down your code until a simple (but still
Matej Habrnal 0e9ae4
+      bug-causing) "base case" remains. Not only can this help you identify
Matej Habrnal 0e9ae4
+      problems which aren't real bugs, but it means the developer can get to
Matej Habrnal 0e9ae4
+      fixing the bug faster.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+## Contributing changes
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+It would be the best if you could discuss your plans with us on #abrt or on our
Matej Habrnal 0e9ae4
+mailinig list crash-catcher@lists.fedorahosted.org before you spent too much
Matej Habrnal 0e9ae4
+energy and time.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Before contributing, please, make yourself familiar with git. You can [try git
Matej Habrnal 0e9ae4
+online](https://try.github.io/). Things would be easier for all of us if you do
Matej Habrnal 0e9ae4
+your changes on a branch. Use a single commit for every logical reviewable
Matej Habrnal 0e9ae4
+change, without unrelated modifications (that will help us if need to revert a
Matej Habrnal 0e9ae4
+particular commit). Please avoid adding commits fixing your previous
Matej Habrnal 0e9ae4
+commits, do amend or rebase instead.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Every commit must have either comprehensive commit message saying what is being
Matej Habrnal 0e9ae4
+changed and why or a link (an issue number on Github) to a bug report where
Matej Habrnal 0e9ae4
+this information is available. It is also useful to include notes about
Matej Habrnal 0e9ae4
+negative decisions - i.e. why you decided to not do particular things. Please
Matej Habrnal 0e9ae4
+bare in mind that other developers might not understand what the original
Matej Habrnal 0e9ae4
+problem was.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Full example
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Here's an example workflow for a project `abrt` hosted on Github
Matej Habrnal 0e9ae4
+Your username is `yourname` and you're submitting a basic bugfix or feature.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+* Hit 'fork' on Github, creating e.g. `yourname/abrt`.
Matej Habrnal 0e9ae4
+* `git clone git@github.com:yourname/abrt`
Matej Habrnal 0e9ae4
+* `cd abrt`
Matej Habrnal 0e9ae4
+* `git checkout -b foo_the_bars` to create new local branch named foo_the_bars
Matej Habrnal 0e9ae4
+* Hack, hack, hack
Matej Habrnal 0e9ae4
+* Run `make check`
Matej Habrnal 0e9ae4
+* `git status`
Matej Habrnal 0e9ae4
+* `git add`
Matej Habrnal 0e9ae4
+* `git commit -s -m "Foo the bars"`
Matej Habrnal 0e9ae4
+* `git push -u origin HEAD` to create foo_the_bars branch in your fork
Matej Habrnal 0e9ae4
+* Visit your fork at Github and click handy "Pull request" button.
Matej Habrnal 0e9ae4
+* In the description field, write down issue number (if submitting code fixing
Matej Habrnal 0e9ae4
+  an existing issue) or describe the issue + your fix (if submitting a wholly
Matej Habrnal 0e9ae4
+  new bugfix).
Matej Habrnal 0e9ae4
+* Hit 'submit'! And please be patient - the maintainers will get to you when
Matej Habrnal 0e9ae4
+  they can.
Matej Habrnal 0e9ae4
diff --git a/INSTALL b/INSTALL
Matej Habrnal 0e9ae4
deleted file mode 100644
Matej Habrnal 0e9ae4
index 799a4a6..0000000
Matej Habrnal 0e9ae4
--- a/INSTALL
Matej Habrnal 0e9ae4
+++ /dev/null
Matej Habrnal 0e9ae4
@@ -1,7 +0,0 @@
Matej Habrnal 0e9ae4
-How to install
Matej Habrnal 0e9ae4
-==============
Matej Habrnal 0e9ae4
-
Matej Habrnal 0e9ae4
-1. autogen.sh
Matej Habrnal 0e9ae4
-2. ./configure
Matej Habrnal 0e9ae4
-3. make
Matej Habrnal 0e9ae4
-4. make install
Matej Habrnal 0e9ae4
diff --git a/INSTALL.md b/INSTALL.md
Matej Habrnal 0e9ae4
new file mode 100644
Matej Habrnal 0e9ae4
index 0000000..96d42c4
Matej Habrnal 0e9ae4
--- /dev/null
Matej Habrnal 0e9ae4
+++ b/INSTALL.md
Matej Habrnal 0e9ae4
@@ -0,0 +1,56 @@
Matej Habrnal 0e9ae4
+# How to install
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Development dependencies
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Build dependencies can be listed by:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ ./autogen.sh sysdeps
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+or installed by:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ ./autogen.sh sysdeps --install
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+The dependency installer gets the data from [the rpm spec file](abrt.spec.in)
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Building from sources
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+When you have all dependencies installed run the following commands:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ ./autogen.sh --prefix=/usr \
Matej Habrnal 0e9ae4
+                   --sysconfdir=/etc \
Matej Habrnal 0e9ae4
+                   --localstatedir=/var \
Matej Habrnal 0e9ae4
+                   --sharedstatedir=/var/lib
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ make
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+or if you want to debug ABRT run:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ CFLAGS="-g -g3 -ggdb -ggdb3 -O0" ./autogen.sh --prefix=/usr \
Matej Habrnal 0e9ae4
+                                                    --sysconfdir=/etc \
Matej Habrnal 0e9ae4
+                                                    --localstatedir=/var \
Matej Habrnal 0e9ae4
+                                                    --sharedstatedir=/var/lib \
Matej Habrnal 0e9ae4
+                                                    --enable-debug
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ make
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Checking
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+ABRT uses [Autotest](http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Using-Autotest.html)
Matej Habrnal 0e9ae4
+to validate source codes. Run the test by:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ make check
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+If you want to search for memory issues, build ABRT with debug options and then
Matej Habrnal 0e9ae4
+run:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ make maintainer-check
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Installing
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+If you need an rpm package, run:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ make rpm
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+otherwise run:
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+    $ make install
Matej Habrnal 0e9ae4
diff --git a/Makefile.am b/Makefile.am
Matej Habrnal 0e9ae4
index 01b8a97..e528c93 100644
Matej Habrnal 0e9ae4
--- a/Makefile.am
Matej Habrnal 0e9ae4
+++ b/Makefile.am
Matej Habrnal 0e9ae4
@@ -36,6 +36,8 @@ EXTRA_DIST = doc/coding-style abrt.spec.in abrt.pc.in \
Matej Habrnal 0e9ae4
 	abrt-version asciidoc.conf init-scripts/* $(TESTSUITE_FILES) \
Matej Habrnal 0e9ae4
 	augeas/test_abrt.aug
Matej Habrnal 0e9ae4
 
Matej Habrnal 0e9ae4
+dist_doc_DATA = README.md
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
 pkgconfigdir = $(libdir)/pkgconfig
Matej Habrnal 0e9ae4
 pkgconfig_DATA = abrt.pc
Matej Habrnal 0e9ae4
 
Matej Habrnal 0e9ae4
diff --git a/README b/README
Matej Habrnal 0e9ae4
deleted file mode 100644
Matej Habrnal 0e9ae4
index 26cbbcb..0000000
Matej Habrnal 0e9ae4
--- a/README
Matej Habrnal 0e9ae4
+++ /dev/null
Matej Habrnal 0e9ae4
@@ -1,11 +0,0 @@
Matej Habrnal 0e9ae4
-These sources are in early stages. They are changing every day :-)...
Matej Habrnal 0e9ae4
-Anyway, patches are welcome.
Matej Habrnal 0e9ae4
-
Matej Habrnal 0e9ae4
-** Using Valgrind
Matej Habrnal 0e9ae4
-
Matej Habrnal 0e9ae4
-When running ABRT under memcheck, GLib's environment variables should
Matej Habrnal 0e9ae4
-be set to turn off glib's memory optimization, so valgrind is not
Matej Habrnal 0e9ae4
-confused:
Matej Habrnal 0e9ae4
-
Matej Habrnal 0e9ae4
-G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=memcheck \
Matej Habrnal 0e9ae4
-  --leak-check=full abrtd -dvvv
Matej Habrnal 0e9ae4
diff --git a/README.md b/README.md
Matej Habrnal 0e9ae4
new file mode 100644
Matej Habrnal 0e9ae4
index 0000000..e58a499
Matej Habrnal 0e9ae4
--- /dev/null
Matej Habrnal 0e9ae4
+++ b/README.md
Matej Habrnal 0e9ae4
@@ -0,0 +1,48 @@
Matej Habrnal 0e9ae4
+# ABRT
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+**A set of tools to help users detect and report application crashes.**
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### About
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Its main purpose is to ease the process of reporting an issue and finding a
Matej Habrnal 0e9ae4
+solution.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+The solution in this context might be a bugzilla ticket, knowledge base article
Matej Habrnal 0e9ae4
+or a suggestion to update a package to a version containing a fix.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Documentation
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+Every ABRT program and configuration file has a man page describing it. It is
Matej Habrnal 0e9ae4
+also possible to [read the ABRT documentation](http://abrt.readthedocs.org/)
Matej Habrnal 0e9ae4
+online. For contributors and developers, there are also [wiki
Matej Habrnal 0e9ae4
+pages](https://github.com/abrt/abrt/wiki) describing some topics to deeper
Matej Habrnal 0e9ae4
+technical details.
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Development
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+ * IRC Channel: #abrt on FreeNode
Matej Habrnal 0e9ae4
+ * [Mailing List](https://lists.fedorahosted.org/admin/lists/crash-catcher.lists.fedorahosted.org/)
Matej Habrnal 0e9ae4
+ * [Bug Reports and RFEs](https://github.com/abrt/abrt/issues)
Matej Habrnal 0e9ae4
+ * [Contributing to ABRT](CONTRIBUTING.md)
Matej Habrnal 0e9ae4
+ * [Install and run ABRT](INSTALL.md)
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Running
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+ABRT consist of several services and many small utilities. While The utilities
Matej Habrnal 0e9ae4
+can be successfully run from the source directories after build, the services
Matej Habrnal 0e9ae4
+often uses the utilities to do actions and expect the utilities installed in
Matej Habrnal 0e9ae4
+the system directories. Hence to run the services, it is recommended to install
Matej Habrnal 0e9ae4
+ABRT first and run them as system services. The instructions how to build
Matej Habrnal 0e9ae4
+and install ABRT can be found in [INSTALL.md](INSTALL.md)
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+### Technologies
Matej Habrnal 0e9ae4
+
Matej Habrnal 0e9ae4
+* [libreport](https://github.com/abrt/libreport) - problem data format, reporting
Matej Habrnal 0e9ae4
+* [satyr](https://github.com/abrt/satyr) - backtrace processing, micro-reports
Matej Habrnal 0e9ae4
+* [Python3](https://www.python.org/)
Matej Habrnal 0e9ae4
+* [GLib2](https://developer.gnome.org/glib/)
Matej Habrnal 0e9ae4
+* [Gtk3](https://developer.gnome.org/gtk3)
Matej Habrnal 0e9ae4
+* [D-Bus](https://www.freedesktop.org/wiki/Software/dbus/)
Matej Habrnal 0e9ae4
+* [SELinux](https://github.com/SELinuxProject/selinux/wiki)
Matej Habrnal 0e9ae4
+* [systemd](https://www.freedesktop.org/wiki/Software/systemd/)
Matej Habrnal 0e9ae4
-- 
Matej Habrnal 0e9ae4
2.5.5
Matej Habrnal 0e9ae4