Gentoo Archives: gentoo-commits

From: "Keri Harris (keri)" <keri@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/xsb/files: xsb-3.1-orient.patch xsb-3.1-odbc.patch xsb-3.1-mysql.patch xsb-3.1-gap.patch xsb-3.1-chr_d.patch xsb-3.1-xpath.patch xsb-3.1-xsb-script.patch xsb-3.1-configure.patch xsb-3.1-varstring.patch xsb-3.1-justify.patch xsb-3.1-packages.patch xsb-3.1-nostrip.patch digest-xsb-3.1 xsb-3.1-portage.patch
Date: Sun, 25 Nov 2007 05:09:40
Message-Id: E1Iw9kL-0001ut-39@stork.gentoo.org
1 keri 07/11/25 05:09:33
2
3 Added: xsb-3.1-orient.patch xsb-3.1-odbc.patch
4 xsb-3.1-mysql.patch xsb-3.1-gap.patch
5 xsb-3.1-chr_d.patch xsb-3.1-xpath.patch
6 xsb-3.1-xsb-script.patch xsb-3.1-configure.patch
7 xsb-3.1-varstring.patch xsb-3.1-justify.patch
8 xsb-3.1-packages.patch xsb-3.1-nostrip.patch
9 digest-xsb-3.1 xsb-3.1-portage.patch
10 Log:
11 Version bump
12 (Portage version: 2.1.4_rc1)
13
14 Revision Changes Path
15 1.1 dev-lang/xsb/files/xsb-3.1-orient.patch
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-orient.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-orient.patch?rev=1.1&content-type=text/plain
19
20 Index: xsb-3.1-orient.patch
21 ===================================================================
22 --- XSB.orig/emu/orient_xsb.c 2007-08-10 02:50:31.000000000 +1200
23 +++ XSB/emu/orient_xsb.c 2007-11-25 17:58:25.000000000 +1300
24 @@ -304,7 +304,7 @@
25 }
26
27 /* Check if configuration.P exists and is readable */
28 - retcode = stat(xsb_config_file_gl, &fileinfo);
29 +/* retcode = stat(xsb_config_file_gl, &fileinfo);
30 #ifdef WIN_NT
31 if ( (retcode != 0) || !(S_IREAD & fileinfo.st_mode) ) {
32 #else
33 @@ -323,7 +323,7 @@
34 xsb_initialization_exit("XSB configuration file %s does not exist or is not readable by you.\n",
35 xsb_config_file_gl);
36 }
37 - }
38 + } */
39 }
40
41 #ifdef WIN_NT
42
43
44
45 1.1 dev-lang/xsb/files/xsb-3.1-odbc.patch
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-odbc.patch?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-odbc.patch?rev=1.1&content-type=text/plain
49
50 Index: xsb-3.1-odbc.patch
51 ===================================================================
52 --- XSB.orig/packages/dbdrivers/odbc/configure 2003-09-29 21:40:01.000000000 +1200
53 +++ XSB/packages/dbdrivers/odbc/configure 2007-11-25 09:32:41.000000000 +1300
54 @@ -626,8 +626,8 @@
55 LDFLAGS="-L${with_odbc_libdir} ${LDFLAGS}"
56 fi
57
58 -echo $ac_n "checking for in -lodbc""... $ac_c" 1>&6
59 -echo "configure:631: checking for in -lodbc" >&5
60 +echo $ac_n "checking for SQLAllocEnv in -lodbc""... $ac_c" 1>&6
61 +echo "configure:631: checking for SQLAllocEnv in -lodbc" >&5
62 ac_lib_var=`echo odbc'_' | sed 'y%./+-%__p_%'`
63 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
64 echo $ac_n "(cached) $ac_c" 1>&6
65 @@ -640,10 +640,10 @@
66 /* Override any gcc2 internal prototype to avoid an error. */
67 /* We use char because int might match the return type of a gcc2
68 builtin and then its argument prototype would still apply. */
69 -char ();
70 +char SQLAllocEnv ();
71
72 int main() {
73 -()
74 +SQLAllocEnv()
75 ; return 0; }
76 EOF
77 if { (eval echo configure:650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
78 @@ -661,9 +661,9 @@
79 fi
80 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
81 echo "$ac_t""yes" 1>&6
82 - odbc_error=yes
83 else
84 echo "$ac_t""no" 1>&6
85 + odbc_error=yes
86 fi
87
88
89 @@ -809,6 +809,9 @@
90 support=yes
91 fi
92
93 +libdir=`odbc_config --lib-prefix`
94 +CFLAGS=`odbc_config --cflags`
95 +LDFLAGS=`odbc_config --libs`
96
97
98
99
100
101
102 1.1 dev-lang/xsb/files/xsb-3.1-mysql.patch
103
104 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-mysql.patch?rev=1.1&view=markup
105 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-mysql.patch?rev=1.1&content-type=text/plain
106
107 Index: xsb-3.1-mysql.patch
108 ===================================================================
109 diff -ur XSB.orig/packages/dbdrivers/mysql/cc/mysql_driver.c XSB/packages/dbdrivers/mysql/cc/mysql_driver.c
110 --- XSB.orig/packages/dbdrivers/mysql/cc/mysql_driver.c 2006-02-12 18:21:03.000000000 +1300
111 +++ XSB/packages/dbdrivers/mysql/cc/mysql_driver.c 2007-11-25 13:44:50.000000000 +1300
112 @@ -209,13 +209,11 @@
113 switch (result[i]->type)
114 {
115 case INT_TYPE:
116 - result[i]->val->i_val = (int *)malloc(sizeof(int));
117 - result[i]->val->i_val = (int *)row[i];
118 + sscanf(row[i], "%d", &result[i]->val->i_val);
119 break;
120
121 case FLOAT_TYPE:
122 - result[i]->val->f_val = (double *)malloc(sizeof(double));
123 - result[i]->val->f_val = (double *)row[i];
124 + sscanf(row[i], "%lf", &result[i]->val->f_val);
125 break;
126
127 case STRING_TYPE:
128 diff -ur XSB.orig/packages/dbdrivers/mysql/configure XSB/packages/dbdrivers/mysql/configure
129 --- XSB.orig/packages/dbdrivers/mysql/configure 2003-09-29 21:40:02.000000000 +1200
130 +++ XSB/packages/dbdrivers/mysql/configure 2007-11-25 13:53:22.000000000 +1300
131 @@ -626,8 +626,8 @@
132 LDFLAGS="-L${libdir} ${LDFLAGS}"
133 fi
134
135 -echo $ac_n "checking for in -lmysqlclient""... $ac_c" 1>&6
136 -echo "configure:631: checking for in -lmysqlclient" >&5
137 +echo $ac_n "checking for mysql_init in -lmysqlclient""... $ac_c" 1>&6
138 +echo "configure:631: checking for mysql_init in -lmysqlclient" >&5
139 ac_lib_var=`echo mysqlclient'_' | sed 'y%./+-%__p_%'`
140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
141 echo $ac_n "(cached) $ac_c" 1>&6
142 @@ -640,10 +640,10 @@
143 /* Override any gcc2 internal prototype to avoid an error. */
144 /* We use char because int might match the return type of a gcc2
145 builtin and then its argument prototype would still apply. */
146 -char ();
147 +char mysql_init ();
148
149 int main() {
150 -()
151 +mysql_init()
152 ; return 0; }
153 EOF
154 if { (eval echo configure:650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
155 @@ -661,9 +661,9 @@
156 fi
157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
158 echo "$ac_t""yes" 1>&6
159 - mysql_error=yes
160 else
161 echo "$ac_t""no" 1>&6
162 + mysql_error=yes
163 fi
164
165 # Here we provide additional directories to check headers in
166 @@ -808,6 +808,8 @@
167 support=yes
168 fi
169
170 +CFLAGS=`mysql_config --cflags`
171 +LDFLAGS=`mysql_config --libs`
172
173
174
175 diff -ur XSB.orig/packages/dbdrivers/mysql.P XSB/packages/dbdrivers/mysql.P
176 --- XSB.orig/packages/dbdrivers/mysql.P 2007-08-10 02:50:45.000000000 +1200
177 +++ XSB/packages/dbdrivers/mysql.P 2007-11-25 13:53:54.000000000 +1300
178 @@ -35,7 +35,7 @@
179 fmt_write_string(Dir, 'dbdrivers%smysql', a(Slash)),
180 bootstrap_package([Dir,cc], mysql_driver),
181 %% TEMPORARILY DISABLED
182 - abort('*** The native MySQL driver is not yet operational'),
183 + %% abort('*** The native MySQL driver is not yet operational'),
184 [mysql_driver_config],
185 driverMySQL_register,
186 driverMySQL_initialise.
187
188
189
190 1.1 dev-lang/xsb/files/xsb-3.1-gap.patch
191
192 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-gap.patch?rev=1.1&view=markup
193 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-gap.patch?rev=1.1&content-type=text/plain
194
195 Index: xsb-3.1-gap.patch
196 ===================================================================
197 --- XSB.orig/packages/gap.P 1999-12-31 07:20:55.000000000 +1300
198 +++ XSB/packages/gap.P 2007-11-25 14:09:38.000000000 +1300
199 @@ -33,5 +33,6 @@
200
201 gap_meta(Call):- meta(Call).
202
203 -:- bootstrap_package('gap',gap).
204 +:- bootstrap_package('gap',gap),
205 + [gapmeta].
206
207
208
209
210 1.1 dev-lang/xsb/files/xsb-3.1-chr_d.patch
211
212 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-chr_d.patch?rev=1.1&view=markup
213 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-chr_d.patch?rev=1.1&content-type=text/plain
214
215 Index: xsb-3.1-chr_d.patch
216 ===================================================================
217 --- XSB.orig/packages/chr_d.P 2006-05-26 02:49:06.000000000 +1200
218 +++ XSB/packages/chr_d.P 2007-11-24 20:12:59.000000000 +1300
219 @@ -28,7 +28,9 @@
220 init_chr_d:-
221 bootstrap_package([chr_d],'chr_d'),
222 [chr2attv],
223 - [attv_aux].
224 + [attv_aux],
225 + [flatten_chr],
226 + [print_chrd].
227
228 :- init_chr_d.
229
230
231
232
233 1.1 dev-lang/xsb/files/xsb-3.1-xpath.patch
234
235 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-xpath.patch?rev=1.1&view=markup
236 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-xpath.patch?rev=1.1&content-type=text/plain
237
238 Index: xsb-3.1-xpath.patch
239 ===================================================================
240 --- XSB.orig/packages/xpath/configure 2005-03-06 13:29:02.000000000 +1300
241 +++ XSB/packages/xpath/configure 2007-11-25 08:59:32.000000000 +1300
242 @@ -592,6 +592,7 @@
243 ccflags=
244 ldflags=
245
246 +if test false ; then
247 case "$canonical" in
248 *-cygwin*)
249 pkg_src_dir=$build_dir/cc
250 @@ -614,6 +615,10 @@
251 ldflags="`sh $xpath_config_prog $exec_prefix_option $prefix_option --libs`"
252 ;;
253 esac
254 +fi
255 +
256 +xmllib_ccflags=`xml2-config --cflags`
257 +ldflags=`xml2-config --libs`
258
259 ccflags="$xmllib_ccflags"
260 if test "$xmllib_ccflags" != "ERROR" && test "$ldflags" != "ERROR" ; then
261
262
263
264 1.1 dev-lang/xsb/files/xsb-3.1-xsb-script.patch
265
266 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-xsb-script.patch?rev=1.1&view=markup
267 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-xsb-script.patch?rev=1.1&content-type=text/plain
268
269 Index: xsb-3.1-xsb-script.patch
270 ===================================================================
271 --- XSB.orig/build/xsb.in 2007-08-30 05:50:40.000000000 +1200
272 +++ XSB/build/xsb.in 2007-11-25 17:45:41.000000000 +1300
273 @@ -47,7 +47,7 @@
274
275 # if we've a symbolic link, then extract the full path of the target
276 if test -h $invocation_name ; then
277 - invocation_name=`dirname $invocation_name`"/"`stat -f %Y $invocation_name`
278 + invocation_name=`readlink $invocation_name`
279 fi
280
281 case $invocation_name in
282 @@ -72,9 +72,7 @@
283 scriptdir=`dirname $thisfile`
284 topdir=`dirname $scriptdir`
285
286 -config=`$topdir/build/config.guess`
287 -canonical=`$topdir/build/config.sub $config`
288 -exec_dir=$topdir/config/${canonical}${suffix}
289 +exec_dir=$topdir/config/@full_config_name@
290 executable=${exec_dir}/bin/xsb
291
292 # The purpose of this complex thing is to make sure that arguments
293 @@ -95,18 +93,18 @@
294 fi
295
296 if test -x "$executable" ; then
297 - eval "exec @CROSS_SIMULATOR@ $executable $xsb_cmd"
298 + LD_LIBRARY_PATH=${exec_dir}/lib eval "exec @CROSS_SIMULATOR@ $executable $xsb_cmd"
299 else
300 echo "${executable}: "
301 echo " file doesn't exist or is not executable"
302 echo ""
303 echo "XSB might not have have been compiled for the following machine configuration:"
304 - echo " " ${canonical}${suffix}
305 + echo " " @full_config_name@
306 echo "***This installation seems to have the following configurations available:"
307 # First drop files that don't have "-".
308 # Then drop the configuration that we just said doesn't exist.
309 ls -1 $topdir/config | egrep "-" \
310 - | egrep -v "^${canonical}${suffix}\$" 2> /dev/null
311 + | egrep -v "^@full_config_name@\$" 2> /dev/null
312 echo "***configuration list end"
313 echo ""
314 echo "One other frequent problem: you might be over your disk quota,"
315
316
317
318 1.1 dev-lang/xsb/files/xsb-3.1-configure.patch
319
320 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-configure.patch?rev=1.1&view=markup
321 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-configure.patch?rev=1.1&content-type=text/plain
322
323 Index: xsb-3.1-configure.patch
324 ===================================================================
325 --- XSB.orig/build/configure.in 2007-08-23 07:21:23.000000000 +1200
326 +++ XSB/build/configure.in 2007-11-24 19:54:25.000000000 +1300
327 @@ -366,9 +366,9 @@
328 dnl prefix given by the user. The prefix variable will later get
329 dnl the <xsb-version> subdirectory added in.
330 orig_prefix=
331 -if test "$prefix" = "NONE" -o -z "$prefix" ; then
332 +if test true ; then
333 + install_prefix=$prefix/lib/xsb
334 prefix=$topdir
335 - orig_prefix=$prefix
336 else
337 dnl strip any trailing slashes in prefix
338 prefix=`echo "${prefix}" | sed 's,\([[^/]]\)/*$,\1,'`
339 @@ -429,7 +429,7 @@
340 fi
341
342 config_prefix=${topdir}/config
343 -install_config_prefix=${prefix}/config
344 +install_config_prefix=${install_prefix}/config
345
346 if test -n "$with_config_tag" ; then
347 config_tag="-$with_config_tag"
348 @@ -456,7 +456,7 @@
349
350 dnl If the user didn't specify --with-config-tag, check maybe -aout, -bits-64,
351 dnl or -dbg are appropriate
352 -if test -z "${with_config_tag}" ; then
353 +if false ; then
354 config_tag=
355 dnl add -bits64 to the config tag, if --with-bits64 is set on command line
356 if test "$bits64" = yes ; then
357 @@ -547,10 +547,10 @@
358 canonical=$host
359 configuration=${host_alias-${build_alias-$host}}
360 if test "$configuration" = "NONE" -o -z "$configuration" ; then
361 - echo '
362 -- You did not tell me what kind of host system you want to configure.
363 -- I will attempt to guess the kind of system this is.
364 -' 1>&6
365 +# echo '
366 +#- You did not tell me what kind of host system you want to configure.
367 +#- I will attempt to guess the kind of system this is.
368 +#' 1>&6
369 canonical=$host
370 configuration=$host_alias
371 else
372 @@ -616,7 +616,7 @@
373 # site-specific directories
374 # where the site is
375 if test -z "$with_site_prefix" ; then
376 - site_prefix=${orig_prefix}/site
377 + site_prefix=${install_prefix}/site
378 else
379 site_prefix=$with_site_prefix
380 fi
381 @@ -629,17 +629,17 @@
382 site_config_libdir=${site_config_prefix}/lib
383
384 # Installation directories: We only check if they exist
385 -install_libdir=${prefix}/lib
386 -install_syslibdir=${prefix}/syslib
387 -install_cmplibdir=${prefix}/cmplib
388 -install_emudir=${prefix}/emu
389 -install_scriptdir=${prefix}/bin # where the xsb invocation script goes
390 -install_builddir=${prefix}/build # where the config detection scripts go
391 -install_prolog_includes=${prefix}/prolog_includes
392 -install_pkgdir=${prefix}/packages
393 -install_pkgxmcdir=${prefix}/packages/xmc
394 -install_examples=${prefix}/examples
395 -install_etcdir=${prefix}/etc
396 +install_libdir=${install_prefix}/lib
397 +install_syslibdir=${install_prefix}/syslib
398 +install_cmplibdir=${install_prefix}/cmplib
399 +install_emudir=${install_prefix}/emu
400 +install_scriptdir=${install_prefix}/bin # where the xsb invocation script goes
401 +install_builddir=${install_prefix}/build # where the config detection scripts go
402 +install_prolog_includes=${install_prefix}/prolog_includes
403 +install_pkgdir=${install_prefix}/packages
404 +install_pkgxmcdir=${install_prefix}/packages/xmc
405 +install_examples=${install_prefix}/examples
406 +install_etcdir=${install_prefix}/etc
407
408 arch_install_config_prefix=${install_config_prefix}/${full_config_name}
409 arch_install_bindir=${arch_install_config_prefix}/bin
410 @@ -658,7 +658,7 @@
411 rm -f buildxsb.lock
412 exit 1
413 fi
414 -
415 +if false ; then
416 # Test if directories exist
417 echo "Checking installation directories..."
418
419 @@ -778,7 +778,7 @@
420 test -f .missingdirs.tmp && exit 1
421
422 echo "Checking installation directories ... Done"
423 -
424 +fi
425
426 AC_PROG_CC
427 AC_PROG_CPP
428 @@ -1114,7 +1114,7 @@
429 ODBCSRC=""
430 ODBCOBJ=""
431
432 -if test "${with_odbc+set}" = "set"; then
433 +if test "${with_odbc}" = "yes"; then
434 if test -n "$with_os" ; then
435 echo -n ""
436 # AC_DEFINE(XSB_ODBC)
437 @@ -1152,11 +1152,11 @@
438 # with_odbc=no
439 # else
440 # AC_DEFINE(XSB_ODBC)
441 - cat <<EOT
442 -
443 -Building with support for ODBC
444 -
445 -EOT
446 +# cat <<EOT
447 +#
448 +#Building with support for ODBC
449 +#
450 +#EOT
451 # fi
452 # dnl restore CPPFLAGS
453 # CPPFLAGS="${saved_cpp_flags}"
454 @@ -1167,9 +1167,9 @@
455 fi
456 fi
457
458 -if test "${with_odbc+set}" = "set"; then
459 +if test "${with_odbc}" = "yes"; then
460 AC_DEFINE(XSB_ODBC)
461 - with_odbc=yes
462 +# with_odbc=yes
463 fi
464
465 win_site_includes=
466 @@ -1248,8 +1248,8 @@
467 AC_SUBST(perl_ccflags)
468 AC_SUBST(perl_libs)
469
470 -
471 -# Java support
472 +if test "${with_interprolog}" = "yes"; then
473 +if test "x$JAVAC" = x; then
474 AC_CHECK_PROG(java_support, javac, "yes", "no")
475 if test "${java_support}" = "yes"; then
476 dnl after AC_CHECK_PROG, as_dir holds the directory where javac is found
477 @@ -1257,17 +1257,20 @@
478 else
479 javac=javac
480 fi
481 -
482 +else
483 + javac="$JAVAC"
484 + java_support=yes
485 +fi
486 AC_SUBST(javac)
487 AC_SUBST(java_support)
488
489 -AC_PATH_PROG(java_path,javac,no)
490 -java_path=`dirname $java_path`
491 +#AC_PATH_PROG(java_path,javac,no)
492 +java_path=`dirname $javac`
493 java_path=`dirname $java_path`
494 java_path=$java_path/include
495 #java_path=`echo $java_path | sed 's,bin/javac,include,' `
496
497 -if test "${with_interprolog}" = "yes"; then
498 +#if test "${with_interprolog}" = "yes"; then
499 if test "${java_support}" != "yes"; then
500 echo "Interprolog not supported due to failure to find Java"
501 with_interprolog=""
502 @@ -1304,14 +1307,14 @@
503 if test "${enable_profile}" = "yes"; then
504 AC_DEFINE(DEBUG)
505 AC_DEFINE(PROFILE)
506 - do_debugging=yes
507 +# do_debugging=yes
508 fi
509
510 if test "${enable_debug}" = "yes"; then
511 AC_DEFINE(NON_OPT_COMPILE)
512 AC_DEFINE(DEBUG)
513 dnl AC_DEFINE(CP_DEBUG)
514 - do_debugging=yes
515 +# do_debugging=yes
516 fi
517
518 if test "${enable_debug_verbose}" = "yes"; then
519 @@ -1678,20 +1681,22 @@
520 #fi
521
522 # dnl ODBC library
523 -if test "${with_odbc}" = yes ; then
524 +#if test "${with_odbc}" = yes ; then
525 case "$canonical" in
526 *-cygwin*) LDFLAGS="-lodbc32 ${LDFLAGS}"
527 LINKFLAGS="-lodbc32 ${LINKFLAGS}"
528 ;;
529 - *) if test -n "${with_iodbc}"; then
530 - LDFLAGS="-liodbc ${LDFLAGS}"
531 - LINKFLAGS="-liodbc ${LINKFLAGS}"
532 - else
533 - LDFLAGS="-lodbc ${LDFLAGS}"
534 - LINKFLAGS="-lodbc ${LINKFLAGS}"
535 + *) if test "${with_iodbc}" = "yes"; then
536 + ODBC_CFLAGS="$(iodbc-config --cflags)"
537 + LDFLAGS="$(iodbc-config --libs) ${LDFLAGS}"
538 +# LINKFLAGS="-liodbc ${LINKFLAGS}"
539 + elif test "${with_odbc}" = "yes"; then
540 + ODBC_CFLAGS="$(odbc_config --cflags)"
541 + LDFLAGS="$(odbc_config --libs) ${LDFLAGS}"
542 +# LINKFLAGS="-lodbc ${LINKFLAGS}"
543 fi
544 esac
545 -fi
546 +#fi
547
548 # this is needed for -mno-cygwin dll compilation
549 DLLTYPE=nodll
550 @@ -1843,6 +1848,7 @@
551
552 AC_SUBST(ODBCSRC)
553 AC_SUBST(ODBCOBJ)
554 +AC_SUBST(ODBC_CFLAGS)
555 AC_SUBST(INTERPROLOGSRC)
556 AC_SUBST(INTERPROLOGOBJ)
557 AC_SUBST(mno_cyg_inclib)
558 @@ -1883,11 +1889,11 @@
559 ${arch_config_prefix}/xsb_debug.h:def_debug.in])
560
561
562 -AC_OUTPUT([ ${arch_config_prefix}/topMakefile:topMakefile.in
563 - ${arch_config_prefix}/emuMakefile:emuMakefile.in
564 - ${arch_config_prefix}/modMakefile:modMakefile.in
565 - ${arch_config_prefix}/gppMakefile:gppMakefile.in
566 - ${arch_config_prefix}/smoMakefile:smoMakefile.in
567 +AC_OUTPUT([ ${build_dir}/Makefile:topMakefile.in
568 + ${emudir}/Makefile:emuMakefile.in
569 + ${build_dir}/modMakefile:modMakefile.in
570 + ${topdir}/gpp/Makefile:gppMakefile.in
571 + ${build_dir}/smoMakefile:smoMakefile.in
572 ${arch_config_prefix}/makedef.sh:makedef.sh.in
573 ${arch_config_file}:${configuration_templ}
574 makexsb:makexsb.in
575 @@ -2011,10 +2017,10 @@
576
577 # This is needed so that *after* XSB is installed in a common directory,
578 # users could compile packages that produce arch-specific code.
579 -chmod 777 ${site_config_libdir};
580 -chmod a+t ${site_config_libdir};
581 -chmod 777 ${arch_install_config_libdir};
582 -chmod a+t ${arch_install_config_libdir};
583 +# chmod 777 ${site_config_libdir};
584 +# chmod a+t ${site_config_libdir};
585 +# chmod 777 ${arch_install_config_libdir};
586 +# chmod a+t ${arch_install_config_libdir};
587
588
589 dnl Add site dynamic libraries to XSB library path
590 @@ -2061,9 +2067,9 @@
591 # configuring for Windows over Samba, NFS, etc.
592 chmod 644 ${arch_config_file} \
593 ${arch_config_prefix}/xsb_config.h \
594 - ${arch_config_prefix}/xsb_debug.h \
595 - ${arch_config_prefix}/*Makefile \
596 - ${arch_config_prefix}/MSVC*
597 + ${arch_config_prefix}/xsb_debug.h
598 +# ${arch_config_prefix}/*Makefile \
599 +# ${arch_config_prefix}/MSVC*
600
601
602 # phantom private_builtin.c file
603
604
605
606 1.1 dev-lang/xsb/files/xsb-3.1-varstring.patch
607
608 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-varstring.patch?rev=1.1&view=markup
609 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-varstring.patch?rev=1.1&content-type=text/plain
610
611 Index: xsb-3.1-varstring.patch
612 ===================================================================
613 --- XSB.orig/emu/varstring_xsb.h 2005-07-08 06:59:43.000000000 +1200
614 +++ XSB/emu/varstring_xsb.h 2007-11-25 08:28:36.000000000 +1300
615 @@ -40,7 +40,7 @@
616 void (*appendc)(VarString*,char); /* append char to VarString */
617 void (*prependv)(VarString*,VarString*); /* prepend 2nd VarString to 1st */
618 int (*compare)(VarString*,VarString*); /* like strcmp for VarStrings */
619 - int (*strcmp)(VarString*,char*); /* compare VarString to a char* */
620 + int (*str_cmp)(VarString*,char*); /* compare VarString to a char* */
621
622 /* append block of N chars; don't NULL-terminate */
623 void (*appendblk)(VarString*,char*,int);
624 @@ -84,7 +84,7 @@
625 #define XSB_StrAppendC(vstr,code) (vstr)->op->appendc(vstr,code)
626 #define XSB_StrPrependV(vstr1,vstr2) (vstr)->op->prependv(vstr1,vstr2)
627 #define XSB_StrCompare(vstr1,vstr2) (vstr1)->op->compare(vstr1,vstr2)
628 -#define XSB_StrCmp(vstr,str) (vstr)->op->strcmp(vstr,str)
629 +#define XSB_StrCmp(vstr,str) (vstr)->op->str_cmp(vstr,str)
630 #define XSB_StrAppendBlk(vstr,blk,sz) (vstr)->op->appendblk(vstr,blk,sz)
631 #define XSB_StrPrependBlk(vstr,blk,sz) (vstr)->op->prependblk(vstr,blk,sz)
632 #define XSB_StrNullTerminate(vstr) (vstr)->op->null_terminate(vstr)
633
634
635
636 1.1 dev-lang/xsb/files/xsb-3.1-justify.patch
637
638 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-justify.patch?rev=1.1&view=markup
639 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-justify.patch?rev=1.1&content-type=text/plain
640
641 Index: xsb-3.1-justify.patch
642 ===================================================================
643 --- XSB.orig/packages/justify.P 2006-01-02 11:03:26.000000000 +1300
644 +++ XSB/packages/justify.P 2007-11-24 20:19:19.000000000 +1300
645 @@ -11,7 +11,8 @@
646
647 :- import bootstrap_package/2 from packaging.
648 :- import slash/1 from machine.
649 -:- bootstrap_package('justify',justify).
650 +:- bootstrap_package('justify',justify),
651 + [jxm].
652
653 :- import jxm_/1, just_true_/2, just_false_/2 from jxm.
654
655
656
657
658 1.1 dev-lang/xsb/files/xsb-3.1-packages.patch
659
660 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-packages.patch?rev=1.1&view=markup
661 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-packages.patch?rev=1.1&content-type=text/plain
662
663 Index: xsb-3.1-packages.patch
664 ===================================================================
665 --- XSB.orig/packages/Makefile 2006-05-22 14:10:22.000000000 +1200
666 +++ XSB/packages/Makefile 2007-11-24 19:15:20.000000000 +1300
667 @@ -22,17 +22,63 @@
668 ##
669 ##
670
671 +config_libdir=../config/*/lib
672 +
673 OBJEXT=.xwam
674
675 -ALL = slx${OBJEXT} perlmatch${OBJEXT} gap${OBJEXT} \
676 - regmatch${OBJEXT} wildmatch${OBJEXT} \
677 - xasp${OBJEXT} libwww${OBJEXT} xsbdoc${OBJEXT} \
678 - xmc${OBJEXT} justify${OBJEXT}
679 +#ALL =
680 +ALL = chr.xwam chr_d.xwam gap.xwam justify.xwam regmatch.xwam sgml.xwam slx.xwam wildmatch.xwam
681
682 -SUBDIR = flora2 slx perlmatch gap regmatch wildmatch libwww xasp \
683 - xsbdoc xmc justify
684 +#SUBMODULES =
685 +SUBMODULES = chr/chr_interp.xwam chr/chr_pp.xwam chr_d/attv_aux.xwam chr_d/chr2attv.xwam chr_d/print_chrd.xwam gap/gapmeta.xwam justify/jxm.xwam regmatch/regmtchconfig.xwam sgml/sgmlconfig.xwam slx/slxshell.xwam wildmatch/wldmtchconfig.xwam
686 +#SUBMODULES = xsbdoc/autodoc.xwam xsbdoc/autodocformats.xwam xsbdoc/ciaoaux.xwam xsbdoc/full_ciao_ops.xwam xsbdoc/rewrite_command.xwam xsbdoc/xsbdoc1.xwam xsbdoc/xsbdoc_term_proc.xwam
687 +
688 +#ARCHMODULES =
689 +ARCHMODULES = $(config_libdir)/sgml2pl.xwam $(config_libdir)/xsb_re_match.xwam $(config_libdir)/xsb_wildmatch.xwam
690 +
691 +#SOLIBS =
692 +SOLIBS = $(config_libdir)/sgml2pl.so $(config_libdir)/xsb_re_match.so $(config_libdir)/xsb_wildmatch.so
693 +
694 +#HEADERS =
695 +HEADERS = regmatch/cc/xsb_re_match.H sgml/cc/sgml2pl.H wildmatch/cc/xsb_wildmatch.H
696 +
697 +DBDRIVERS = dbdrivers.xwam
698 +DBDRIVERSSUBMODULES = dbdrivers/db_interface.xwam
699 +DBDRIVERSARCHMODULES = $(config_libdir)/driver_manager.xwam
700 +DBDRIVERSSOLIBS = $(config_libdir)/driver_manager.so
701 +DBDRIVERSHEADERS = dbdrivers/db_interface.H dbdrivers/cc/driver_manager.H
702 +
703 +LIBWWW = libwww.xwam
704 +LIBWWWSUBMODULES = libwww/libwww_init.xwam libwww/libwwwconfig.xwam
705 +LIBWWWARCHMODULES = $(config_libdir)/libwww_request.xwam
706 +LIBWWWSOLIBS = $(config_libdir)/libwww_parse_html.so $(config_libdir)/libwww_parse_rdf.so $(config_libdir)/libwww_parse_xml.so $(config_libdir)/libwww_request.so
707 +LIBWWWHEADERS = libwww/cc/libwww_request.H
708 +
709 +MYSQL = dbdrivers/mysql.xwam
710 +MYSQLSUBMODULES = dbdrivers/mysql/mysql_driver_config.xwam dbdrivers/mysql/mysql_init.xwam
711 +MYSQLARCHMODULES = $(config_libdir)/mysql_driver.xwam
712 +MYSQLSOLIBS = $(config_libdir)/mysql_driver.so
713 +MYSQLHEADERS = dbdrivers/mysql/cc/mysql_driver.H
714 +
715 +ODBC = dbdrivers/odbc.xwam
716 +ODBCSUBMODULES = dbdrivers/odbc/odbc_driver_config.xwam dbdrivers/odbc/odbc_init.xwam
717 +ODBCARCHMODULES = $(config_libdir)/odbc_driver.xwam
718 +ODBCSOLIBS = $(config_libdir)/odbc_driver.so
719 +ODBCHEADERS = dbdrivers/odbc/cc/odbc_driver.H
720 +
721 +PERLMATCH = perlmatch.xwam
722 +PERLSUBMODULES = perlmatch/plmchconfig.xwam perlmatch/plmchshell.xwam
723 +PERLARCHMODULES = $(config_libdir)/xsbpattern.xwam
724 +PERLSOLIBS = $(config_libdir)/xsbpattern.so
725 +PERLHEADERS = perlmatch/cc/xsbpattern.H
726 +
727 +XPATH = xpath.xwam
728 +XPATHSUBMODULES = xpath/xpath_init.xwam xpath/xpathconfig.xwam
729 +XPATHARCHMODULES = $(config_libdir)/xpathparser.xwam
730 +XPATHSOLIBS = $(config_libdir)/xpathparser.so
731 +XPATHHEADERS = xpath/cc/xpathparser.H
732
733 -Option = [optimize]
734 +Option = [optimize,quit_on_error]
735
736 #-----------------------------------------------------------------------#
737 #
738 @@ -51,20 +97,28 @@
739
740
741 # continue to the next when one error occurs
742 -.IGNORE:
743 +#.IGNORE:
744
745 # suffix rules
746 .SUFFIXES: .P ${OBJEXT} .H
747
748 .P${OBJEXT}:
749 - echo 'mc($*, $(Option)).' >> cmd...
750 -
751 + echo 'mc($*, $(Option)). [$*].' >> cmd...
752
753 all: init $(ALL) finish $(SUBDIR)
754 @../build/touch.sh cmd...
755 $(Prolog) < cmd...
756 @rm cmd...
757 @cat $(SVFILE)
758 + @for f in $(ARCHMODULES) $(SOLIBS) $(SUBMODULES) $(HEADERS); do \
759 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
760 + done
761 +
762 +dbdrivers/mysql.xwam: dbdrivers/mysql.P
763 + echo 'mc($*, $(Option)). [dbdrivers], [mysql].' >> cmd...
764 +
765 +dbdrivers/odbc.xwam: dbdrivers/odbc.P
766 + echo 'mc($*, $(Option)). [dbdrivers], [odbc].' >> cmd...
767
768 # clpqr::
769 # @echo ""
770 @@ -82,13 +136,61 @@
771 @echo ""
772 cd iprolog; make
773
774 -libwww::
775 - @echo ""
776 - cd libwww; make
777 +dbdrivers: init $(DBDRIVERS) finish
778 + @../build/touch.sh cmd...
779 + $(Prolog) < cmd...
780 + @rm cmd...
781 + @cat $(SVFILE)
782 + @for f in $(DBDRIVERSARCHMODULES) $(DBDRIVERSSOLIBS) $(DBDRIVERSSUBMODULES) $(DBDRIVERSHEADERS); do \
783 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
784 + done
785
786 -perlmatch::
787 - @echo ""
788 - cd perlmatch; make
789 +libwww: init $(LIBWWW) finish
790 + @../build/touch.sh cmd...
791 + $(Prolog) < cmd...
792 + @rm cmd...
793 + @cat $(SVFILE)
794 + @for f in $(LIBWWWARCHMODULES) $(LIBWWWSOLIBS) $(LIBWWWSUBMODULES) $(LIBWWWHEADERS); do \
795 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
796 + done
797 +
798 +mysql: dbdrivers init $(MYSQL) finish
799 + @cp ../config/*/lib/driver_manager.so ./
800 + @../build/touch.sh cmd...
801 + $(Prolog) < cmd...
802 + @rm cmd...
803 + @cat $(SVFILE)
804 + @for f in $(MYSQL) $(MYSQLARCHMODULES) $(MYSQLSOLIBS) $(MYSQLSUBMODULES) $(MYSQLHEADERS); do \
805 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
806 + done
807 +
808 +odbc: dbdrivers init $(ODBC) finish
809 + @cp ../config/*/lib/driver_manager.so ./
810 + @../build/touch.sh cmd...
811 + $(Prolog) < cmd...
812 + @rm cmd...
813 + @cat $(SVFILE)
814 + @for f in $(ODBC) $(ODBCARCHMODULES) $(ODBCSOLIBS) $(ODBCSUBMODULES) $(ODBCHEADERS); do \
815 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
816 + done
817 +
818 +perlmatch: init $(PERLMATCH) finish
819 + @../build/touch.sh cmd...
820 + $(Prolog) < cmd...
821 + @rm cmd...
822 + @cat $(SVFILE)
823 + @for f in $(PERLARCHMODULES) $(PERLSOLIBS) $(PERLSUBMODULES) $(PERLHEADERS); do \
824 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
825 + done
826 +
827 +xpath: init $(XPATH) finish
828 + @../build/touch.sh cmd...
829 + $(Prolog) < cmd...
830 + @rm cmd...
831 + @cat $(SVFILE)
832 + @for f in $(XPATHARCHMODULES) $(XPATHSOLIBS) $(XPATHSUBMODULES) $(XPATHHEADERS); do \
833 + if [ ! -f $$f ]; then echo "$$f not build"; exit 1; fi; \
834 + done
835
836 xasp::
837 @echo ""
838
839
840
841 1.1 dev-lang/xsb/files/xsb-3.1-nostrip.patch
842
843 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-nostrip.patch?rev=1.1&view=markup
844 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-nostrip.patch?rev=1.1&content-type=text/plain
845
846 Index: xsb-3.1-nostrip.patch
847 ===================================================================
848 --- XSB.orig/lib/foreign.P 2007-08-23 07:11:06.000000000 +1200
849 +++ XSB/lib/foreign.P 2007-11-25 16:39:33.000000000 +1300
850 @@ -127,7 +127,7 @@
851 %% If not debugging, the strip the symbol table from the result
852 ( str_sub(' -g', CC_Opts)
853 -> SymbolTableFlag = ' '
854 - ; SymbolTableFlag = ' -s'
855 + ; SymbolTableFlag = ' '
856 ),
857 ( var(CompComm)
858 -> ( str_sub('solaris', Configuration)
859
860
861
862 1.1 dev-lang/xsb/files/digest-xsb-3.1
863
864 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/digest-xsb-3.1?rev=1.1&view=markup
865 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/digest-xsb-3.1?rev=1.1&content-type=text/plain
866
867 Index: digest-xsb-3.1
868 ===================================================================
869 MD5 2c929524bf405312e4392f25fa86649c XSB-unix.tar.gz 5773347
870 RMD160 78e31e7b26bf5f219c3f6b01a0c65b7de86c7e83 XSB-unix.tar.gz 5773347
871 SHA256 b584a19dff06d8834795d8f26c1a97c5adfdcc678c3f7b2978591495f8a14051 XSB-unix.tar.gz 5773347
872
873
874
875 1.1 dev-lang/xsb/files/xsb-3.1-portage.patch
876
877 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-portage.patch?rev=1.1&view=markup
878 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/xsb/files/xsb-3.1-portage.patch?rev=1.1&content-type=text/plain
879
880 Index: xsb-3.1-portage.patch
881 ===================================================================
882 diff -ur XSB.orig/build/emuMakefile.in XSB/build/emuMakefile.in
883 --- XSB.orig/build/emuMakefile.in 2007-08-23 07:21:23.000000000 +1200
884 +++ XSB/build/emuMakefile.in 2007-11-24 18:28:13.000000000 +1300
885 @@ -42,6 +42,7 @@
886 LDFLAGS=@LDFLAGS@
887 ODBCSRC=@ODBCSRC@
888 ODBCOBJ=@ODBCOBJ@
889 +ODBC_CFLAGS=@ODBC_CFLAGS@
890 INTERPROLOGSRC=@INTERPROLOGSRC@
891 INTERPROLOGOBJ=@INTERPROLOGOBJ@
892 DLLTYPE=@DLLTYPE@
893 @@ -242,26 +243,31 @@
894 @cp dynload.o $(arch_config_objlibdir) 2> /dev/null || echo ""
895
896 emuloop.o: emuloop.c
897 - @echo -e "\t[$(CC)] emuloop.c using $(emuloopCFLAGS)"
898 + @echo -e "\t[$(CC)] emuloop.c"
899 @$(CC) -I$(arch_config_prefix) -c $(emuloopCFLAGS) emuloop.c
900 @cp emuloop.o $(arch_config_objlibdir) 2> /dev/null || echo ""
901
902 # Higher optimization level has problem with some versions of gcc
903 tr_utils.o: tr_utils.c
904 - @echo -e "\t[$(CC)] tr_utils.c using $(trutilsCFLAGS)"
905 + @echo -e "\t[$(CC)] tr_utils.c"
906 @$(CC) -I$(arch_config_prefix) -c $(trutilsCFLAGS) tr_utils.c
907 @cp tr_utils.o $(arch_config_objlibdir) 2> /dev/null || echo ""
908
909 builtin.o: builtin.c
910 - @echo -e "\t[$(CC)] builtin.c using $(builtinsCFLAGS)"
911 + @echo -e "\t[$(CC)] builtin.c"
912 @$(CC) -I$(arch_config_prefix) -c $(builtinsCFLAGS) builtin.c
913 @cp builtin.o $(arch_config_objlibdir) 2> /dev/null || echo ""
914
915 loader_xsb.o: loader_xsb.c
916 - @echo -e "\t[$(CC)] loader_xsb.c using $(loaderCFLAGS)"
917 + @echo -e "\t[$(CC)] loader_xsb.c"
918 @$(CC) -I$(arch_config_prefix) -c $(loaderCFLAGS) loader_xsb.c
919 @cp loader_xsb.o $(arch_config_objlibdir) 2> /dev/null || echo ""
920
921 +odbc_xsb.o: odbc_xsb.c
922 + @echo -e "\t[$(CC)] odbc_xsb.c"
923 + @$(CC) -I$(arch_config_prefix) -c $(ODBC_CFLAGS) $(CFLAGS) odbc_xsb.c
924 + @cp odbc_xsb.o $(arch_config_objlibdir) 2> /dev/null || echo ""
925 +
926 .c.o:
927 @echo -e "\t[$(CC)] $*.c"
928 @$(CC) -I$(arch_config_prefix) -c $(CFLAGS) $*.c
929 diff -ur XSB.orig/build/topMakefile.in XSB/build/topMakefile.in
930 --- XSB.orig/build/topMakefile.in 2007-07-14 06:30:58.000000000 +1200
931 +++ XSB/build/topMakefile.in 2007-11-24 18:32:48.000000000 +1300
932 @@ -72,7 +72,7 @@
933 # Everything is placed in subdirectories of this directory.
934 # The values for many of the variables below are expressed
935 # in terms of this one, so you do not need to change them.
936 -prefix=@prefix@
937 +prefix=$(DESTDIR)/usr/lib/xsb
938
939 srcdir=@topdir@
940 VPATH=$(srcdir)
941 @@ -101,7 +101,7 @@
942
943 # Like `prefix', but used for architecture-specific files.
944 src_config_prefix=@arch_config_prefix@
945 -install_config_prefix=@arch_install_config_prefix@
946 +install_config_prefix=$(DESTDIR)@arch_install_config_prefix@
947 # we copy the xsb.o module here
948 install_config_objlibdir=$(install_config_prefix)/saved.o
949
950 @@ -150,7 +150,7 @@
951 emumake_goal=@emumake_goal@
952
953 # Normal user
954 -all: prepare emulator xsbmod xsbdll gpp_exe remake_dot_O_files register emu_clean
955 +all: prepare emulator xsbmod gpp_exe remake_dot_O_files
956
957 # Developer who just checked out or updated CVS copy
958 devel: prepare emulator xsbmod xsbdll gpp_exe remake_dot_O_files emu_clean
959 @@ -179,29 +179,22 @@
960 tee -a Installation_summary
961 prepare:
962 @echo ""; echo "Preparing..."
963 - @cd $(src_emudir); \
964 - rm -f *.o Makefile 2> /dev/null || echo "" ; \
965 - ln -s ${src_config_objlibdir}/*.o . 2> /dev/null || echo "" ; \
966 - ln -s ${src_config_prefix}/emuMakefile ./Makefile
967 - @cd $(srcdir)/gpp; \
968 - rm -f *.o Makefile ; \
969 - ln -s ${src_config_prefix}/gppMakefile ./Makefile
970 - @rm -f $(srcdir)/build/.*.tmp
971 + @(test -d $(src_bindir) || mkdir $(src_bindir))
972 + @(test -d $(src_config_objlibdir) || mkdir $(src_config_objlibdir))
973
974 -emulator: ${src_config_prefix}/xsb_config.h ${src_config_prefix}/xsb_debug.h
975 +emulator: ${src_config_prefix}/xsb_config.h ${src_config_prefix}/xsb_debug.h prepare
976 @echo ""; echo "Making emulator..." ; \
977 cd ${src_emudir} ; \
978 - makedepend || echo "" ; \
979 rm -f $(srcdir)/build/.xsb_build_failed; \
980 - (make EXECUTABLE="$(EXECUTABLE)" $(emumake_goal) || \
981 + ($(MAKE) EXECUTABLE="$(EXECUTABLE)" $(emumake_goal) || \
982 $(srcdir)/build/touch.sh $(srcdir)/build/.xsb_build_failed) \
983 2>&1 | tee -a ../build/Installation_summary; \
984 (test ! -f $(srcdir)/build/.xsb_build_failed || \
985 (rm -f $(srcdir)/build/.xsb_build_failed; exit 1))
986
987 -gpp_exe:
988 +gpp_exe: xsbmod
989 @echo ""; echo "Making gpp"
990 - @cd $(srcdir)/gpp; make 2>&1 | tee -a ../build/Installation_summary
991 + @cd $(srcdir)/gpp; $(MAKE) 2>&1 | tee -a ../build/Installation_summary
992
993 # Compiling the interface with SMODELS.
994 xasp:
995 @@ -222,10 +215,10 @@
996
997 # if supporting Oracle, then emumake_goal=xsbora; else emumake_goal=xsb
998 # This invokes xsboramod and xsbmod goals in emuMakefile, respectively
999 -xsbmod: ${src_config_prefix}/xsb_config.h ${src_config_prefix}/xsb_debug.h
1000 +xsbmod: ${src_config_prefix}/xsb_config.h ${src_config_prefix}/xsb_debug.h emulator
1001 @echo ""; echo "Making XSB module..."
1002 @cd ${src_emudir}; \
1003 - make $(emumake_goal)mod
1004 + $(MAKE) $(emumake_goal)mod
1005
1006 xsbdynmod: ${src_config_prefix}/xsb_config.h ${src_config_prefix}/xsb_debug.h
1007 @cd ${src_emudir}; \
1008 @@ -270,7 +263,7 @@
1009 @./register.sh
1010
1011
1012 -install:: make_directories copy_files configure_packages_install
1013 +install:: make_directories copy_files
1014
1015 make_directories::
1016 @echo "Verifying that installtion directories exist..."
1017 @@ -300,11 +293,6 @@
1018 mkdir -p "${install_scriptdir}" ) && \
1019 echo "ok" || \
1020 (echo "FAILED"; echo "+++Can't create ${install_scriptdir}" >> .missingdirs.tmp)
1021 - @echo -n "Directory: ${install_builddir}..."
1022 - @(test -d "${install_builddir}" || \
1023 - mkdir -p "${install_builddir}" ) && \
1024 - echo "ok" || \
1025 - (echo "FAILED"; echo "+++Can't create ${install_builddir}" >> .missingdirs.tmp)
1026 @echo -n "Directory: ${install_bindir}..."
1027 @(test -d "${install_bindir}" || \
1028 mkdir -p "${install_bindir}" ) && \
1029 @@ -361,10 +344,6 @@
1030 cp -f ${src_scriptdir}/xsb${config_tag} \
1031 ${install_scriptdir}/xsb${config_tag}; \
1032 chmod 755 ${install_scriptdir}/* ${install_bindir}/* ; \
1033 - cp -f ${srcdir}/build/config.sub \
1034 - ${srcdir}/build/config.guess \
1035 - ${prefix}/build; \
1036 - chmod 755 ${prefix}/build/* ; \
1037 echo "Copying config..." ; \
1038 cp -f ${src_config_libdir}/xsb_configuration.* \
1039 ${install_config_libdir} ; \
1040 @@ -400,11 +379,6 @@
1041 cp -f ${src_cmplibdir}/*$(xsb_obj_extension) ${install_cmplibdir} ; \
1042 chmod 644 ${install_cmplibdir}/*$(xsb_obj_extension) ; \
1043 ./copysubdirs.sh ${src_cmplibdir} ${install_cmplibdir} ; \
1044 - echo "Copying packages..."; \
1045 - cp -f ${src_pkgdir}/*$(xsb_obj_extension) ${install_pkgdir}; \
1046 - cp -f ${src_pkgdir}/*.P ${install_pkgdir}; \
1047 - ./touch.sh ${install_pkgdir}/*$(xsb_obj_extension); \
1048 - ./copysubdirs.sh ${src_pkgdir} ${install_pkgdir} ; \
1049 echo "Copying etc..."; \
1050 cp -fr ${src_etcdir}/* ${install_etcdir}; \
1051 echo "Copying examples..."; \
1052 @@ -420,8 +394,8 @@
1053 @./pkg_config.sh $(install_scriptdir)/xsb$(config_tag) ; \
1054 chmod 644 $(install_config_libdir)/xsb_configuration$(xsb_obj_extension)
1055
1056 -remake_dot_O_files:
1057 - @cd $(srcdir); make XSB=$(src_scriptdir)/xsb$(config_tag)
1058 +remake_dot_O_files: gpp_exe
1059 + @cd $(srcdir); $(MAKE) XSB=$(src_scriptdir)/xsb$(config_tag)
1060
1061 remake_dot_O_files_force:
1062 @cd $(srcdir); make force XSB=$(src_scriptdir)/xsb$(config_tag)
1063
1064
1065
1066 --
1067 gentoo-commits@g.o mailing list