Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hugin for openSUSE:Factory checked 
in at 2022-11-03 19:14:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hugin (Old)
 and      /work/SRC/openSUSE:Factory/.hugin.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hugin"

Thu Nov  3 19:14:36 2022 rev:76 rq:1033007 version:2021.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/hugin/hugin.changes      2022-10-26 
14:35:21.752969497 +0200
+++ /work/SRC/openSUSE:Factory/.hugin.new.2275/hugin.changes    2022-11-03 
19:15:28.832464776 +0100
@@ -1,0 +2,5 @@
+Wed Nov  2 12:29:44 UTC 2022 - Paolo Stivanin <i...@paolostivanin.com>
+
+- Add xdg-data.patch: fixes bsc#1204546
+
+-------------------------------------------------------------------

New:
----
  xdg-data.patch

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

Other differences:
------------------
++++++ hugin.spec ++++++
--- /var/tmp/diff_new_pack.jDvsVb/_old  2022-11-03 19:15:29.400468116 +0100
+++ /var/tmp/diff_new_pack.jDvsVb/_new  2022-11-03 19:15:29.408468163 +0100
@@ -31,6 +31,7 @@
 URL:            http://hugin.sourceforge.net/
 Source:         
https://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{mversion}/%{name}-%{version}.tar.bz2
 Patch0:         hugin.appdata.patch
+Patch1:         xdg-data.patch
 BuildRequires:  Mesa-devel
 BuildRequires:  OpenEXR-devel
 BuildRequires:  cmake >= 3.1.0

++++++ xdg-data.patch ++++++
# HG changeset patch
# User tmodes
# Date 1658245150 -7200
#      Tue Jul 19 17:39:10 2022 +0200
# Node ID edfddc6070ca6d4223d359fb4b38273a5aed2f2d
# Parent  490baa16aae6680792d31316be12a75b50236baa
Fixes crash when environment variable XDG_DATA_HOME is not set

diff -r 490baa16aae6 -r edfddc6070ca src/hugin_base/hugin_utils/utils.cpp
--- a/src/hugin_base/hugin_utils/utils.cpp      Thu May 26 18:58:52 2022 +0200
+++ b/src/hugin_base/hugin_utils/utils.cpp      Tue Jul 19 17:39:10 2022 +0200
@@ -472,9 +472,9 @@
 #else
 #ifdef USE_XDG_DIRS
     char *xdgDataDir = getenv("XDG_DATA_HOME");
-    if (strlen(xdgDataDir) == 0)
+    if (xdgDataDir == NULL || strlen(xdgDataDir) == 0)
     {
-        // no XDG_DATA_HOME enviroment variable set
+        // no XDG_DATA_HOME enviroment variable set or empty variable
         // use $HOME/.local/share instead
         const  std::string homeDir = GetHomeDir();
         if (homeDir.empty())

Reply via email to