commit:     9ece0a0d64d4075c6a1dd72c3bf5b13a218110e7
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 13:30:47 2024 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 13:31:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ece0a0d

app-office/sc-im: add upstream patch for missing include

Closes: https://bugs.gentoo.org/933356
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 app-office/sc-im/files/sc-im-0.8.3-malloc.patch | 21 +++++++++++++++++++++
 app-office/sc-im/sc-im-0.8.3-r1.ebuild          |  4 ++++
 2 files changed, 25 insertions(+)

diff --git a/app-office/sc-im/files/sc-im-0.8.3-malloc.patch 
b/app-office/sc-im/files/sc-im-0.8.3-malloc.patch
new file mode 100644
index 000000000000..a4aae6458e9d
--- /dev/null
+++ b/app-office/sc-im/files/sc-im-0.8.3-malloc.patch
@@ -0,0 +1,21 @@
+From b6fcd0658d566dac0fa0b7e83235c8721877d7a0 Mon Sep 17 00:00:00 2001
+From: Ryan Jaskulski <[email protected]>
+Date: Fri, 17 May 2024 20:57:46 -0400
+Subject: [PATCH] fixed compiler error related to missing include
+
+---
+ formats/ods.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/formats/ods.c b/formats/ods.c
+index a2e701a5..f7d7372d 100644
+--- a/formats/ods.c
++++ b/formats/ods.c
+@@ -50,6 +50,7 @@
+ #include <errno.h>
+ #include <zip.h>
+ #include <libxml/parser.h>
++#include <stdlib.h>
+ 
+ #include "../tui.h"
+ #include "../cmds/cmds.h"

diff --git a/app-office/sc-im/sc-im-0.8.3-r1.ebuild 
b/app-office/sc-im/sc-im-0.8.3-r1.ebuild
index bf62fb3ad657..044188f182b4 100644
--- a/app-office/sc-im/sc-im-0.8.3-r1.ebuild
+++ b/app-office/sc-im/sc-im-0.8.3-r1.ebuild
@@ -44,6 +44,10 @@ RDEPEND="${DEPEND}"
 BDEPEND="app-alternatives/yacc
        virtual/pkgconfig"
 
+PATCHES=(
+       "${FILESDIR}/${P}-malloc.patch"
+)
+
 pkg_setup() {
        CONFLICTING=$(usex tmux "tmux " "")$(usex wayland "wayland " "")$(usex 
X "X" "")
        if ( use tmux && ( use wayland || use X ) ) ; then

Reply via email to