1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764
|
diff -ur gpt.orig/packaging_tools/configure gpt/packaging_tools/configure
--- gpt.orig/packaging_tools/configure 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/configure 2008-12-15 08:54:57.000000000 +0100
@@ -273,7 +273,7 @@
PACKAGE_BUGREPORT=''
ac_unique_file="Makefile.am"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PERL POD2MAN perlmoduledir TAR GUNZIP GZIP LN_S GPT_LOCATION ENABLE_COMPAT_TRUE ENABLE_COMPAT_FALSE LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PERL POD2MAN perlmoduledir TAR GUNZIP GZIP LN_S ENABLE_COMPAT_TRUE ENABLE_COMPAT_FALSE LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
@@ -1880,17 +1880,7 @@
# checking for the GPT_LOCATION
-
-if test "x$GPT_LOCATION" = "x"; then
- # checking for the GLOBUS_LOCATION
-
- if test "x$GLOBUS_LOCATION" = "x"; then
- echo "ERROR Please specify GLOBUS_LOCATION or GPT_LOCATION" >&2
- exit 1
- else
- GPT_LOCATION=$GLOBUS_LOCATION
- fi
-fi
+ac_default_prefix=${GPT_LOCATION:-$ac_default_prefix}
for ac_prog in gtar tar
do
@@ -2036,8 +2026,6 @@
fi
-
-
# Check whether --enable-compat was given.
if test "${enable_compat+set}" = set; then
enableval=$enable_compat;
@@ -2742,7 +2730,6 @@
s,@GUNZIP@,$GUNZIP,;t t
s,@GZIP@,$GZIP,;t t
s,@LN_S@,$LN_S,;t t
-s,@GPT_LOCATION@,$GPT_LOCATION,;t t
s,@ENABLE_COMPAT_TRUE@,$ENABLE_COMPAT_TRUE,;t t
s,@ENABLE_COMPAT_FALSE@,$ENABLE_COMPAT_FALSE,;t t
s,@LIBOBJS@,$LIBOBJS,;t t
diff -ur gpt.orig/packaging_tools/configure.ac gpt/packaging_tools/configure.ac
--- gpt.orig/packaging_tools/configure.ac 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/configure.ac 2008-12-15 08:54:57.000000000 +0100
@@ -66,25 +66,13 @@
# checking for the GPT_LOCATION
-
-if test "x$GPT_LOCATION" = "x"; then
- # checking for the GLOBUS_LOCATION
-
- if test "x$GLOBUS_LOCATION" = "x"; then
- echo "ERROR Please specify GLOBUS_LOCATION or GPT_LOCATION" >&2
- exit 1
- else
- GPT_LOCATION=$GLOBUS_LOCATION
- fi
-fi
+ac_default_prefix=${GPT_LOCATION:-$ac_default_prefix}
AC_PATH_PROGS(TAR, gtar tar)
AC_PATH_PROGS(GUNZIP, gunzip)
AC_PATH_PROGS(GZIP, gzip)
AC_PROG_LN_S
-AC_SUBST(GPT_LOCATION)
-
AC_ARG_ENABLE(compat, AC_HELP_STRING([--disable-compat], [disable backward compatibility symlinks]),[],enable_compat="yes")
AC_MSG_NOTICE([Enable backward compatibility symlinks: $enable_compat])
AM_CONDITIONAL([ENABLE_COMPAT],[test "x$enable_compat" = "xyes"])
diff -ur gpt.orig/packaging_tools/etc/bootstrap.frg gpt/packaging_tools/etc/bootstrap.frg
--- gpt.orig/packaging_tools/etc/bootstrap.frg 2006-01-11 17:10:11.000000000 +0100
+++ gpt/packaging_tools/etc/bootstrap.frg 2008-12-15 08:54:57.000000000 +0100
@@ -1,17 +1,12 @@
#! /bin/sh
-# checking for the GLOBUS_LOCATION
-
-if test "x$GLOBUS_LOCATION" = "x"; then
- echo "ERROR Please specify GLOBUS_LOCATION" >&2
- exit 1
-fi
-
-if [ ! -f ${GLOBUS_LOCATION}/libexec/globus-bootstrap.sh ]; then
- echo "ERROR: Unable to locate \${GLOBUS_LOCATION}/libexec/globus-bootstrap.sh"
+if [ -f ${GLOBUS_LOCATION:-/usr}/share/globus/globus-bootstrap.sh ]; then
+ . ${GLOBUS_LOCATION:-/usr}/share/globus/globus-bootstrap.sh
+elif [ -f ${GLOBUS_LOCATION:-/usr}/libexec/globus-bootstrap.sh ]; then
+ . ${GLOBUS_LOCATION:-/usr}/libexec/globus-bootstrap.sh
+else
+ echo "ERROR: Unable to locate globus-bootstrap.sh"
echo " Please ensure that you have installed the globus-core package and"
echo " that GLOBUS_LOCATION is set to the proper directory"
exit
fi
-
-. ${GLOBUS_LOCATION}/libexec/globus-bootstrap.sh
diff -ur gpt.orig/packaging_tools/etc/gpt_autoconf_macros.m4 gpt/packaging_tools/etc/gpt_autoconf_macros.m4
--- gpt.orig/packaging_tools/etc/gpt_autoconf_macros.m4 2006-01-11 17:10:11.000000000 +0100
+++ gpt/packaging_tools/etc/gpt_autoconf_macros.m4 2008-12-15 08:54:57.000000000 +0100
@@ -1,8 +1,7 @@
dnl GPT_INIT()
AC_DEFUN([GPT_INIT], [
if test "x$GPT_LOCATION" = "x"; then
- echo "ERROR Please specify GPT_LOCATION" >&2
- exit 1
+ GPT_LOCATION=/usr
fi
AC_SUBST(GPT_LOCATION)
@@ -73,9 +72,9 @@
. ./gpt_build_temp.sh
rm ./gpt_build_temp.sh
GPT_CFLAGS="$GPT_CONFIG_CFLAGS"
- GPT_INCLUDES="-I$GLOBUS_LOCATION/include/$GLOBUS_FLAVOR_NAME $GPT_CONFIG_INCLUDES"
+ GPT_INCLUDES="$GPT_CONFIG_INCLUDES"
GPT_LIBS="$GPT_CONFIG_PKG_LIBS $GPT_CONFIG_LIBS"
- GPT_LDFLAGS="$GPT_CONFIG_STATIC_LINKLINE -L$GLOBUS_LOCATION/lib $GPT_LDFLAGS"
+ GPT_LDFLAGS="$GPT_CONFIG_STATIC_LINKLINE $GPT_LDFLAGS"
GPT_PGM_LINKS="$GPT_CONFIG_PGM_LINKS $GPT_CONFIG_LIBS"
GPT_LIB_LINKS="$GPT_CONFIG_LIB_LINKS $GPT_CONFIG_LIBS"
diff -ur gpt.orig/packaging_tools/etc/gpt-bootstrap.sh gpt/packaging_tools/etc/gpt-bootstrap.sh
--- gpt.orig/packaging_tools/etc/gpt-bootstrap.sh 2008-12-15 08:43:01.000000000 +0100
+++ gpt/packaging_tools/etc/gpt-bootstrap.sh 2008-12-15 09:02:45.000000000 +0100
@@ -9,7 +9,7 @@
# Removed check for autotools. CAB 01/08
# Always include globus macros
-config="$aclocal_includes -I $GLOBUS_LOCATION/share/globus/aclocal"
+config="$aclocal_includes -I ${GLOBUS_LOCATION:-/usr}/share/globus/aclocal"
# test for local macros
if test -d "./config"; then
@@ -17,18 +17,12 @@
fi
# test to see if GPT macros are in a seperate location
-if test ! -f "$GLOBUS_LOCATION/share/globus/aclocal/gpt_autoconf_macros.m4"; then
- if test "x$GPT_LOCATION" = "x"; then
- echo "ERROR Globus Packaging Tools not found" >&2
- echo "ERROR either set GPT_LOCATION or install them in $GLOBUS_LOCATION" >&2
- exit 1
- else
- config="$config -I $GPT_LOCATION/share/globus/aclocal"
- fi
+if test ! -f "${GLOBUS_LOCATION:-/usr}/share/globus/aclocal/gpt_autoconf_macros.m4"; then
+ config="$config -I ${GPT_LOCATION:-/usr}/share/globus/aclocal"
fi
if test "x$GPT_LOCATION" = "x"; then
- GPT_LOCATION=$GLOBUS_LOCATION
+ GPT_LOCATION=/usr
fi
if test ! -h pkgdata/Makefile.am ; then
diff -ur gpt.orig/packaging_tools/Makefile.am gpt/packaging_tools/Makefile.am
--- gpt.orig/packaging_tools/Makefile.am 2008-12-15 08:38:27.000000000 +0100
+++ gpt/packaging_tools/Makefile.am 2008-12-15 08:54:57.000000000 +0100
@@ -1,5 +1,3 @@
-prefix=$(GPT_LOCATION)
-
sbin_SCRIPTS = \
perl/scripts/gpt-build \
perl/scripts/gpt_build_config \
diff -ur gpt.orig/packaging_tools/Makefile.in gpt/packaging_tools/Makefile.in
--- gpt.orig/packaging_tools/Makefile.in 2008-12-15 08:37:36.000000000 +0100
+++ gpt/packaging_tools/Makefile.in 2008-12-15 08:54:57.000000000 +0100
@@ -51,7 +51,6 @@
ECHO_T = @ECHO_T@
ENABLE_COMPAT_FALSE = @ENABLE_COMPAT_FALSE@
ENABLE_COMPAT_TRUE = @ENABLE_COMPAT_TRUE@
-GPT_LOCATION = @GPT_LOCATION@
GUNZIP = @GUNZIP@
GZIP = @GZIP@
INSTALL_DATA = @INSTALL_DATA@
@@ -101,7 +100,7 @@
mandir = @mandir@
oldincludedir = @oldincludedir@
perlmoduledir = @perlmoduledir@
-prefix = $(GPT_LOCATION)
+prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
@@ -111,7 +110,6 @@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
-
sbin_SCRIPTS = \
perl/scripts/gpt-build \
perl/scripts/gpt_build_config \
diff -ur gpt.orig/packaging_tools/perl/GPT/BuildLine.pm gpt/packaging_tools/perl/GPT/BuildLine.pm
--- gpt.orig/packaging_tools/perl/GPT/BuildLine.pm 2006-01-11 17:10:11.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/BuildLine.pm 2008-12-15 08:54:57.000000000 +0100
@@ -33,7 +33,9 @@
if ($libname =~ m!$flavor! || $libname =~ m!GLOBUS_FLAVOR_NAME!)
{
- $libname =~ s/\-l/$ENV{GLOBUS_LOCATION}\/lib\/lib/;
+ my $globus_path = defined $ENV{GLOBUS_LOCATION} ?
+ $ENV{GLOBUS_LOCATION} : "/usr";
+ $libname =~ s/\-l/$globus_path\/lib\/lib/;
$libname = $libname.".a";
}
$libslist .= $libname;
diff -ur gpt.orig/packaging_tools/perl/GPT/Locations.pm gpt/packaging_tools/perl/GPT/Locations.pm
--- gpt.orig/packaging_tools/perl/GPT/Locations.pm 2008-12-15 08:40:31.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/Locations.pm 2008-12-15 09:01:33.000000000 +0100
@@ -66,6 +66,7 @@
sub _init_gptdir {
my ($me) =@_;
my $gptdir = $ENV{'GPT_LOCATION'};
+ $gptdir = "/usr" if ( !defined $gptdir );
$me->{'gpt_etcdir'} = "$gptdir/share/globus";
$me->{'gpt_amdir'} = "$gptdir/share/globus/amdir";
$me->{'gpt_aclocaldir'} = "$gptdir/share/globus/aclocal";
@@ -134,7 +135,7 @@
my ($me) =@_;
my $gpath = $ENV{GPT_INSTALL_LOCATION} ? $ENV{GPT_INSTALL_LOCATION}
- : $ENV{GLOBUS_LOCATION};
+ : $ENV{GLOBUS_LOCATION} ? $ENV{GLOBUS_LOCATION} : "/usr";
$me->{'installdir'} = defined $me->{'installdir'} ?
diff -ur gpt.orig/packaging_tools/perl/GPT/PackageFilelist/flat1.pm gpt/packaging_tools/perl/GPT/PackageFilelist/flat1.pm
--- gpt.orig/packaging_tools/perl/GPT/PackageFilelist/flat1.pm 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/PackageFilelist/flat1.pm 2008-12-15 08:54:57.000000000 +0100
@@ -69,7 +69,9 @@
# handle arguments
#
- my %args = (installdir => $ENV{'GLOBUS_LOCATION'}, @_);
+ my $globus_path = defined $ENV{'GLOBUS_LOCATION'} ?
+ $ENV{'GLOBUS_LOCATION'} : "/usr";
+ my %args = (installdir => $globus_path, @_);
my $installdir = $args{'installdir'};
my $packageList = $args{'packageList'};
diff -ur gpt.orig/packaging_tools/perl/GPT/PackageFilelist/xml1.pm gpt/packaging_tools/perl/GPT/PackageFilelist/xml1.pm
--- gpt.orig/packaging_tools/perl/GPT/PackageFilelist/xml1.pm 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/PackageFilelist/xml1.pm 2008-12-15 08:54:57.000000000 +0100
@@ -69,7 +69,9 @@
# handle arguments
#
- my %args = (installdir => $ENV{'GLOBUS_LOCATION'}, @_);
+ my $globus_path = defined $ENV{'GLOBUS_LOCATION'} ?
+ $ENV{'GLOBUS_LOCATION'} : "/usr";
+ my %args = (installdir => $globus_path, @_);
my $installdir = $args{'installdir'};
my $packageList = $args{'packageList'};
diff -ur gpt.orig/packaging_tools/perl/GPT/PkgMngmt/SetupBuildFlavors.pm gpt/packaging_tools/perl/GPT/PkgMngmt/SetupBuildFlavors.pm
--- gpt.orig/packaging_tools/perl/GPT/PkgMngmt/SetupBuildFlavors.pm 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/PkgMngmt/SetupBuildFlavors.pm 2008-12-15 08:54:57.000000000 +0100
@@ -24,8 +24,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/GPT/Setup.pm gpt/packaging_tools/perl/GPT/Setup.pm
--- gpt.orig/packaging_tools/perl/GPT/Setup.pm 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/Setup.pm 2008-12-15 08:54:57.000000000 +0100
@@ -11,6 +11,7 @@
use Config;
# @INC fiddling
my $gpt_path = $ENV{GPT_LOCATION};
+$gpt_path = "/usr" if ( !defined $gpt_path );
@INC = ("$gpt_path/lib/perl", "$gpt_path/lib/perl/$Config{'archname'}", @INC);
require Grid::GPT::Installation;
diff -ur gpt.orig/packaging_tools/perl/GPT/V1/BuildFlavors.pm gpt/packaging_tools/perl/GPT/V1/BuildFlavors.pm
--- gpt.orig/packaging_tools/perl/GPT/V1/BuildFlavors.pm 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/V1/BuildFlavors.pm 2008-12-15 08:54:57.000000000 +0100
@@ -30,7 +30,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
my $confdir = "$gpath/share/globus";
diff -ur gpt.orig/packaging_tools/perl/GPT/V1/Package.pm gpt/packaging_tools/perl/GPT/V1/Package.pm
--- gpt.orig/packaging_tools/perl/GPT/V1/Package.pm 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/GPT/V1/Package.pm 2008-12-15 09:00:43.000000000 +0100
@@ -84,6 +84,7 @@
{
my ($self, $name, $f, $t)=@_;
my $globus=$ENV{GLOBUS_LOCATION};
+ $globus="/usr" if (!defined $globus);
my $path="$globus/share/globus/packages/$name/pkg_data_".$f."_$t.gpt";
$self->read_metadata_file($path);
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-build gpt/packaging_tools/perl/scripts/gpt-build
--- gpt.orig/packaging_tools/perl/scripts/gpt-build 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-build 2008-12-15 08:54:57.000000000 +0100
@@ -11,10 +11,6 @@
# programs.
#
-my $gp = $ENV{GPT_LOCATION};
-my @p = $ENV{PATH};
-my $pi = $ENV{PATH};
-
if ( ! ( defined eval "require 5.005" ) )
{
die "GPT requires at least Perl version 5.005";
@@ -24,7 +20,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_build_config gpt/packaging_tools/perl/scripts/gpt_build_config
--- gpt.orig/packaging_tools/perl/scripts/gpt_build_config 2006-01-11 17:56:50.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_build_config 2008-12-15 08:54:57.000000000 +0100
@@ -19,8 +19,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-bundle gpt/packaging_tools/perl/scripts/gpt-bundle
--- gpt.orig/packaging_tools/perl/scripts/gpt-bundle 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-bundle 2008-12-15 08:54:57.000000000 +0100
@@ -17,7 +17,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-config gpt/packaging_tools/perl/scripts/gpt-config
--- gpt.orig/packaging_tools/perl/scripts/gpt-config 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-config 2008-12-15 08:54:57.000000000 +0100
@@ -48,7 +48,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-convert-bundle-old2new gpt/packaging_tools/perl/scripts/gpt-convert-bundle-old2new
--- gpt.orig/packaging_tools/perl/scripts/gpt-convert-bundle-old2new 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-convert-bundle-old2new 2008-12-15 08:54:57.000000000 +0100
@@ -20,7 +20,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_convert_xml gpt/packaging_tools/perl/scripts/gpt_convert_xml
--- gpt.orig/packaging_tools/perl/scripts/gpt_convert_xml 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_convert_xml 2008-12-15 08:54:57.000000000 +0100
@@ -58,7 +58,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_create_automake_rules gpt/packaging_tools/perl/scripts/gpt_create_automake_rules
--- gpt.orig/packaging_tools/perl/scripts/gpt_create_automake_rules 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_create_automake_rules 2008-12-15 08:54:57.000000000 +0100
@@ -20,8 +20,7 @@
my $gpath = $ENV{GPT_LOCATION};
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
{
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-deps gpt/packaging_tools/perl/scripts/gpt-deps
--- gpt.orig/packaging_tools/perl/scripts/gpt-deps 2008-12-15 08:46:56.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-deps 2008-12-15 08:54:57.000000000 +0100
@@ -18,6 +18,16 @@
my $gpt_path = $ENV{GPT_LOCATION};
my $globus_path = $ENV{GLOBUS_LOCATION};
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION or GLOBUS_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_extract_data gpt/packaging_tools/perl/scripts/gpt_extract_data
--- gpt.orig/packaging_tools/perl/scripts/gpt_extract_data 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_extract_data 2008-12-15 08:54:57.000000000 +0100
@@ -18,8 +18,7 @@
my $gpath = $ENV{GPT_LOCATION};
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
{
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-filelist-convert gpt/packaging_tools/perl/scripts/gpt-filelist-convert
--- gpt.orig/packaging_tools/perl/scripts/gpt-filelist-convert 2008-12-15 08:46:17.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-filelist-convert 2008-12-15 08:54:57.000000000 +0100
@@ -19,6 +19,16 @@
my $globus_path = $ENV{GLOBUS_LOCATION};
my $gpath;
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION or GLOBUS_LOCATION needs to be set before running this script");
@@ -103,7 +113,7 @@
{
my $fl = new Grid::GPT::PackageFilelist(
context => "installdir",
- contextData => { dir => $ENV{'GLOBUS_LOCATION'}, },
+ contextData => { dir => $globus_path, },
pkgnode => $pkg,
convert => 1,
);
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-filelist-copy gpt/packaging_tools/perl/scripts/gpt-filelist-copy
--- gpt.orig/packaging_tools/perl/scripts/gpt-filelist-copy 2008-12-15 08:47:24.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-filelist-copy 2008-12-15 08:54:57.000000000 +0100
@@ -19,6 +19,16 @@
my $globus_path = $ENV{GLOBUS_LOCATION};
my $gpath;
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION or GLOBUS_LOCATION needs to be set before running this script");
@@ -109,7 +119,7 @@
{
my $fl = new Grid::GPT::PackageFilelist(
context => "installdir",
- contextData => { dir => $ENV{'GLOBUS_LOCATION'}, },
+ contextData => { dir => $globus_path, },
pkgnode => $pkg,
convert => 0,
);
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-file-remove gpt/packaging_tools/perl/scripts/gpt-file-remove
--- gpt.orig/packaging_tools/perl/scripts/gpt-file-remove 2008-12-15 08:46:44.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-file-remove 2008-12-15 08:54:57.000000000 +0100
@@ -19,6 +19,16 @@
my $globus_path = $ENV{GLOBUS_LOCATION};
my $gpath;
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION or GLOBUS_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-flavor-configuration gpt/packaging_tools/perl/scripts/gpt-flavor-configuration
--- gpt.orig/packaging_tools/perl/scripts/gpt-flavor-configuration 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-flavor-configuration 2008-12-15 08:54:57.000000000 +0100
@@ -19,8 +19,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_generate_bin_pkg_data gpt/packaging_tools/perl/scripts/gpt_generate_bin_pkg_data
--- gpt.orig/packaging_tools/perl/scripts/gpt_generate_bin_pkg_data 2006-01-11 17:56:50.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_generate_bin_pkg_data 2008-12-15 08:54:57.000000000 +0100
@@ -18,8 +18,7 @@
my $gpath = $ENV{GPT_LOCATION};
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
{
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-install gpt/packaging_tools/perl/scripts/gpt-install
--- gpt.orig/packaging_tools/perl/scripts/gpt-install 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-install 2008-12-15 08:54:57.000000000 +0100
@@ -21,8 +21,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-link gpt/packaging_tools/perl/scripts/gpt-link
--- gpt.orig/packaging_tools/perl/scripts/gpt-link 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-link 2008-12-15 08:54:57.000000000 +0100
@@ -20,8 +20,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-md5 gpt/packaging_tools/perl/scripts/gpt-md5
--- gpt.orig/packaging_tools/perl/scripts/gpt-md5 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-md5 2008-12-15 08:54:57.000000000 +0100
@@ -18,7 +18,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-pkg gpt/packaging_tools/perl/scripts/gpt-pkg
--- gpt.orig/packaging_tools/perl/scripts/gpt-pkg 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-pkg 2008-12-15 08:54:57.000000000 +0100
@@ -20,8 +20,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-postinstall gpt/packaging_tools/perl/scripts/gpt-postinstall
--- gpt.orig/packaging_tools/perl/scripts/gpt-postinstall 2008-12-15 08:47:11.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-postinstall 2008-12-15 08:54:57.000000000 +0100
@@ -26,6 +26,16 @@
my $globus_path = $ENV{GLOBUS_LOCATION};
my $verbose;
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION and GLOBUS_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-query gpt/packaging_tools/perl/scripts/gpt-query
--- gpt.orig/packaging_tools/perl/scripts/gpt-query 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-query 2008-12-15 08:54:57.000000000 +0100
@@ -25,6 +25,16 @@
my $gpt_path = $ENV{GPT_LOCATION};
my $globus_path = $ENV{GLOBUS_LOCATION};
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_save_flavor gpt/packaging_tools/perl/scripts/gpt_save_flavor
--- gpt.orig/packaging_tools/perl/scripts/gpt_save_flavor 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_save_flavor 2008-12-15 08:54:57.000000000 +0100
@@ -18,8 +18,7 @@
my $gpath = $ENV{GPT_LOCATION};
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
{
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-setup gpt/packaging_tools/perl/scripts/gpt-setup
--- gpt.orig/packaging_tools/perl/scripts/gpt-setup 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-setup 2008-12-15 08:54:57.000000000 +0100
@@ -14,8 +14,7 @@
my $gpath = $ENV{GPT_LOCATION};
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
{
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_sort_filelist gpt/packaging_tools/perl/scripts/gpt_sort_filelist
--- gpt.orig/packaging_tools/perl/scripts/gpt_sort_filelist 2008-12-15 08:33:05.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_sort_filelist 2008-12-15 08:54:57.000000000 +0100
@@ -21,6 +21,16 @@
my $globus_path = $ENV{GLOBUS_LOCATION};
my $verbose = 0;
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-undefines gpt/packaging_tools/perl/scripts/gpt-undefines
--- gpt.orig/packaging_tools/perl/scripts/gpt-undefines 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-undefines 2008-12-15 08:54:57.000000000 +0100
@@ -20,8 +20,7 @@
my $gpath = $ENV{GPT_LOCATION};
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
{
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-uninstall gpt/packaging_tools/perl/scripts/gpt-uninstall
--- gpt.orig/packaging_tools/perl/scripts/gpt-uninstall 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-uninstall 2008-12-15 08:54:57.000000000 +0100
@@ -24,7 +24,7 @@
#
my $gpath = defined $ENV{GPT_LOCATION} ? $ENV{GPT_LOCATION}
- : $ENV{GLOBUS_LOCATION};
+ : "/usr";
if ( !defined($gpath))
{
die("GPT_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-update gpt/packaging_tools/perl/scripts/gpt-update
--- gpt.orig/packaging_tools/perl/scripts/gpt-update 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-update 2008-12-15 08:54:57.000000000 +0100
@@ -14,8 +14,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-verify gpt/packaging_tools/perl/scripts/gpt-verify
--- gpt.orig/packaging_tools/perl/scripts/gpt-verify 2008-12-15 08:46:30.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-verify 2008-12-15 08:54:57.000000000 +0100
@@ -27,6 +27,16 @@
my $globus_path = $ENV{GLOBUS_LOCATION};
my $verbose;
+if ( !defined($gpt_path) )
+{
+ $gpt_path = "/usr";
+}
+
+if ( !defined($globus_path) )
+{
+ $globus_path = "/usr";
+}
+
if ( !defined($gpt_path) && !defined($globus_path) )
{
die("GPT_LOCATION or GLOBUS_LOCATION needs to be set before running this script");
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt_version.in gpt/packaging_tools/perl/scripts/gpt_version.in
--- gpt.orig/packaging_tools/perl/scripts/gpt_version.in 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt_version.in 2008-12-15 08:54:57.000000000 +0100
@@ -23,7 +23,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
+ $gpath = "/usr";
}
if (!defined($gpath))
diff -ur gpt.orig/packaging_tools/perl/scripts/gpt-virtual-pkg gpt/packaging_tools/perl/scripts/gpt-virtual-pkg
--- gpt.orig/packaging_tools/perl/scripts/gpt-virtual-pkg 2006-01-11 17:10:12.000000000 +0100
+++ gpt/packaging_tools/perl/scripts/gpt-virtual-pkg 2008-12-15 08:54:57.000000000 +0100
@@ -20,8 +20,7 @@
if (!defined($gpath))
{
- $gpath = $ENV{GLOBUS_LOCATION};
-
+ $gpath = "/usr";
}
if (!defined($gpath))
|