* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/elem/files/, sci-chemistry/elem/
@ 2020-11-27 17:37 David Seifert
0 siblings, 0 replies; only message in thread
From: David Seifert @ 2020-11-27 17:37 UTC (permalink / raw
To: gentoo-commits
commit: e6a1186c2d69bc5300f1c41972cf8dfef61e8c2c
Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Fri Nov 27 17:36:49 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 17:36:49 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6a1186c
sci-chemistry/elem: fix build with gcc-10
Closes: https://github.com/gentoo/gentoo/pull/18431
Closes: https://bugs.gentoo.org/706938
Package-Manager: Portage-3.0.9, Repoman-3.0.1
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>
sci-chemistry/elem/elem-1.0.3-r2.ebuild | 2 +-
.../elem/files/elem-1.0.3-fno-common.patch | 24 ++++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/sci-chemistry/elem/elem-1.0.3-r2.ebuild b/sci-chemistry/elem/elem-1.0.3-r2.ebuild
index 67290b4c6d8..d74c51bd8f0 100644
--- a/sci-chemistry/elem/elem-1.0.3-r2.ebuild
+++ b/sci-chemistry/elem/elem-1.0.3-r2.ebuild
@@ -12,7 +12,6 @@ SRC_URI="mirror://sourceforge/elem/${PN}-src-${PV}-Linux.tgz"
LICENSE="GPL-2"
KEYWORDS="amd64 sparc x86"
SLOT="0"
-IUSE=""
DEPEND="x11-libs/xforms"
RDEPEND="${DEPEND}"
@@ -20,6 +19,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-fix-build-system.patch
"${FILESDIR}"/${P}-missing-stdlib.patch
+ "${FILESDIR}"/${P}-fno-common.patch
)
src_configure() {
diff --git a/sci-chemistry/elem/files/elem-1.0.3-fno-common.patch b/sci-chemistry/elem/files/elem-1.0.3-fno-common.patch
new file mode 100644
index 00000000000..402ae079058
--- /dev/null
+++ b/sci-chemistry/elem/files/elem-1.0.3-fno-common.patch
@@ -0,0 +1,24 @@
+--- a/elem.c
++++ b/elem.c
+@@ -11,6 +11,9 @@
+ #include "deutsch.h"
+ #endif
+
++double amsumme;
++FL_OBJECT *massensumme;
++
+
+
+ FD_Periodensystem *create_form_Periodensystem(void)
+--- a/elem.h
++++ b/elem.h
+@@ -154,7 +154,7 @@ typedef struct {
+ void *vdata;
+ long ldata;
+ } FD_Periodensystem;
+-double amsumme;
++extern double amsumme;
+ extern FD_Periodensystem * create_form_Periodensystem(void);
+- FL_OBJECT *massensumme;
++extern FL_OBJECT *massensumme;
+ #endif /* FD_Periodensystem_h_ */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-27 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-27 17:37 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/elem/files/, sci-chemistry/elem/ David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox