From b628419bd64f21eafcffee34723d253c1aa0bccd Mon Sep 17 00:00:00 2001 From: Bitmeise Date: Wed, 24 Jan 2024 17:43:27 +0100 Subject: [PATCH] astroid: apply upstream patch to prevent crashes while adding attachments --- srcpkgs/astroid/patches/attachements.patch | 23 ++++++++++++++++++++++ srcpkgs/astroid/template | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/astroid/patches/attachements.patch diff --git a/srcpkgs/astroid/patches/attachements.patch b/srcpkgs/astroid/patches/attachements.patch new file mode 100644 index 0000000000000..e01e274c324c1 --- /dev/null +++ b/srcpkgs/astroid/patches/attachements.patch @@ -0,0 +1,23 @@ +From 7fd64c41435a2b99fb9e0a5770a83ba30cd11450 Mon Sep 17 00:00:00 2001 +From: "Stephan C. Buchert" +Date: Wed, 14 Jun 2023 17:44:05 +0200 +Subject: [PATCH] compose_message: to load as byte array, 'file' must be + wrapped with copy. + +--- + src/compose_message.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/compose_message.cc b/src/compose_message.cc +index 189c20f99..329481f40 100644 +--- a/src/compose_message.cc ++++ b/src/compose_message.cc +@@ -781,7 +781,7 @@ namespace Astroid { + + } else { + /* load into byte array */ +- refptr fle = Glib::wrap (file, false); ++ refptr fle = Glib::wrap (file, true); + refptr istr = fle->read (); + + refptr b; diff --git a/srcpkgs/astroid/template b/srcpkgs/astroid/template index c56fbbb1ba358..2bd79b3a9420f 100644 --- a/srcpkgs/astroid/template +++ b/srcpkgs/astroid/template @@ -1,7 +1,7 @@ # Template file for 'astroid' pkgname=astroid version=0.16 -revision=11 +revision=12 build_style=cmake build_helper=gir hostmakedepends="pkg-config scdoc protobuf gobject-introspection"