Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mate-menu for openSUSE:Factory 
checked in at 2021-08-18 08:55:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mate-menu (Old)
 and      /work/SRC/openSUSE:Factory/.mate-menu.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mate-menu"

Wed Aug 18 08:55:41 2021 rev:24 rq:912369 version:20.04.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/mate-menu/mate-menu.changes      2021-04-01 
14:19:13.132148470 +0200
+++ /work/SRC/openSUSE:Factory/.mate-menu.new.1899/mate-menu.changes    
2021-08-18 08:56:24.450939941 +0200
@@ -1,0 +2,7 @@
+Mon Aug 16 13:40:48 UTC 2021 - Hillwood Yang <[email protected]>
+
+- Fix crash (boo#1189452)
+  * Add fix-crash-issue.patch for leap
+  * Change dependence python3-pyxdg to python3-xdg
+
+-------------------------------------------------------------------

New:
----
  fix-crash-issue.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mate-menu.spec ++++++
--- /var/tmp/diff_new_pack.J6mgls/_old  2021-08-18 08:56:25.026939264 +0200
+++ /var/tmp/diff_new_pack.J6mgls/_new  2021-08-18 08:56:25.030939259 +0200
@@ -23,10 +23,13 @@
 Release:        0
 Summary:        Advanced MATE menu
 License:        GPL-2.0-or-later
+Group:          System/GUI/Other
 URL:            https://github.com/ubuntu-mate/mate-menu
 Source:         
https://github.com/ubuntu-mate/mate-menu/archive/%{version}/%{name}-%{version}.tar.gz
 # PATCH-FEATURE-OPENSUSE mate-menu-yast2-software.patch [email protected] -- 
Use YaST2 and GNOME PackageKit package managers.
 Patch0:         mate-menu-yast2-software.patch
+# PATCH-FIX-UPSTREAM fix-crash-issue.patch [email protected] -- Fix 
boo#1189452 for Leap 15.2+
+Patch1:         fix-crash-issue.patch
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  intltool
 BuildRequires:  python3-distutils-extra
@@ -40,8 +43,9 @@
 Requires:       python3-configobj
 Requires:       python3-gobject
 Requires:       python3-gobject-Gdk
+# Fix boo#1189452
+Requires:       python3-pyxdg
 Requires:       python3-setproctitle
-Requires:       python3-xdg
 Requires:       python3-xlib
 Requires:       xdg-utils
 Recommends:     %{name}-lang
@@ -60,7 +64,12 @@
 %lang_package
 
 %prep
-%autosetup -p1
+%setup -q
+%patch0 -p1
+# fix boo#1189452 for Leap 15.2+
+%if 0%{?suse_version} <=1500
+%patch1 -p1
+%endif
 
 sed -i 's/su-to-root/xdg-su/g' %{_name}/execute.py
 

++++++ fix-crash-issue.patch ++++++
diff -Nur mate-menu-20.04.3/lib/mate-menu.py 
mate-menu-20.04.3-new/lib/mate-menu.py
--- mate-menu-20.04.3/lib/mate-menu.py  2020-04-05 07:10:31.000000000 +0800
+++ mate-menu-20.04.3-new/lib/mate-menu.py      2021-08-15 17:25:13.623972927 
+0800
@@ -531,7 +531,7 @@
         self.do_load_icon(self.icon)
         self.systemlabel = Gtk.Label(label= "%s " % self.buttonText )
         try:
-            process = subprocess.Popen(['lsb_release', '-d'], 
stdout=subprocess.PIPE, text=True)
+            process = subprocess.Popen(['lsb_release', '-d'], 
stdout=subprocess.PIPE, universal_newlines=True)
             out, err = process.communicate()
             tooltip = str(out).replace('Description:', '').strip()
             self.systemlabel.set_tooltip_text(tooltip)

Reply via email to