glibmm: Revert a commit partially to fix inkscape crashes
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
From 4bd41b51ff2a8dec070cb061df3c94083ceea891 Mon Sep 17 00:00:00 2001
|
||||
From: Kjell Ahlstedt <kjellahlstedt@gmail.com>
|
||||
Date: Tue, 3 May 2022 16:01:19 +0200
|
||||
Subject: [PATCH] Revert part of commit
|
||||
94ab1e5359f3bd9eb8204aadea88e08f52a291d8
|
||||
|
||||
See glibmm#98
|
||||
---
|
||||
glib/glibmm/ustring.h | 15 +++++++--------
|
||||
1 file changed, 7 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/glib/glibmm/ustring.h b/glib/glibmm/ustring.h
|
||||
index 8746ca6e..22d8abca 100644
|
||||
--- a/glib/glibmm/ustring.h
|
||||
+++ b/glib/glibmm/ustring.h
|
||||
@@ -199,14 +199,7 @@ public:
|
||||
using pointer = void;
|
||||
|
||||
inline ustring_Iterator();
|
||||
- // A std::string::iterator can be copied to a std::string::const_iterator.
|
||||
- template <typename T2, typename = typename std::enable_if<
|
||||
- std::is_same<std::string::const_iterator, T>::value &&
|
||||
- std::is_same<std::string::iterator, T2>::value, T2>::type>
|
||||
- inline ustring_Iterator(const ustring_Iterator<T2>& other)
|
||||
- : pos_(other.base())
|
||||
- { }
|
||||
- ustring_Iterator(const ustring_Iterator& other) = default;
|
||||
+ inline ustring_Iterator(const ustring_Iterator<std::string::iterator>& other);
|
||||
ustring_Iterator& operator=(const ustring_Iterator& other) = default;
|
||||
|
||||
inline value_type operator*() const;
|
||||
@@ -1169,6 +1162,12 @@ inline ustring_Iterator<T>::ustring_Iterator() : pos_()
|
||||
{
|
||||
}
|
||||
|
||||
+template <class T>
|
||||
+inline ustring_Iterator<T>::ustring_Iterator(const ustring_Iterator<std::string::iterator>& other)
|
||||
+: pos_(other.base())
|
||||
+{
|
||||
+}
|
||||
+
|
||||
template <class T>
|
||||
inline typename ustring_Iterator<T>::value_type ustring_Iterator<T>::operator*() const
|
||||
{
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -4,7 +4,7 @@ _realname=glibmm
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=2.66.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Glib-- (glibmm) is a C++ interface for glib (V2.66) (mingw-w64)"
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
@@ -16,14 +16,20 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-meson"
|
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config"
|
||||
"${MINGW_PACKAGE_PREFIX}-cc")
|
||||
options=('strip' '!debug' 'staticlibs')
|
||||
source=("https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz")
|
||||
sha256sums=('afb96202491485d3f44102d98219a172da2d3f9eb78fce3cfb92559ba496e499')
|
||||
source=("https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz"
|
||||
0001-Revert-part-of-commit-94ab1e5359f3bd9eb8204aadea88e0.patch)
|
||||
sha256sums=('afb96202491485d3f44102d98219a172da2d3f9eb78fce3cfb92559ba496e499'
|
||||
'654a7e25ff5d8d220c09ea5faa5725e26703c111870337106643799309879e91')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
|
||||
# glibmm_binding test can not be built due to linking error
|
||||
sed '/glibmm_binding/d' -i tests/meson.build
|
||||
|
||||
# Unbreak Inkscape
|
||||
# https://gitlab.gnome.org/GNOME/glibmm/-/issues/98
|
||||
patch -p1 -i "${srcdir}/0001-Revert-part-of-commit-94ab1e5359f3bd9eb8204aadea88e0.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user