jfilak pushed to gnome-abrt (f22). "New upstream release 1.1.1 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 9 06:31:12 UTC 2015


>From 0c233b018b595dd2d17f24f2b4301dee8d85041e Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak at redhat.com>
Date: Thu, 9 Apr 2015 06:49:56 +0200
Subject: New upstream release 1.1.1

Resolves: #1206721, #1208502

diff --git a/.gitignore b/.gitignore
index 56280b4..dd5af21 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
 /gnome-abrt-0.3.7.tar.gz
 /gnome-abrt-1.0.0.tar.gz
 /gnome-abrt-1.1.0.tar.gz
+/gnome-abrt-1.1.1.tar.gz
diff --git a/0001-build-Filter-out-unimportant-commit-messages-in-the-.patch b/0001-build-Filter-out-unimportant-commit-messages-in-the-.patch
deleted file mode 100644
index 109202b..0000000
--- a/0001-build-Filter-out-unimportant-commit-messages-in-the-.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 1bd8035e18fccbac17a2c7ce2f1da19c89c166e1 Mon Sep 17 00:00:00 2001
-From: Jakub Filak <jfilak at redhat.com>
-Date: Tue, 17 Mar 2015 16:17:42 +0100
-Subject: [PATCH] build: Filter out unimportant commit messages in the
- changelog builder
-
-Signed-off-by: Jakub Filak <jfilak at redhat.com>
----
- Makefile.am | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/Makefile.am b/Makefile.am
-index de6f0be..c11bdc4 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -54,7 +54,7 @@ release-major:
- .PHONY: release
- release:
- 	echo "* $$(date +'%a %b %d %Y') $$(git config --get user.name) <$$(git config --get user.email)> $$NEW_VER-1" > /tmp/changelog.tmp; \
--	git log --oneline $$OLD_VER..HEAD | awk '{$$1=""; print "-" $$0} END {print ""}' >> /tmp/changelog.tmp; \
-+	git log --oneline $$OLD_VER..HEAD | awk '{$$1=""; print "-" $$0} END {print ""}' | grep -v -e "- Merge" -e "- testsuite:" >> /tmp/changelog.tmp; \
- 	sed "$$(grep -n changelog gnome-abrt.spec.in | cut -f1 -d:)"'r /tmp/changelog.tmp' -i gnome-abrt.spec.in; \
- 	git add gnome-abrt.spec.in; \
- 	git commit -m "New version $$NEW_VER"; \
--- 
-2.3.2
-
diff --git a/0002-Remove-unused-code-from-get_application.patch b/0002-Remove-unused-code-from-get_application.patch
deleted file mode 100644
index 551c96c..0000000
--- a/0002-Remove-unused-code-from-get_application.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 5798bbc15f624c52578c3a4b43cc18580ec6486b Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess at hadess.net>
-Date: Tue, 17 Mar 2015 18:18:07 +0100
-Subject: [PATCH] Remove unused code from get_application()
-
----
- src/gnome_abrt/problems.py | 12 ------------
- 1 file changed, 12 deletions(-)
-
-diff --git a/src/gnome_abrt/problems.py b/src/gnome_abrt/problems.py
-index 59bb433..3014b69 100644
---- a/src/gnome_abrt/problems.py
-+++ b/src/gnome_abrt/problems.py
-@@ -269,18 +269,6 @@ class Problem(object):
- 
-     def get_application(self):
-         if not self.app:
--            component = self['component']
--            if not component:
--                package = self['package']
--                if package:
--                    parts = package.split("-")
--                    if len(parts) > 2:
--                        # some-foo-package-7.7.7-2
--                        component = "-".join(parts[:-2])
--                    elif len(parts) == 1:
--                        # kernel
--                        component = package
--
-             self.app = find_application(self['cmdline'])
- 
-         return self.app
--- 
-2.3.2
-
diff --git a/0003-Add-wrapper-for-problem_create_app_from_env.patch b/0003-Add-wrapper-for-problem_create_app_from_env.patch
deleted file mode 100644
index b2b518a..0000000
--- a/0003-Add-wrapper-for-problem_create_app_from_env.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From c77a8dd5303a132b9a3a482527ac2a4d8db01a8f Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess at hadess.net>
-Date: Tue, 17 Mar 2015 18:25:07 +0100
-Subject: [PATCH] Add wrapper for problem_create_app_from_env()
-
----
- src/gnome_abrt/wrappers/__init__.py   |  3 ++-
- src/gnome_abrt/wrappers/common.h      |  3 +++
- src/gnome_abrt/wrappers/module.c      |  1 +
- src/gnome_abrt/wrappers/problem_app.c | 32 ++++++++++++++++++++++++++++++++
- 4 files changed, 38 insertions(+), 1 deletion(-)
-
-diff --git a/src/gnome_abrt/wrappers/__init__.py b/src/gnome_abrt/wrappers/__init__.py
-index 565ca4d..a00e039 100644
---- a/src/gnome_abrt/wrappers/__init__.py
-+++ b/src/gnome_abrt/wrappers/__init__.py
-@@ -19,4 +19,5 @@
- from gnome_abrt.wrappers._wrappers import (show_events_list_dialog,
-                                            show_system_config_abrt_dialog,
-                                            show_problem_details_for_dir,
--                                           get_app_for_cmdline)
-+                                           get_app_for_cmdline,
-+                                           get_app_for_env)
-diff --git a/src/gnome_abrt/wrappers/common.h b/src/gnome_abrt/wrappers/common.h
-index a125a43..9a77ff8 100644
---- a/src/gnome_abrt/wrappers/common.h
-+++ b/src/gnome_abrt/wrappers/common.h
-@@ -27,3 +27,6 @@ PyObject *p_show_problem_details_for_dir(PyObject *module, PyObject *args);
- 
- /* App for a command-line */
- PyObject *p_get_app_for_cmdline(PyObject *module, PyObject *args);
-+
-+/* App for an env */
-+PyObject *p_get_app_for_env(PyObject *module, PyObject *args);
-diff --git a/src/gnome_abrt/wrappers/module.c b/src/gnome_abrt/wrappers/module.c
-index 521c3ae..4c4a6df 100644
---- a/src/gnome_abrt/wrappers/module.c
-+++ b/src/gnome_abrt/wrappers/module.c
-@@ -27,6 +27,7 @@ static PyMethodDef module_methods[] = {
-     { "show_system_config_abrt_dialog", p_show_system_config_abrt_dialog, METH_VARARGS, "Open a dialog with ABRT configuration" },
-     { "show_problem_details_for_dir", p_show_problem_details_for_dir, METH_VARARGS, "Open a dialog with technical details" },
-     { "get_app_for_cmdline", p_get_app_for_cmdline, METH_VARARGS, "Get the application for a specific command-line" },
-+    { "get_app_for_env", p_get_app_for_env, METH_VARARGS, "Get the application for a specific environment" },
-     { NULL }
- };
- 
-diff --git a/src/gnome_abrt/wrappers/problem_app.c b/src/gnome_abrt/wrappers/problem_app.c
-index 25b228e..10aa75a 100644
---- a/src/gnome_abrt/wrappers/problem_app.c
-+++ b/src/gnome_abrt/wrappers/problem_app.c
-@@ -34,3 +34,35 @@ PyObject *p_get_app_for_cmdline(PyObject *module, PyObject *args)
- 
-     Py_RETURN_NONE;
- }
-+
-+PyObject *p_get_app_for_env(PyObject *module, PyObject *args)
-+{
-+    (void)module;
-+
-+    PyObject *envp_seq;
-+    pid_t pid = -1;
-+    if (PyArg_ParseTuple(args, "Oi", &envp_seq, &pid) &&
-+        (envp_seq = PySequence_Fast(envp_seq, "expected a sequence")))
-+    {
-+        GPtrArray *envp_array;
-+        int size, i;
-+
-+        size = PySequence_Size(envp_seq);
-+        envp_array = g_ptr_array_new_full(size + 1, g_free);
-+
-+        for (i = 0; i < size; i++) {
-+            PyObject *seqItem = PySequence_Fast_GET_ITEM(envp_seq, i);
-+
-+            PyObject *asciiItem = PyUnicode_AsASCIIString(seqItem);
-+            g_ptr_array_insert (envp_array, -1, g_strdup(PyBytes_AsString(asciiItem)));
-+        }
-+        g_ptr_array_insert (envp_array, -1, NULL);
-+
-+        GAppInfo *app = problem_create_app_from_env((const char **) envp_array->pdata, pid);
-+        g_ptr_array_free(envp_array, TRUE);
-+        if (app)
-+            return pygobject_new((GObject *)app);
-+    }
-+
-+    Py_RETURN_NONE;
-+}
--- 
-2.3.2
-
diff --git a/0004-Try-to-use-environment-to-find-the-the-application.patch b/0004-Try-to-use-environment-to-find-the-the-application.patch
deleted file mode 100644
index 3c9fbc0..0000000
--- a/0004-Try-to-use-environment-to-find-the-the-application.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-From cdfc81b3380bba744e68e4dab4460853e1c9de23 Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess at hadess.net>
-Date: Tue, 17 Mar 2015 18:25:35 +0100
-Subject: [PATCH] Try to use environment to find the the application
-
----
- src/gnome_abrt/application.py | 7 +++++--
- src/gnome_abrt/problems.py    | 5 +++--
- 2 files changed, 8 insertions(+), 4 deletions(-)
-
-diff --git a/src/gnome_abrt/application.py b/src/gnome_abrt/application.py
-index b4e66dc..2d86e80 100644
---- a/src/gnome_abrt/application.py
-+++ b/src/gnome_abrt/application.py
-@@ -33,8 +33,11 @@ class Application(object):
-         self.icon = icon
- 
- 
--def find_application(cmdline):
--    app = wrappers.get_app_for_cmdline(cmdline)
-+def find_application(cmdline, envp, pid):
-+    if envp:
-+        app = wrappers.get_app_for_env(envp.split('\n'), int(pid))
-+    if not app:
-+        app = wrappers.get_app_for_cmdline(cmdline)
-     if not app:
-         return Application(cmdline.split(" ")[0])
- 
-diff --git a/src/gnome_abrt/problems.py b/src/gnome_abrt/problems.py
-index 3014b69..f6748e9 100644
---- a/src/gnome_abrt/problems.py
-+++ b/src/gnome_abrt/problems.py
-@@ -66,7 +66,8 @@ class ProblemSource(object):
- class Problem(object):
-     INITIAL_ELEMENTS = ['component', 'executable', 'cmdline', 'count', 'type',
-                         'last_occurrence', 'time', 'reason', 'pkg_arch',
--                        'pkg_epoch', 'pkg_name', 'pkg_release', 'pkg_version']
-+                        'pkg_epoch', 'pkg_name', 'pkg_release', 'pkg_version',
-+                        'environ', 'pid']
- 
-     class Submission(object):
-         URL = "URL"
-@@ -269,7 +270,7 @@ class Problem(object):
- 
-     def get_application(self):
-         if not self.app:
--            self.app = find_application(self['cmdline'])
-+            self.app = find_application(self['cmdline'], self['environ'], self['pid'])
- 
-         return self.app
- 
--- 
-2.3.2
-
diff --git a/0005-Fix-too-long-line.patch b/0005-Fix-too-long-line.patch
deleted file mode 100644
index 53d05c3..0000000
--- a/0005-Fix-too-long-line.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From b44c7ece37658da1af27e9775a2bbce3d6a20cda Mon Sep 17 00:00:00 2001
-From: Jakub Filak <jfilak at redhat.com>
-Date: Wed, 18 Mar 2015 07:55:05 +0100
-Subject: [PATCH] Fix too long line
-
-Signed-off-by: Jakub Filak <jfilak at redhat.com>
----
- src/gnome_abrt/problems.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/gnome_abrt/problems.py b/src/gnome_abrt/problems.py
-index f6748e9..cd0d041 100644
---- a/src/gnome_abrt/problems.py
-+++ b/src/gnome_abrt/problems.py
-@@ -270,7 +270,9 @@ class Problem(object):
- 
-     def get_application(self):
-         if not self.app:
--            self.app = find_application(self['cmdline'], self['environ'], self['pid'])
-+            self.app = find_application(self['cmdline'],
-+                                        self['environ'],
-+                                        self['pid'])
- 
-         return self.app
- 
--- 
-2.3.2
-
diff --git a/0008-Fix-a-crash-when-selected-problem-doesn-t-have-envir.patch b/0008-Fix-a-crash-when-selected-problem-doesn-t-have-envir.patch
deleted file mode 100644
index b19433b..0000000
--- a/0008-Fix-a-crash-when-selected-problem-doesn-t-have-envir.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 6b2ca4019c0c43e4e9ea6a5f59871b8286dc9818 Mon Sep 17 00:00:00 2001
-From: Jakub Filak <jfilak at redhat.com>
-Date: Mon, 23 Mar 2015 18:15:24 +0100
-Subject: [PATCH] Fix a crash when selected problem doesn't have environ
-
-Kerneloopses are an example of such a kind of problem.
-
-Resolves: rhbz#1204524, rhbz#1204408
-
-Signed-off-by: Jakub Filak <jfilak at redhat.com>
----
- src/gnome_abrt/application.py | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/gnome_abrt/application.py b/src/gnome_abrt/application.py
-index 2d86e80..5d00056 100644
---- a/src/gnome_abrt/application.py
-+++ b/src/gnome_abrt/application.py
-@@ -34,6 +34,7 @@ class Application(object):
- 
- 
- def find_application(cmdline, envp, pid):
-+    app = None
-     if envp:
-         app = wrappers.get_app_for_env(envp.split('\n'), int(pid))
-     if not app:
--- 
-2.3.2
-
diff --git a/0008-Turn-of-missing-member-pylint-warning-for-report-mod.patch b/0008-Turn-of-missing-member-pylint-warning-for-report-mod.patch
deleted file mode 100644
index a60bc7b..0000000
--- a/0008-Turn-of-missing-member-pylint-warning-for-report-mod.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 57f2cff7c56850c5aab4e53993af0831055b0184 Mon Sep 17 00:00:00 2001
-From: Jakub Filak <jfilak at redhat.com>
-Date: Wed, 18 Mar 2015 16:33:04 +0100
-Subject: [PATCH] Turn of missing member pylint warning for report module
-
-Signed-off-by: Jakub Filak <jfilak at redhat.com>
----
- src/gnome_abrt/dialogs.py | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/gnome_abrt/dialogs.py b/src/gnome_abrt/dialogs.py
-index fe02b20..ee7a8da 100644
---- a/src/gnome_abrt/dialogs.py
-+++ b/src/gnome_abrt/dialogs.py
-@@ -21,6 +21,7 @@ import gnome_abrt
- from gnome_abrt.l10n import _
- 
- # libreport
-+#pylint: disable=E0611
- from report import problem_data, report_problem_in_memory, LIBREPORT_NOWAIT
- 
- # pygogject
--- 
-2.3.2
-
diff --git a/0009-Use-a-gettext-function-returning-strings-instead-of-.patch b/0009-Use-a-gettext-function-returning-strings-instead-of-.patch
deleted file mode 100644
index 20ec6ae..0000000
--- a/0009-Use-a-gettext-function-returning-strings-instead-of-.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 69d514370955e5c9d8173d6bf964debd76bf7236 Mon Sep 17 00:00:00 2001
-From: Jakub Filak <jfilak at redhat.com>
-Date: Mon, 23 Mar 2015 19:13:50 +0100
-Subject: [PATCH] Use a gettext function returning strings instead of bytes
-
-lgettext returns an array of bytes in system encoding and this, together
-with Python3, causes troubles.
-
-Resolves: rhbz#1204339
-
-Signed-off-by: Jakub Filak <jfilak at redhat.com>
----
- src/gnome_abrt/l10n.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/gnome_abrt/l10n.py b/src/gnome_abrt/l10n.py
-index 06c264b..332899c 100644
---- a/src/gnome_abrt/l10n.py
-+++ b/src/gnome_abrt/l10n.py
-@@ -22,7 +22,7 @@ import logging
- 
- GETTEXT_PROGNAME = None
- 
--_ = gettext.lgettext
-+_ = gettext.gettext
- 
- def init(progname, localedir='/usr/share/locale'):
-     global GETTEXT_PROGNAME
--- 
-2.3.2
-
diff --git a/gnome-abrt.spec b/gnome-abrt.spec
index c79c127..6134132 100644
--- a/gnome-abrt.spec
+++ b/gnome-abrt.spec
@@ -5,8 +5,8 @@
 #         ! no binaries in $PATH ... caused by gnome-abrt python script in /usr/bin
 
 Name:       gnome-abrt
