Accepting request 746057 from GNOME:Next

OBS-URL: https://build.opensuse.org/request/show/746057
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=409
This commit is contained in:
Dominique Leuenberger 2019-11-07 10:53:51 +00:00 committed by Git OBS Bridge
parent 87b97b9a56
commit 0ed2a0e968
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Nov 5 20:12:37 UTC 2019 - Michael Gorse <mgorse@suse.com>
- Re-enable systemtap, and require systemtap-headers and
systemtap-dtrace, rather than systemtap-sdt-devel, to avoid build
cycle (boo#1145438).
- Own /usr/share/systemtap{|tapset} directories, since we no
longer have systemtap-sdt-devel in BuildRequires.
- Disable lto if systemtap is enabled: build fails otherwise.
-------------------------------------------------------------------
Mon Oct 21 17:28:20 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -16,8 +16,7 @@
#
# systemtap is only offered as build-option, but not enabled, as it causes a build cycle
%bcond_with systemtap
%bcond_without systemtap
Name: glib2
Version: 2.62.2
Release: 0
@ -71,7 +70,8 @@ BuildRequires: pkgconfig(zlib)
# gtk-doc requires glib2-devel, but we will only be building this here; break up a cycle
#!BuildIgnore: glib2-devel
%if %{with systemtap}
BuildRequires: systemtap-sdt-devel
BuildRequires: systemtap-dtrace
BuildRequires: systemtap-headers
%endif
%description
@ -262,7 +262,11 @@ cp -a %{SOURCE4} gnome_defaults.conf
grep "%{_bindir}/env @PYTHON@" . -rl | xargs sed -i "s|%{_bindir}/env @PYTHON@|%{_bindir}/python3|g"
%build
%if %{with systemtap}
%global _lto_cflags %{nil}
%else
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%endif
%meson \
--default-library=both \
-Dselinux=enabled \
@ -490,6 +494,8 @@ done
%{_datadir}/gtk-doc/html/gobject
%{_datadir}/gdb/auto-load/%{_libdir}/*-gdb.py
%if %{with systemtap}
%dir %{_datadir}/systemtap
%dir %{_datadir}/systemtap/tapset
%dir %{_datadir}/systemtap/tapset/*
%{_datadir}/systemtap/tapset/*/libgio-*.so.*.stp
%{_datadir}/systemtap/tapset/*/libglib-*.so.*.stp