1 |
commit: 5d6e71977cacf505f87e1da254798423a6a5945f |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 25 19:50:09 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 25 19:59:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d6e7197 |
7 |
|
8 |
sci-libs/stellarsolver: Fix vasprintf implicit declaration warning |
9 |
|
10 |
Upstream commit acb58bd78388adec25eb6e09ce6434546de008b8 |
11 |
|
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
...larsolver-2.2-fix-implicit-vasprintf-decl.patch | 88 ++++++++++++++++++++++ |
16 |
sci-libs/stellarsolver/stellarsolver-2.2.ebuild | 3 + |
17 |
2 files changed, 91 insertions(+) |
18 |
|
19 |
diff --git a/sci-libs/stellarsolver/files/stellarsolver-2.2-fix-implicit-vasprintf-decl.patch b/sci-libs/stellarsolver/files/stellarsolver-2.2-fix-implicit-vasprintf-decl.patch |
20 |
new file mode 100644 |
21 |
index 000000000000..b2625fe4429e |
22 |
--- /dev/null |
23 |
+++ b/sci-libs/stellarsolver/files/stellarsolver-2.2-fix-implicit-vasprintf-decl.patch |
24 |
@@ -0,0 +1,88 @@ |
25 |
+From acb58bd78388adec25eb6e09ce6434546de008b8 Mon Sep 17 00:00:00 2001 |
26 |
+From: Robert Lancaster <rlancaste@×××××.com> |
27 |
+Date: Wed, 16 Mar 2022 18:15:21 -0400 |
28 |
+Subject: [PATCH] Trying to eliminate vasprintf implicit declaration warning on |
29 |
+ Linux |
30 |
+ |
31 |
+--- |
32 |
+ stellarsolver/astrometry/util/bl.c | 4 +++- |
33 |
+ stellarsolver/astrometry/util/errors.c | 4 +++- |
34 |
+ stellarsolver/astrometry/util/fitsioutils.c | 3 +++ |
35 |
+ stellarsolver/astrometry/util/ioutils.c | 4 +++- |
36 |
+ stellarsolver/astrometry/util/log.c | 4 +++- |
37 |
+ 5 files changed, 15 insertions(+), 4 deletions(-) |
38 |
+ |
39 |
+diff --git a/stellarsolver/astrometry/util/bl.c b/stellarsolver/astrometry/util/bl.c |
40 |
+index 1a0fee9..e84d74a 100644 |
41 |
+--- a/stellarsolver/astrometry/util/bl.c |
42 |
++++ b/stellarsolver/astrometry/util/bl.c |
43 |
+@@ -2,7 +2,9 @@ |
44 |
+ # This file is part of the Astrometry.net suite. |
45 |
+ # Licensed under a 3-clause BSD style license - see LICENSE |
46 |
+ */ |
47 |
+- |
48 |
++#ifdef __GNUC__ //# Modified by Robert Lancaster for the StellarSolver Internal Library |
49 |
++#define __STDC_WANT_LIB_EXT2__ 1 |
50 |
++#endif |
51 |
+ #include <stdio.h> |
52 |
+ #include <string.h> |
53 |
+ #include <stdlib.h> |
54 |
+diff --git a/stellarsolver/astrometry/util/errors.c b/stellarsolver/astrometry/util/errors.c |
55 |
+index 94f5f9c..b7c4e9f 100644 |
56 |
+--- a/stellarsolver/astrometry/util/errors.c |
57 |
++++ b/stellarsolver/astrometry/util/errors.c |
58 |
+@@ -2,7 +2,9 @@ |
59 |
+ # This file is part of the Astrometry.net suite. |
60 |
+ # Licensed under a 3-clause BSD style license - see LICENSE |
61 |
+ */ |
62 |
+- |
63 |
++#ifdef __GNUC__ //# Modified by Robert Lancaster for the StellarSolver Internal Library |
64 |
++#define __STDC_WANT_LIB_EXT2__ 1 |
65 |
++#endif |
66 |
+ #include <stdlib.h> |
67 |
+ #include <string.h> |
68 |
+ #include <errno.h> |
69 |
+diff --git a/stellarsolver/astrometry/util/fitsioutils.c b/stellarsolver/astrometry/util/fitsioutils.c |
70 |
+index 7451c36..f2b20bc 100644 |
71 |
+--- a/stellarsolver/astrometry/util/fitsioutils.c |
72 |
++++ b/stellarsolver/astrometry/util/fitsioutils.c |
73 |
+@@ -2,6 +2,9 @@ |
74 |
+ # This file is part of the Astrometry.net suite. |
75 |
+ # Licensed under a 3-clause BSD style license - see LICENSE |
76 |
+ */ |
77 |
++#ifdef __GNUC__ //# Modified by Robert Lancaster for the StellarSolver Internal Library |
78 |
++#define __STDC_WANT_LIB_EXT2__ 1 |
79 |
++#endif |
80 |
+ #include <stdio.h> |
81 |
+ #include <string.h> |
82 |
+ #include <stdint.h> |
83 |
+diff --git a/stellarsolver/astrometry/util/ioutils.c b/stellarsolver/astrometry/util/ioutils.c |
84 |
+index ee17011..c490fb8 100644 |
85 |
+--- a/stellarsolver/astrometry/util/ioutils.c |
86 |
++++ b/stellarsolver/astrometry/util/ioutils.c |
87 |
+@@ -2,7 +2,9 @@ |
88 |
+ # This file is part of the Astrometry.net suite. |
89 |
+ # Licensed under a 3-clause BSD style license - see LICENSE |
90 |
+ */ |
91 |
+- |
92 |
++#ifdef __GNUC__ //# Modified by Robert Lancaster for the StellarSolver Internal Library |
93 |
++#define __STDC_WANT_LIB_EXT2__ 1 |
94 |
++#endif |
95 |
+ #include <stdio.h> |
96 |
+ #include <errno.h> |
97 |
+ #include <string.h> |
98 |
+diff --git a/stellarsolver/astrometry/util/log.c b/stellarsolver/astrometry/util/log.c |
99 |
+index 256d5a1..1a2b8db 100644 |
100 |
+--- a/stellarsolver/astrometry/util/log.c |
101 |
++++ b/stellarsolver/astrometry/util/log.c |
102 |
+@@ -2,7 +2,9 @@ |
103 |
+ # This file is part of the Astrometry.net suite. |
104 |
+ # Licensed under a 3-clause BSD style license - see LICENSE |
105 |
+ */ |
106 |
+- |
107 |
++#ifdef __GNUC__ //# Modified by Robert Lancaster for the StellarSolver Internal Library |
108 |
++#define __STDC_WANT_LIB_EXT2__ 1 |
109 |
++#endif |
110 |
+ #include <stdio.h> |
111 |
+ #include <stdarg.h> |
112 |
+ #include <stdlib.h> |
113 |
|
114 |
diff --git a/sci-libs/stellarsolver/stellarsolver-2.2.ebuild b/sci-libs/stellarsolver/stellarsolver-2.2.ebuild |
115 |
index 9a2aed549e42..3fd2a5f94878 100644 |
116 |
--- a/sci-libs/stellarsolver/stellarsolver-2.2.ebuild |
117 |
+++ b/sci-libs/stellarsolver/stellarsolver-2.2.ebuild |
118 |
@@ -25,3 +25,6 @@ RDEPEND=" |
119 |
sci-astronomy/wcslib:= |
120 |
" |
121 |
DEPEND="${RDEPEND}" |
122 |
+ |
123 |
+# https://github.com/rlancaste/stellarsolver/issues/108 |
124 |
+PATCHES=( "${FILESDIR}/${P}-fix-implicit-vasprintf-decl.patch" ) |