Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/skymaker/files/, sci-astronomy/skymaker/
Date: Sat, 03 Oct 2020 23:10:13
Message-Id: 1601766593.15811784574e3886dd48185511c0b8444bae5c52.soap@gentoo
1 commit: 15811784574e3886dd48185511c0b8444bae5c52
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 23:09:53 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 23:09:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15811784
7
8 sci-astronomy/skymaker: Fix -fno-common
9
10 Closes: https://bugs.gentoo.org/707164
11 Package-Manager: Portage-3.0.8, Repoman-3.0.1
12 Signed-off-by: David Seifert <soap <AT> gentoo.org>
13
14 .../files/skymaker-3.10.5-fno-common.patch | 66 ++++++++++++++++++++++
15 sci-astronomy/skymaker/skymaker-3.10.5.ebuild | 10 ++--
16 2 files changed, 72 insertions(+), 4 deletions(-)
17
18 diff --git a/sci-astronomy/skymaker/files/skymaker-3.10.5-fno-common.patch b/sci-astronomy/skymaker/files/skymaker-3.10.5-fno-common.patch
19 new file mode 100644
20 index 00000000000..f80ed5422c6
21 --- /dev/null
22 +++ b/sci-astronomy/skymaker/files/skymaker-3.10.5-fno-common.patch
23 @@ -0,0 +1,66 @@
24 +--- a/src/fits/fitscat.c
25 ++++ b/src/fits/fitscat.c
26 +@@ -42,6 +42,9 @@
27 + #include "fitscat_defs.h"
28 + #include "fitscat.h"
29 +
30 ++int bswapflag;
31 ++char gstr[MAXCHAR];
32 ++
33 + /****** about_cat **************************************************************
34 + PROTO int about_cat(catstruct *cat, FILE *stream)
35 + PURPOSE Print some info about a catalog.
36 +--- a/src/fits/fitscat_defs.h
37 ++++ b/src/fits/fitscat_defs.h
38 +@@ -86,7 +86,7 @@
39 + typedef int LONG; /* for DEC-Alpha... */
40 +
41 + /*----------------------------- Internal constants --------------------------*/
42 +-char gstr[MAXCHAR];
43 ++extern char gstr[MAXCHAR];
44 +
45 + /*----------------------------- External constants --------------------------*/
46 +
47 +--- a/src/fits/fitscat.h
48 ++++ b/src/fits/fitscat.h
49 +@@ -333,6 +333,6 @@
50 + warning(char *msg1, char *msg2);
51 +
52 +
53 +-int bswapflag;
54 ++extern int bswapflag;
55 +
56 + #endif
57 +--- a/src/globals.h
58 ++++ b/src/globals.h
59 +@@ -29,7 +29,7 @@
60 + #include "types.h"
61 +
62 + /*----------------------- miscellaneous variables ---------------------------*/
63 +-char gstr[MAXCHAR];
64 ++extern char gstr[MAXCHAR];
65 +
66 + /*------------------------------- functions ---------------------------------*/
67 + extern void makeit(void);
68 +--- a/src/prefs.c
69 ++++ b/src/prefs.c
70 +@@ -59,6 +59,8 @@
71 + #include "prefs.h"
72 + #include "preflist.h"
73 +
74 ++prefstruct prefs;
75 ++
76 + /********************************* dumpprefs ********************************/
77 + /*
78 + Print the default preference parameters.
79 +--- a/src/prefs.h
80 ++++ b/src/prefs.h
81 +@@ -149,7 +149,7 @@
82 + int nobj; /* Number of sources added */
83 + } prefstruct;
84 +
85 +-prefstruct prefs;
86 ++extern prefstruct prefs;
87 +
88 + /*-------------------------------- protos -----------------------------------*/
89 + extern int cistrcmp(char *cs, char *ct, int mode);
90
91 diff --git a/sci-astronomy/skymaker/skymaker-3.10.5.ebuild b/sci-astronomy/skymaker/skymaker-3.10.5.ebuild
92 index da9788d145b..dd5c6c6a188 100644
93 --- a/sci-astronomy/skymaker/skymaker-3.10.5.ebuild
94 +++ b/sci-astronomy/skymaker/skymaker-3.10.5.ebuild
95 @@ -1,20 +1,22 @@
96 -# Copyright 1999-2016 Gentoo Foundation
97 +# Copyright 1999-2020 Gentoo Authors
98 # Distributed under the terms of the GNU General Public License v2
99
100 -EAPI=6
101 +EAPI=7
102
103 DESCRIPTION="Program that simulates astronomical images"
104 HOMEPAGE="http://www.astromatic.net/software/skymaker"
105 SRC_URI="http://www.astromatic.net/download/${PN}/${P}.tar.gz"
106 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
107
108 LICENSE="GPL-3"
109 SLOT="0"
110 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
111 IUSE="threads"
112
113 -RDEPEND="sci-libs/fftw:3.0"
114 +RDEPEND="sci-libs/fftw:3.0="
115 DEPEND="${RDEPEND}"
116
117 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
118 +
119 src_configure() {
120 econf $(use_enable threads)
121 }