synfigstudio: update to 1.4.2

This commit is contained in:
newbluemoon 2021-08-06 09:51:27 +02:00 committed by Érico Nogueira Rolim
parent c24a4c1d50
commit b2caf68fb8
3 changed files with 55 additions and 10 deletions

View File

@ -0,0 +1,29 @@
Prevent synfigstudio from filtering out the compilers '-g' option to produce debug
information.
--- synfigstudio-1.4.2.orig/configure
+++ synfigstudio-1.4.2/configure
@@ -18015,8 +18015,8 @@ fi
;;
no|*)
debug_flags="-DNDEBUG"
- CXXFLAGS="`echo $CXXFLAGS | sed 's:-g[a-z-]*\s::g' | sed 's:-g[a-z-]*$::'` $debug_flags"
- CFLAGS="`echo $CFLAGS | sed 's:-g[a-z-]*\s::g' | sed 's:-g[a-z-]*$::'` $debug_flags"
+ CFLAGS="$CFLAGS -DNDEBUG"
+ CXXFLAGS="$CXXFLAGS -DNDEBUG"
;;
esac
--- synfigstudio-1.4.2.orig/m4/subs.m4
+++ synfigstudio-1.4.2/m4/subs.m4
@@ -83,8 +83,8 @@ AC_DEFUN([AC_ARG_DEBUG],
;;
no|*)
debug_flags="-DNDEBUG"
- CXXFLAGS="`echo $CXXFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
- CFLAGS="`echo $CFLAGS | sed 's:-g[[a-z-]]*\s::g' | sed 's:-g[[a-z-]]*$::'` $debug_flags"
+ CXXFLAGS="$CXXFLAGS -DNDEBUG"
+ CFLAGS="$CFLAGS -DNDEBUG"
;;
esac

View File

@ -0,0 +1,19 @@
Fix a crash when running tests. Source:
https://github.com/synfig/synfig/pull/2265
https://github.com/synfig/synfig/commit/61a290b1aaf58366149662ae0ad224127711aea8
--- a/src/synfigapp/actions/layerduplicate.cpp 2021-07-12 17:45:50.000000000 +0200
+++ b/src/synfigapp/actions/layerduplicate.cpp 2021-08-15 11:52:47.878894610 +0200
@@ -417,7 +417,11 @@
auto cloned_layer = layer_pair.second;
- for(auto iter=cloned_layer->dynamic_param_list().cbegin();iter!=cloned_layer->dynamic_param_list().cend();++iter)
+ // disconnect_dynamic_param/connect_dynamic_param can change dynamic_param_list() while iterating
+ // which makes iter invalid, so we create a copy of dynamic_param_list() first
+ auto param_list = cloned_layer->dynamic_param_list();
+
+ for (auto iter=param_list.cbegin();iter!=param_list.cend();++iter)
{
for (const auto& vn_pair : cloned_valuenode_map) {
if (iter->second == vn_pair.first) {

View File

@ -1,24 +1,21 @@
# Template file for 'synfigstudio'
pkgname=synfigstudio
version=1.4.1
version=1.4.2
revision=1
build_style=gnu-configure
configure_args="--disable-update-mimedb"
hostmakedepends="pkg-config intltool gettext"
makedepends="ETL synfig-devel gtkmm-devel libltdl-devel boost-devel"
hostmakedepends="pkg-config intltool gettext synfig"
makedepends="ETL synfig-devel boost-devel gtkmm-devel libltdl-devel
libmagick-devel"
short_desc="Vector based 2D animation studio"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="GPL-2.0-or-later"
homepage="http://www.synfig.org/"
homepage="https://www.synfig.org/"
distfiles="https://github.com/synfig/synfig/releases/download/v${version}/synfigstudio-${version}.tar.gz"
checksum=af9a9b0064064907ae24a693b607dcba633a8a2cd45fa1357f61c035efd6020e
checksum=4e86d4d8def6675fc92855a411795cc4062a1669cda82535d18b48a68b4d5497
python_version=3
CXXFLAGS="-Wno-deprecated-copy -DHAVE_LOCALE_H=1"
if [ -n "$CROSS_BUILD" ]; then
# uses synfig to create some icons
hostmakedepends+=" synfig"
fi
export DATADIRNAME=share
synfigstudio-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"