Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-astronomy/esorex/files: esorex-3.10-fix-autotools.patch esorex-3.10-remove-private-ltdl.patch esorex-3.10-fix_format_strings.patch esorex-3.10-generate-manpage.patch esorex-3.10-set-default-plugin-path.patch esorex-3.10-remove-empty-configdir.patch
Date: Thu, 25 Jul 2013 17:26:53
Message-Id: 20130725172647.035232171C@flycatcher.gentoo.org
1 bicatali 13/07/25 17:26:46
2
3 Added: esorex-3.10-fix-autotools.patch
4 esorex-3.10-remove-private-ltdl.patch
5 esorex-3.10-fix_format_strings.patch
6 esorex-3.10-generate-manpage.patch
7 esorex-3.10-set-default-plugin-path.patch
8 esorex-3.10-remove-empty-configdir.patch
9 Log:
10 Add patches from Debian to use system libtool, respect proper directory, and a man page
11
12 (Portage version: 2.2.01.22124-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
13
14 Revision Changes Path
15 1.1 sci-astronomy/esorex/files/esorex-3.10-fix-autotools.patch
16
17 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-fix-autotools.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-fix-autotools.patch?rev=1.1&content-type=text/plain
19
20 Index: esorex-3.10-fix-autotools.patch
21 ===================================================================
22 Author: Ole Streicher <debian@×××××××××.cx>
23 Subject: Fix autotools files to allow the current version.
24 --- a/configure.ac
25 +++ b/configure.ac
26 @@ -5,6 +5,7 @@
27
28 AC_CONFIG_SRCDIR([Makefile.am])
29 AC_CONFIG_AUX_DIR([admin])
30 +AC_CONFIG_MACRO_DIR([m4])
31 AC_CONFIG_HEADERS([config.h])
32
33 AC_CANONICAL_HOST
34
35
36
37 1.1 sci-astronomy/esorex/files/esorex-3.10-remove-private-ltdl.patch
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-remove-private-ltdl.patch?rev=1.1&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-remove-private-ltdl.patch?rev=1.1&content-type=text/plain
41
42 Index: esorex-3.10-remove-private-ltdl.patch
43 ===================================================================
44 Author: Ole Streicher <debian@×××××××××.cx>
45 Subject: Remove private library libltdl and use the installed one.
46 --- a/Makefile.am
47 +++ b/Makefile.am
48 @@ -37,10 +37,7 @@
49 if MAINTAINER_MODE
50
51 MAINTAINERCLEANFILES = $(top_srcdir)/Makefile.in $(top_srcdir)/aclocal.m4 \
52 - $(top_srcdir)/config.h.in $(top_srcdir)/configure config.status config.log \
53 - $(top_srcdir)/libltdl/Makefile.in $(top_srcdir)/libltdl/aclocal.m4 \
54 - $(top_srcdir)/libltdl/config-h.in $(top_srcdir)/libltdl/configure \
55 - libltdl/config.status libltdl/config.log
56 + $(top_srcdir)/config.h.in $(top_srcdir)/configure config.status config.log
57
58 clean-local: clean-doxygen
59
60 --- a/configure.ac
61 +++ b/configure.ac
62 @@ -30,7 +30,9 @@
63
64 ESO_CHECK_DOCTOOLS
65
66 -AC_LIBLTDL_CONVENIENCE
67 +LT_INIT
68 +LT_CONFIG_LTDL_DIR([libltdl])
69 +AC_LIB_LTDL
70 AC_SUBST(INCLTDL)
71 AC_SUBST(LIBLTDL)
72
73 @@ -76,9 +78,6 @@
74 # Determine the shared library suffix on this platform
75 AC_LTDL_SHLIBEXT
76
77 -
78 -AC_CONFIG_SUBDIRS(libltdl)
79 -
80 AC_CONFIG_FILES(Makefile
81 Makefile.purify
82 doxygen/Doxyfile
83
84
85
86 1.1 sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch
87
88 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch?rev=1.1&view=markup
89 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-fix_format_strings.patch?rev=1.1&content-type=text/plain
90
91 Index: esorex-3.10-fix_format_strings.patch
92 ===================================================================
93 Author: Ole Streicher <debian@×××××××××.cx>
94 Description: Fix -Werror=format-security errors
95 --- a/src/er_paramutils.c
96 +++ b/src/er_paramutils.c
97 @@ -731,7 +731,7 @@
98 (void) strcat (tmp, " to ");
99 (void) strcat (tmp, er_strutils_dblstr (cpl_parameter_get_range_max_double (p)));
100 (void) strcat (tmp, ".\n");
101 - cpl_msg_error (er_func, tmp);
102 + cpl_msg_error (er_func, "%s", tmp);
103
104 cpl_free(tmp);
105 return -1;
106 --- a/src/er_plugin.c
107 +++ b/src/er_plugin.c
108 @@ -367,7 +367,7 @@
109 if (wer != 0)
110 {
111 (void) snprintf(estr,(size_t)238,"Expansion of %s failed...",xpath);
112 - cpl_msg_error (er_func, estr);
113 + cpl_msg_error (er_func, "%s", estr);
114 goto dealloc;
115 }
116 }
117
118
119
120 1.1 sci-astronomy/esorex/files/esorex-3.10-generate-manpage.patch
121
122 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-generate-manpage.patch?rev=1.1&view=markup
123 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-generate-manpage.patch?rev=1.1&content-type=text/plain
124
125 Index: esorex-3.10-generate-manpage.patch
126 ===================================================================
127 Author: Ole Streicher <debian@×××××××××.cx>
128 Subject: Generate a manpage for esorex.
129 --- a/src/Makefile.am
130 +++ b/src/Makefile.am
131 @@ -62,3 +62,7 @@
132 include $(top_builddir)/Makefile.purify
133 endif
134
135 +esorex.man: esorex
136 + sh esorex_create_man.sh
137 +
138 +man1_MANS = esorex.man
139 --- /dev/null
140 +++ b/src/esorex_create_man.sh
141 @@ -0,0 +1,108 @@
142 +#!/bin/sh
143 +
144 +help2man -N -i $0 ./esorex | sed s/^:\ // | fgrep -v "***" > esorex.man
145 +<< instrument.
146 +
147 +[NAME]
148 +esorex \- ESO Recipe Execution Tool
149 +
150 +[DESCRIPTION]
151 +EsoRex is the ESO Recipe Execution Tool. It can list, configure and execute
152 +CPL-based recipes from the command line.
153 +
154 +One of the features provided by the CPL is the ability to create
155 +data-reduction algorithms that run as plugins (dynamic libraries). These are
156 +called recipes and are one of the main aspects of the CPL data-reduction
157 +development environment.
158 +
159 +As these recipes are dynamic libraries, it is not possible to run them
160 +directly from the command line. However, ESO provides several tools to do
161 +this, thus saving recipe developers the need to write such an application
162 +themselves. One of these is GASGANO (a GUI-based tool) and the other is
163 + EsoRex (which runs from the command line) and is described here.
164 +
165 +[ENVIRONMENT]
166 +All options can be set as environment parameters as well. See the previous
167 +paragraph for details.
168 +
169 +[HINTS]
170 +.TP
171 +.SH File permissions
172 +When a recipe is used with the \fB\-\-suppress\-prefix\fR option, and the
173 +\fB\-\-output\-dir\fR is set to the current working directory, then the first
174 +execution of a recipe will work correctly, but subsequent executions may
175 +fail. This is due to output products being given \`read-only\' permission
176 +(to avoid the potential inadvertant loss of products). The recipe itself
177 +is unable to modify the permissions, and thus it fails when attempting to
178 +create the file. The solution (other than using a different output directory
179 +or prefixes) is to change the permission of these output files or delete
180 +them prior to any subsequent execution of that recipe.
181 +
182 +This problem is less likely to occur in EsoRex v2+, due to the replacement of
183 +the \fB\-\-output\-overwrite\fR option with the \fB\-\-output\-readonly\fR
184 +(which is disabled by default). However, a determined user can still reach
185 +this situation, in which case the non-readable products must have their
186 +permissions changed, as described above.
187 +
188 +.TP
189 +.SH Configuration files
190 +When creating configuration files, if the the recipe is provided on the
191 +command line, then EsoRex will generate the configuration file for this
192 +recipe. If no recipe name is given, then EsoRex will generate a configuration
193 +file for EsoRex itself. All configuration files are written in the
194 +$HOME/.esorex/ directory.
195 +
196 +.TP
197 +.SH Memory checking
198 +It is possible to get EsoRex to check for memory leaks in the recipe
199 +that it is running, by enabling the \fB\-\-mem\-check\fR option. Then, at the
200 +conclusion of the recipe execution, and after memory deallocation, a list of
201 +all remaining allocated memory will be printed to screen. If there are no
202 +memory leaks, then no addition output is displayed.
203 +
204 +[FILES]
205 +.TP
206 +.SH /etc/esorex.rc $HOME/.esorex/esorex.rc
207 +Default configuration files
208 +
209 +The configuration file contains the EsoRex options, less the \`\-\-\'
210 +switch, but prefixed with \`esorex.caller.\'. Blank lines are ignored and
211 +lines beginning with \`#\' are treated as comments.
212 +
213 +Here is an example configuration file.
214 +
215 + # Example EsoRex configuration file
216 + #
217 + esorex.caller.recipe-dir=/home/username/EsoRex/Plugins
218 + esorex.caller.log-dir=.
219 + esorex.caller.log-file=esorex.log
220 + esorex.caller.log-file=esorex.log
221 + esorex.caller.output-dir=.
222 + esorex.caller.output-prefix=out_
223 +
224 +.TP
225 +.SH filename.sof
226 +A sof file contains a list of the input data. This data is specified in an sof
227 +file (which is just a text file), where each input file is specified with its
228 +associated classification and category. The format of each line in the sof
229 +file is as follows:
230 +
231 + full-path-to-file classification
232 +
233 +Optionally, a third column may be provided. Permitted values are either RAW or
234 +CALIB. This is for when a recipe does not identify the type of input file, but
235 +as all ESO recipes are required to do so, this column is typically not needed.
236 +
237 +An example sof file, for the mythological "ZIMOS" instrument, might look like this:
238 +
239 + /data/mos/ZIMOS.03-12-26T01:05:06.fits MOS_SCIENCE
240 + /data/mos/ZIMOS.03-12-26T01:26:00.fits MOS_SCIENCE
241 + /data/mos/ZIMOS.03-12-26T01:47:04.fits MOS_SCIENCE
242 + /data/cal/master_bias4.fits MASTER_BIAS
243 + /data/cal/grs_LR_red.3.tfits GRISM_TABLE
244 + /data/gasgano/extract_table2.fits EXTRACT_TABLE
245 + /data/cal/badpixel.3.tfits CCD_TABLE
246 +
247 +For an concrete example for a specific instrument, check the documentation for that
248 +instrument.
249 +
250
251
252
253 1.1 sci-astronomy/esorex/files/esorex-3.10-set-default-plugin-path.patch
254
255 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-set-default-plugin-path.patch?rev=1.1&view=markup
256 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-set-default-plugin-path.patch?rev=1.1&content-type=text/plain
257
258 Index: esorex-3.10-set-default-plugin-path.patch
259 ===================================================================
260 Author: Ole Streicher <debian@×××××××××.cx>
261 Description: Set the default plugin path to the one where recipes are
262 installed in Debian.
263 --- a/etc/esorex.rc.in
264 +++ b/etc/esorex.rc.in
265 @@ -130,7 +130,7 @@
266 # as well. Multiple directory heads may be specified, by separating the
267 # starting paths with colons (:). This option may also be set using the
268 # environment variable ESOREX_PLUGIN_DIR.
269 -esorex.caller.recipe-dir=@recipedir@/esopipes-plugins
270 +esorex.caller.recipe-dir=@recipedir@
271
272 # --suppress-link
273 # When TRUE, no symbolic link is created to the output product. However, if
274 --- a/acinclude.m4
275 +++ b/acinclude.m4
276 @@ -35,7 +35,10 @@
277 AC_SUBST(configdir)
278
279 if test -z "$recipedir"; then
280 - recipedir="`eval echo $libdir`"
281 + recipedir="`eval echo $libdir`/cpl/plugins"
282 + if test $libdir != "/usr/lib"; then
283 + recipedir="$recipedir:/usr/lib/cpl/plugins"
284 + fi
285 fi
286 AC_SUBST(recipedir)
287
288
289
290
291 1.1 sci-astronomy/esorex/files/esorex-3.10-remove-empty-configdir.patch
292
293 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-remove-empty-configdir.patch?rev=1.1&view=markup
294 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-astronomy/esorex/files/esorex-3.10-remove-empty-configdir.patch?rev=1.1&content-type=text/plain
295
296 Index: esorex-3.10-remove-empty-configdir.patch
297 ===================================================================
298 Author: Ole Streicher <debian@×××××××××.cx>
299 Description: Avoid creation of an empty directory "/usr/share/esorex/config"
300 --- a/src/Makefile.am
301 +++ b/src/Makefile.am
302 @@ -51,8 +51,6 @@
303
304 bin_PROGRAMS = esorex
305
306 -config_DATA =
307 -
308 esorex_LDFLAGS = $(CPL_LDFLAGS) $(LIBLTDL)
309 esorex_LDADD = @GETOPT@ $(LIBCPLDFS) $(LIBCPLUI) $(LIBCPLCORE) $(LIBCEXT) $(LIBLTDL)
310 esorex_DEPENDENCIES = @GETOPT@ $(LIBLTDL)