There seem to be a lot of loose ends left hanging when a sage directory is moved. For example, I usually compile Sage on a ramdisk, and then move it to my home directory. Here is a list of places where the ramdisk path still appears in the $SAGE_ROOT/local/bin directory:

gr...@tiny:~/sage/local/bin% grep -ri "/Volumes/ramdisk" *
Binary file ESingular matches
Binary file LLL matches
Binary file QuadraticSieve matches
R:R_HOME_DIR=/Volumes/ramdisk/sage-4.4.2/local/lib/R
R:if test "${R_HOME_DIR}" = "/Volumes/ramdisk/sage-4.4.2/local/lib/R"; then
R: if [ -x "/Volumes/ramdisk/sage-4.4.2/local/${libnn}/R/bin/exec/R" ]; then
R:        R_HOME_DIR="/Volumes/ramdisk/sage-4.4.2/local/${libnn}/R"
R: elif [ -x "/Volumes/ramdisk/sage-4.4.2/local/${libnn_fallback}/R/bin/exec/R" ]; then
R:        R_HOME_DIR="/Volumes/ramdisk/sage-4.4.2/local/${libnn_fallback}/R"
R:R_SHARE_DIR=/Volumes/ramdisk/sage-4.4.2/local/lib/R/share
R:R_INCLUDE_DIR=/Volumes/ramdisk/sage-4.4.2/local/lib/R/include
R:R_DOC_DIR=/Volumes/ramdisk/sage-4.4.2/local/lib/R/doc
Binary file Rscript matches
Binary file Singular-3-1-0 matches
Binary file TSingular matches
Binary file adjacency matches
Binary file adjacency_gmp matches
Binary file allfaces matches
Binary file allfaces_gmp matches
Binary file allisog matches
Binary file annotate matches
Binary file cdd_both_reps matches
Binary file cdd_both_reps_gmp matches
Binary file certtool matches
Binary file change_cost matches
Binary file class.x matches
Binary file conductor matches
Binary file cu2 matches
Binary file cubex matches
Binary file cws.x matches
Binary file dumpsexp matches
Binary file ecl matches
ecl-config: echo "-Ddarwin @DEBUG_CFLAGS@ -I/Volumes/ramdisk/sage-4.4.2/local/include/" ecl-config: echo "@LDRPATH@ -L/Volumes/ramdisk/sage-4.4.2/local/lib/ $LDFLAGS -L/Volumes/ramdisk/sage-4.4.2/local/lib -lffi -lm "
Binary file ecm matches
Binary file findinf matches
Binary file fourier matches
Binary file fourier_gmp matches
Binary file fplll matches
Binary file fplll_micro matches
Binary file fplll_verbose matches
freetype-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
freetype-config: major=`grep define /Volumes/ramdisk/sage-4.4.2/local/include/freetype2/freetype/freetype.h \ freetype-config: minor=`grep define /Volumes/ramdisk/sage-4.4.2/local/include/freetype2/freetype/freetype.h \ freetype-config: patch=`grep define /Volumes/ramdisk/sage-4.4.2/local/include/freetype2/freetype/freetype.h \
Binary file gd2copypal matches
Binary file gd2togif matches
Binary file gd2topng matches
Binary file gdcmpgif matches
gdlib-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
gdlib-config: echo -L/Volumes/ramdisk/sage-4.4.2/local/lib -L/Volumes/ramdisk/sage-4.4.2/local/lib gdlib-config: echo "ldflags: -L/Volumes/ramdisk/sage-4.4.2/local/lib -L/Volumes/ramdisk/sage-4.4.2/local/lib "
Binary file gdparttopng matches
Binary file gdtopng matches
Binary file gen_test matches
Binary file generate matches
Binary file genus2reduction matches
Binary file gfan matches
Binary file gfan_buchberger matches
Binary file gfan_doesidealcontain matches
Binary file gfan_fancommonrefinement matches
Binary file gfan_fanlink matches
Binary file gfan_fanproduct matches
Binary file gfan_groebnercone matches
Binary file gfan_homogeneityspace matches
Binary file gfan_homogenize matches
Binary file gfan_initialforms matches
Binary file gfan_interactive matches
Binary file gfan_ismarkedgroebnerbasis matches
Binary file gfan_krulldimension matches
Binary file gfan_latticeideal matches
Binary file gfan_leadingterms matches
Binary file gfan_markpolynomialset matches
Binary file gfan_minkowskisum matches
Binary file gfan_minors matches
Binary file gfan_polynomialsetunion matches
Binary file gfan_render matches
Binary file gfan_renderstaircase matches
Binary file gfan_saturation matches
Binary file gfan_secondaryfan matches
Binary file gfan_stats matches
Binary file gfan_substitute matches
Binary file gfan_tolatex matches
Binary file gfan_topolyhedralfan matches
Binary file gfan_tropicalbasis matches
Binary file gfan_tropicalbruteforce matches
Binary file gfan_tropicalevaluation matches
Binary file gfan_tropicalfunction matches
Binary file gfan_tropicalhypersurface matches
Binary file gfan_tropicalintersection matches
Binary file gfan_tropicallifting matches
Binary file gfan_tropicallinearspace matches
Binary file gfan_tropicalmultiplicity matches
Binary file gfan_tropicalrank matches
Binary file gfan_tropicalstartingcone matches
Binary file gfan_tropicaltraverse matches
Binary file gfan_tropicalweildivisor matches
ghmm-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
Binary file giftogd2 matches
givaro-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
givaro-config: echo -I${includedir} -I/Volumes/ramdisk/sage-4.4.2/local//include givaro-config: echo -L${libdir} -lgivaro -L/Volumes/ramdisk/sage-4.4.2/local//lib -lgmp
givaro-makefile:prefix=/Volumes/ramdisk/sage-4.4.2/local
givaro-makefile:OPTFLAGS = -I/Volumes/ramdisk/sage-4.4.2/local//include -fPIC -I"/Volumes/ramdisk/sage-4.4.2/local/include"
givaro-makefile:GMP_CFLAGS = -I/Volumes/ramdisk/sage-4.4.2/local//include
givaro-makefile:GMP_LIBS   = -L/Volumes/ramdisk/sage-4.4.2/local//lib -lgmp
Binary file gnutls-cli matches
Binary file gnutls-cli-debug matches
Binary file gnutls-serv matches
Binary file gp matches
Binary file gpg-error matches
gpg-error-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
gphelp:$datadir= "/Volumes/ramdisk/sage-4.4.2/local/share/pari";
gsl-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
Binary file gsl-histogram matches
Binary file gsl-randist matches
Binary file hmac256 matches
Binary file indep matches
Binary file lcalc matches
Binary file lcdd matches
Binary file lcdd_gmp matches
libgcrypt-config:prefix="/Volumes/ramdisk/sage-4.4.2/local"
libgcrypt-config:gpg_error_libs="-L/Volumes/ramdisk/sage-4.4.2/local/lib -lgpg-error"
libgcrypt-config:gpg_error_cflags="-I/Volumes/ramdisk/sage-4.4.2/local/include"
libgnutls-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
libgnutls-config:gnutls_libs="-L${exec_prefix}/lib -lgnutls -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgcrypt -lgpg-error " libgnutls-config:gnutls_cflags="-I/Volumes/ramdisk/sage-4.4.2/local/include -I${prefix}/include"
libgnutls-extra-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
libgnutls-extra-config:gnutls_libs="-L${exec_prefix}/lib -lgnutls-extra -L/Volumes/ramdisk/sage-4.4.2/local/lib -lopencdk -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgcrypt -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgpg-error -L/Volumes/ramdisk/sage-4.4.2/local/lib -lz -R/Volumes/ramdisk/sage-4.4.2/local/lib -L${exec_prefix}/lib -lgnutls -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgcrypt -lgpg-error " libgnutls-extra-config:gnutls_cflags="-I/Volumes/ramdisk/sage-4.4.2/local/include -I${prefix}/include"
Binary file libparse matches
libpng-config:prefix="/Volumes/ramdisk/sage-4.4.2/local"
libpng12-config:prefix="/Volumes/ramdisk/sage-4.4.2/local"
linbox-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
linbox-config: echo -I${includedir} -I/Volumes/ramdisk/sage-4.4.2/local/include -I/Volumes/ramdisk/sage-4.4.2/local/include -I/Volumes/ramdisk/sage-4.4.2/local/include linbox-config: echo -L${libdir} -llinbox -L/Volumes/ramdisk/sage-4.4.2/local/lib -lntl -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgivaro -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgmpxx -lgmp /usr/lib/libcblas.dylib
Binary file llldiff matches
maxima:  prefix=`unixize "/Volumes/ramdisk/sage-4.4.2/local"`
maxima: top_srcdir=`unixize "/Volumes/ramdisk/sage-4.4.2/spkg/build/maxima-5.20.1.p0/src"`
Binary file mcube matches
Binary file mwrank matches
Binary file nef.x matches
opencdk-config:prefix=/Volumes/ramdisk/sage-4.4.2/local
opencdk-config:opencdk_libs="-L${exec_prefix}/lib -lopencdk -L/Volumes/ramdisk/sage-4.4.2/local/lib -lgcrypt -lgpg-error -lz" opencdk-config:opencdk_cflags="-I/Volumes/ramdisk/sage-4.4.2/local/include -I${prefix}/include"
Binary file optimal matches
Binary file pngtogd matches
Binary file pngtogd2 matches
Binary file poly.x matches
Binary file projection matches
Binary file projection_gmp matches
Binary file psktool matches
Binary file python matches
Binary file python2.6 matches
Binary file ratpoint matches
Binary file redcheck matches
Binary file redcheck_gmp matches
rmaxima: MAXIMA_SHAREDIR=/Volumes/ramdisk/sage-4.4.2/local/share/maxima/5.20.1/share rmaxima: MAXIMA_SHAREDIR=/Volumes/ramdisk/sage-4.4.2/spkg/build/maxima-5.20.1.p0/src/share
Binary file sage.bin matches
Binary file sage_pari matches
Binary file scdd matches
Binary file scdd_gmp matches
Binary file solve_IP matches
Binary file sqlite3 matches
Binary file srptool matches
Binary file tachyon matches
Binary file tate matches
Binary file tconic matches
Binary file testcdd1 matches
Binary file testcdd1_gmp matches
Binary file testcdd2 matches
Binary file testcdd2_gmp matches
Binary file testlp1 matches
Binary file testlp1_gmp matches
Binary file testlp2 matches
Binary file testlp2_gmp matches
Binary file testlp3 matches
Binary file testlp3_gmp matches
Binary file testshoot matches
Binary file testshoot_gmp matches
Binary file toric_ideal matches
Binary file torsion matches
Binary file twist matches
Binary file webpng matches
xmaxima:set autoconf(prefix) "/Volumes/ramdisk/sage-4.4.2/local"
xmaxima:set autoconf(exec_prefix) "/Volumes/ramdisk/sage-4.4.2/local"
xmaxima:set autoconf(libdir) "/Volumes/ramdisk/sage-4.4.2/local/lib"
xmaxima:set autoconf(libexecdir) "/Volumes/ramdisk/sage-4.4.2/local/libexec"
xmaxima:set autoconf(datadir) "/Volumes/ramdisk/sage-4.4.2/local/share"
xmaxima:set autoconf(infodir) "/Volumes/ramdisk/sage-4.4.2/local/info"



That is a *lot* of loose ends left over from the build directory. I also notice that when installing spkgs (for example, matplotlib), there are lots of warnings about nonexistent include or library directories existing on the ramdisk in the original build directory.

It seems common knowledge in Sage that you can compile Sage and move the directory around to your heart's content. Maybe we should put a warning somewhere cautioning people that there are lot of packages included in Sage, and Sage might not automatically change the right directory information for every package?

This seems like a goldmine for possible subtle bugs...

Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to