commit:     ed34e81d8408b12cbb9af76ffec61996706dce73
Author:     Adam Feldman <NP-Hardass <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  6 20:25:20 2020 +0000
Commit:     Adam Feldman <np-hardass <AT> gentoo <DOT> org>
CommitDate: Mon Apr  6 22:14:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed34e81d

app-arch/engrampa: Fix #707298

Closes: https://bugs.gentoo.org/707298
Package-Manager: Portage-2.3.96, Repoman-2.3.21
Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org>

 ...mpa-1.22.3.ebuild => engrampa-1.22.3-r1.ebuild} |  5 ++++-
 .../files/engrampa-1.22.3-gcc-10-fno-common.patch  | 22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/app-arch/engrampa/engrampa-1.22.3.ebuild 
b/app-arch/engrampa/engrampa-1.22.3-r1.ebuild
similarity index 96%
rename from app-arch/engrampa/engrampa-1.22.3.ebuild
rename to app-arch/engrampa/engrampa-1.22.3-r1.ebuild
index d5caa2ad5aa..92299844e0f 100644
--- a/app-arch/engrampa/engrampa-1.22.3.ebuild
+++ b/app-arch/engrampa/engrampa-1.22.3-r1.ebuild
@@ -45,6 +45,10 @@ src_configure() {
                $(use_enable packagekit)
 }
 
+PATCHES=(
+       "${FILESDIR}/${P}-gcc-10-fno-common.patch"
+)
+
 src_install() {
        mate_src_install
 }
@@ -66,4 +70,3 @@ pkg_postinst() {
        optfeature "Support for unstuff"  app-arch/stuffit
        optfeature "Support for zoo"  app-arch/zoo
 }
-

diff --git a/app-arch/engrampa/files/engrampa-1.22.3-gcc-10-fno-common.patch 
b/app-arch/engrampa/files/engrampa-1.22.3-gcc-10-fno-common.patch
new file mode 100644
index 00000000000..61e23e087cf
--- /dev/null
+++ b/app-arch/engrampa/files/engrampa-1.22.3-gcc-10-fno-common.patch
@@ -0,0 +1,22 @@
+From 623bd665371e3afd9dc6fa29f9e1cfe735681358 Mon Sep 17 00:00:00 2001
+From: rbuj <robert....@gmail.com>
+Date: Wed, 29 Jan 2020 15:52:44 +0100
+Subject: [PATCH] Fix build using gcc 10 -fno-common flag
+
+---
+ src/main.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src/main.c b/src/main.c
+index 56e75ea0..a9e297dc 100644
+--- a/src/main.c
++++ b/src/main.c
+@@ -33,8 +33,6 @@
+ 
+ #include "fr-init.h"
+ 
+-gint          ForceDirectoryCreation;
+-
+ static char **remaining_args;
+ static char  *add_to = NULL;
+ static int    add;

Reply via email to