-Version:    1.1.0
-Release:    2%{?dist}
+Version:    1.1.1
+Release:    1%{?dist}
 Summary:    A utility for viewing problems that have occurred with the system
 
 Group:      User Interface/Desktops
@@ -16,18 +16,6 @@ Source0:    https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
 
 # git format-patch %%{Version} --topo-order -N -M;
 # i=1; for p in `ls 0*.patch`; do printf "Patch%04d: %s\n" $i $p; ((i++)); done
-Patch0001:  0001-build-Filter-out-unimportant-commit-messages-in-the-.patch
-Patch0002:  0002-Remove-unused-code-from-get_application.patch
-Patch0003:  0003-Add-wrapper-for-problem_create_app_from_env.patch
-Patch0004:  0004-Try-to-use-environment-to-find-the-the-application.patch
-Patch0005:  0005-Fix-too-long-line.patch
-#Patch0006:  0006-Bump-the-required-versions-in-the-spec-file.patch
-#Patch0007:  0007-Fix-build-dependencies-caused-by-Python3.patch
-Patch0008:  0008-Fix-a-crash-when-selected-problem-doesn-t-have-envir.patch
-Patch0009:  0009-Use-a-gettext-function-returning-strings-instead-of-.patch
-
-# without this patch, make check fails in koji
-Patch1000:  0008-Turn-of-missing-member-pylint-warning-for-report-mod.patch
 
 # git is need for '%%autosetup -S git' which automatically applies all the
 # patches above. Please, be aware that the patches must be generated
@@ -131,6 +119,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Thu Apr 09 2015 Jakub Filak <jfilak at redhat.com> - 1.1.1-1
+- Several bug fixes
+- Resolves: #1206721, #1208502
+
 * Tue Mar 17 2015 Jakub Filak <jfilak at redhat.com> - 1.1.0-2
 - Fix a crash caused by i18n
 - Fix a crash caused by problems without environment file
diff --git a/sources b/sources
index daafd27..88a4ea8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-719fa79f2347716663be642531f8c7ac  gnome-abrt-1.1.0.tar.gz
+3a8d8862e8c6f941d3b2f63acc24be31  gnome-abrt-1.1.1.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gnome-abrt.git/commit/?h=f22&id=0c233b018b595dd2d17f24f2b4301dee8d85041e


More information about the scm-commits mailing list