Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sysprof for openSUSE:Factory checked 
in at 2023-12-12 19:32:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sysprof (Old)
 and      /work/SRC/openSUSE:Factory/.sysprof.new.25432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sysprof"

Tue Dec 12 19:32:32 2023 rev:32 rq:1132652 version:45.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/sysprof/sysprof.changes  2023-10-25 
18:05:48.208457934 +0200
+++ /work/SRC/openSUSE:Factory/.sysprof.new.25432/sysprof.changes       
2023-12-12 19:33:03.222284379 +0100
@@ -1,0 +2,6 @@
+Mon Dec  4 15:01:54 UTC 2023 - Yifan Jiang <yfji...@suse.com>
+
+- Add explicitly-include-unistd.patch and specify higher version of
+  gcc to build on SLE/Leap.
+
+-------------------------------------------------------------------

New:
----
  explicitly-include-unistd.patch

BETA DEBUG BEGIN:
  New:
- Add explicitly-include-unistd.patch and specify higher version of
  gcc to build on SLE/Leap.
BETA DEBUG END:

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

Other differences:
------------------
++++++ sysprof.spec ++++++
--- /var/tmp/diff_new_pack.MNNskJ/_old  2023-12-12 19:33:03.702302090 +0100
+++ /var/tmp/diff_new_pack.MNNskJ/_new  2023-12-12 19:33:03.702302090 +0100
@@ -30,8 +30,13 @@
 URL:            https://wiki.gnome.org/Apps/Sysprof
 Source0:        
https://download.gnome.org/sources/sysprof/45/sysprof-%{version}.tar.xz
 Patch0:         harden_sysprof3.service.patch
+Patch1:         explicitly-include-unistd.patch
 
 BuildRequires:  c++_compiler
+%if 0%{?sle_version} && 0%{?sle_version} < 160000
+BuildRequires:  gcc11
+BuildRequires:  gcc11-c++
+%endif
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  itstool
@@ -92,9 +97,17 @@
 %lang_package
 
 %prep
-%autosetup -p1 -n sysprof-%{version}
+%setup -q -n sysprof-%{version}
+%patch -P 0 -p1
+%if 0%{?sle_version} && 0%{?sle_version} < 160000
+%patch -P 1 -p1
+%endif
 
 %build
+%if 0%{?sle_version} && 0%{?sle_version} < 160000
+export CC=gcc-11
+export CXX=g++-11
+%endif
 %global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
 %meson -Dgtk=true -Dtests=false
 %meson_build

++++++ explicitly-include-unistd.patch ++++++
Index: sysprof-45.1/src/libsysprof/sysprof-elf-loader.c
===================================================================
--- sysprof-45.1.orig/src/libsysprof/sysprof-elf-loader.c
+++ sysprof-45.1/src/libsysprof/sysprof-elf-loader.c
@@ -21,6 +21,7 @@
 #include "config.h"
 
 #include <fcntl.h>
+#include <unistd.h>
 #include <sys/stat.h>
 
 #include "sysprof-elf-private.h"

Reply via email to