From 7d66b6413c979beecc082e70a7be8335b6f28bc6 Mon Sep 17 00:00:00 2001 From: Mattias Ellert Date: Aug 09 2009 09:10:41 +0000 Subject: - Patch globus_location function to allow unset GLOBUS_LOCATION - Put back config.guess file --- diff --git a/globus-common-usr.patch b/globus-common-usr.patch index 8f19166..d39cc98 100644 --- a/globus-common-usr.patch +++ b/globus-common-usr.patch @@ -1,6 +1,66 @@ +diff -ur globus_common-10.2.orig/library/globus_common_paths.c globus_common-10.2/library/globus_common_paths.c +--- globus_common-10.2.orig/library/globus_common_paths.c 2006-01-19 06:54:14.000000000 +0100 ++++ globus_common-10.2/library/globus_common_paths.c 2009-08-04 16:43:07.208220052 +0200 +@@ -111,8 +111,7 @@ + p = globus_libc_getenv(name); + if (!p || strlen(p)==0) + { +- globus_libc_sprintf(errmsg,_GCSL("Environment variable %s is not set"), name); +- return GLOBUS_COMMON_PATH_ERROR_INSTANCE(errmsg); ++ return GLOBUS_SUCCESS; + } + + *bufp = globus_libc_strdup(p); +@@ -199,17 +198,17 @@ + if (!deploy && (result=globus_location(&deploy))) + return result; + +- filename = globus_malloc(strlen(deploy) + ++ filename = globus_malloc( ( deploy ? strlen(deploy) : 0 ) + + strlen(file_location) + 1 + 1 ); + if (!filename) + return GLOBUS_COMMON_PATH_ERROR_INSTANCE(_GCSL("malloc error")); + + globus_libc_sprintf(filename, + "%s/%s", +- deploy, ++ deploy ? deploy : "", + file_location); + +- if (!deploy_path) ++ if (!deploy_path && deploy) + globus_free(deploy); + + fp = fopen(filename,"r"); +diff -ur globus_common-10.2.orig/library/globus_extension.c globus_common-10.2/library/globus_extension.c +--- globus_common-10.2.orig/library/globus_extension.c 2008-03-12 20:01:05.000000000 +0100 ++++ globus_common-10.2/library/globus_extension.c 2009-08-03 19:57:22.077217655 +0200 +@@ -195,14 +195,17 @@ + + if(globus_location(&tmp) == GLOBUS_SUCCESS) + { ++ if(tmp) ++ { + #if defined(TARGET_ARCH_WIN32) +- globus_l_globus_location = +- globus_common_create_string("%s\\lib", tmp); ++ globus_l_globus_location = ++ globus_common_create_string("%s\\lib", tmp); + #else +- globus_l_globus_location = +- globus_common_create_string("%s/lib", tmp); ++ globus_l_globus_location = ++ globus_common_create_string("%s/lib", tmp); + #endif +- globus_free(tmp); ++ globus_free(tmp); ++ } + } + + initialized = GLOBUS_TRUE; diff -ur globus_common-10.2.orig/Makefile.am globus_common-10.2/Makefile.am --- globus_common-10.2.orig/Makefile.am 2004-10-11 14:53:32.000000000 +0200 -+++ globus_common-10.2/Makefile.am 2008-10-13 00:01:24.000000000 +0200 ++++ globus_common-10.2/Makefile.am 2009-08-03 12:31:55.267481653 +0200 @@ -9,7 +9,7 @@ config \ doxygen @@ -12,7 +72,7 @@ diff -ur globus_common-10.2.orig/Makefile.am globus_common-10.2/Makefile.am EXTRA_DIST = \ diff -ur globus_common-10.2.orig/programs/globus-sh-exec.in globus_common-10.2/programs/globus-sh-exec.in --- globus_common-10.2.orig/programs/globus-sh-exec.in 2006-01-19 06:54:19.000000000 +0100 -+++ globus_common-10.2/programs/globus-sh-exec.in 2008-10-13 00:01:24.000000000 +0200 ++++ globus_common-10.2/programs/globus-sh-exec.in 2009-08-03 12:31:55.268482825 +0200 @@ -17,7 +17,11 @@ # @@ -28,7 +88,7 @@ diff -ur globus_common-10.2.orig/programs/globus-sh-exec.in globus_common-10.2/p # This was done by the script initializer before V2.0 diff -ur globus_common-10.2.orig/programs/globus-version.in globus_common-10.2/programs/globus-version.in --- globus_common-10.2.orig/programs/globus-version.in 2008-09-29 23:20:05.000000000 +0200 -+++ globus_common-10.2/programs/globus-version.in 2008-10-13 00:01:24.000000000 +0200 ++++ globus_common-10.2/programs/globus-version.in 2009-08-03 12:31:55.269484149 +0200 @@ -43,7 +43,11 @@ usage() @@ -44,7 +104,7 @@ diff -ur globus_common-10.2.orig/programs/globus-version.in globus_common-10.2/p ${GLOBUS_SH_CAT-cat} 1>&2 < - 10.2-7 +- Patch globus_location function to allow unset GLOBUS_LOCATION +- Put back config.guess file + * Thu Jul 23 2009 Mattias Ellert - 10.2-6 - Add instruction set architecture (isa) tags - Make doc subpackage noarch diff --git a/import.log b/import.log index 932489f..c23b85f 100644 --- a/import.log +++ b/import.log @@ -3,3 +3,4 @@ globus-common-10_2-2_fc9:F-11:globus-common-10.2-2.fc9.src.rpm:1240005358 globus-common-10_2-3_fc9:F-11:globus-common-10.2-3.fc9.src.rpm:1240329014 globus-common-10_2-4_fc9:F-11:globus-common-10.2-4.fc9.src.rpm:1240864567 globus-common-10_2-5_fc9:F-11:globus-common-10.2-5.fc9.src.rpm:1245080209 +globus-common-10_2-7_fc11:F-11:globus-common-10.2-7.fc11.src.rpm:1249809012