Accepting request 593398 from GNOME:Next

OBS-URL: https://build.opensuse.org/request/show/593398
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pangomm?expand=0&rev=63
This commit is contained in:
2018-04-04 14:03:05 +00:00
committed by Git OBS Bridge
parent 5c3e5fa4da
commit a691a33915
3 changed files with 69 additions and 2 deletions

52
pangomm-glibmm-fix.patch Normal file
View File

@@ -0,0 +1,52 @@
From 808b648aaf6618514bdf08cf538c3984d8593a3d Mon Sep 17 00:00:00 2001
From: Kjell Ahlstedt <kjellahlstedt@gmail.com>
Date: Mon, 26 Mar 2018 13:02:44 +0200
Subject: Use glibmm-2.58 instead of glibmm-2.56
We have changed the ABI name in glibmm.
---
configure.ac | 6 +++---
tools/Makefile.am | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7c0fd58..d4549d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,17 +49,17 @@ MM_AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory])
AC_DISABLE_STATIC
LT_INIT([win32-dll])
-AC_SUBST([PANGOMM_MODULES], ['glibmm-2.56 >= 2.55.1 cairomm-1.16 >= 1.2.2 pangocairo >= 1.38.0'])
+AC_SUBST([PANGOMM_MODULES], ['glibmm-2.58 >= 2.55.1 cairomm-1.16 >= 1.2.2 pangocairo >= 1.38.0'])
PKG_CHECK_MODULES([PANGOMM], [$PANGOMM_MODULES])
MM_PKG_CONFIG_SUBST([GTHREAD_CFLAGS], [--cflags-only-other gthread-2.0])
-MM_PKG_CONFIG_SUBST([GMMPROC_DIR], [--variable=gmmprocdir glibmm-2.56])
+MM_PKG_CONFIG_SUBST([GMMPROC_DIR], [--variable=gmmprocdir glibmm-2.58])
MM_ARG_DISABLE_DEPRECATED_API
MM_ARG_ENABLE_DOCUMENTATION
MM_ARG_WITH_TAGFILE_DOC([libstdc++.tag], [mm-common-libstdc++])
MM_ARG_WITH_TAGFILE_DOC([libsigc++-3.0.tag], [sigc++-3.0])
-MM_ARG_WITH_TAGFILE_DOC([glibmm-2.56.tag], [glibmm-2.56])
+MM_ARG_WITH_TAGFILE_DOC([glibmm-2.58.tag], [glibmm-2.58])
MM_ARG_WITH_TAGFILE_DOC([cairomm-1.16.tag], [cairomm-1.16])
AC_LANG([C++])
diff --git a/tools/Makefile.am b/tools/Makefile.am
index af10a4d..0463d99 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -30,7 +30,7 @@ dist_noinst_DATA = README
noinst_PROGRAMS = extra_defs_gen/generate_extra_defs
extra_defs_gen_generate_extra_defs_SOURCES = extra_defs_gen/generate_defs_pango.cc
-extra_defs_gen_generate_extra_defs_LDADD = $(PANGOMM_LIBS) -lglibmm_generate_extra_defs-2.56
+extra_defs_gen_generate_extra_defs_LDADD = $(PANGOMM_LIBS) -lglibmm_generate_extra_defs-2.58
extra_defs_gen_generate_extra_defs_LDFLAGS = -no-undefined -avoid-version
AM_CPPFLAGS = -I$(top_builddir) $(GTHREAD_CFLAGS) $(PANGOMM_CFLAGS)
--
cgit v0.12

View File

@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue Apr 3 19:51:16 UTC 2018 - bjorn.lie@gmail.com
- Add pangomm-glibmm-fix.patch: Fix build with new glibmm,
following replace pkgconfig(glibmm-2.56) with
pkgconfig(glibmm-2.58) BuildRequires, and add libtool and
mm-common BuildRequires and pass autogen.sh as the patch touches
buildsystem.
-------------------------------------------------------------------
Wed Feb 28 16:38:19 UTC 2018 - dimstar@opensuse.org

View File

@@ -26,13 +26,17 @@ Summary: C++ interface for pango
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-3.0-only
Group: Development/Libraries/C and C++
URL: https://www.gtkmm.org
Source: http://download.gnome.org/sources/%{name}/2.41/%{name}-%{version}.tar.xz
Source0: http://download.gnome.org/sources/%{name}/2.41/%{name}-%{version}.tar.xz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM pangomm-glibmm-fix.patch bjorn.lie@gmail.com -- Fix build with new glibmm
Patch0: pangomm-glibmm-fix.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: mm-common
BuildRequires: pkgconfig
BuildRequires: pkgconfig(cairomm-1.16) >= 1.2.2
BuildRequires: pkgconfig(glibmm-2.56) >= 2.55.1
BuildRequires: pkgconfig(glibmm-2.58) >= 2.55.1
BuildRequires: pkgconfig(pangocairo) >= 1.38.0
Recommends: %{name}-doc = %{version}
@@ -66,8 +70,10 @@ pangomm provides a C++ interface to the pango library.
%prep
%setup -q
%patch0 -p1
%build
NOCONFIGURE=1 ./autogen.sh
%configure --disable-static
make %{?_smp_mflags}