Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] astroid: apply upstream patch to prevent crashes while adding attachments
@ 2024-01-24 16:49 bitmeise
  2024-01-24 19:26 ` oreo639
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bitmeise @ 2024-01-24 16:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

There is a new pull request by bitmeise against master on the void-packages repository

https://github.com/bitmeise/void-packages astroid016_attachments
https://github.com/void-linux/void-packages/pull/48355

astroid: apply upstream patch to prevent crashes while adding attachments
This update is applying a non-release upstream patch to prevent crashes while adding attachments.
See astroidmail/astroid/issues/726 for more information.

#### Testing the changes
- I tested the changes in this PR: YES

#### Local build testing
- I built this PR locally for my native architecture, (x68_64-LIBC)

A patch file from https://github.com/void-linux/void-packages/pull/48355.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-astroid016_attachments-48355.patch --]
[-- Type: text/x-diff, Size: 1543 bytes --]

From 387234e17b21538cc7d7f1a72c27e45db8640337 Mon Sep 17 00:00:00 2001
From: Bitmeise <ameise@bitparlament.de>
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 | 13 +++++++++++++
 srcpkgs/astroid/template                   |  2 +-
 2 files changed, 14 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..2874e934b4013
--- /dev/null
+++ b/srcpkgs/astroid/patches/attachements.patch
@@ -0,0 +1,13 @@
+diff --git a/src/compose_message.cc b/src/compose_message.cc
+index 189c20f..329481f 100644
+--- a/src/compose_message.cc
++++ b/src/compose_message.cc
+@@ -781,7 +781,7 @@ namespace Astroid {
+ 
+     } else {
+       /* load into byte array */
+-      refptr<Gio::File> fle = Glib::wrap (file, false);
++      refptr<Gio::File> fle = Glib::wrap (file, true);
+       refptr<Gio::FileInputStream> istr = fle->read ();
+ 
+       refptr<Glib::Bytes> 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"

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-24 20:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-24 16:49 [PR PATCH] astroid: apply upstream patch to prevent crashes while adding attachments bitmeise
2024-01-24 19:26 ` oreo639
2024-01-24 19:26 ` oreo639
2024-01-24 20:03 ` [PR PATCH] [Updated] " bitmeise
2024-01-24 20:10 ` bitmeise
2024-01-24 20:11 ` bitmeise
2024-01-24 20:22 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).