On 2013-10-29 08:49-0000 Arjen Markus wrote: > Hi Alan, > >> -----Original Message----- >> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > > >>> >>> I think in order to avoid coding in package version dependencies where >>> none should exist, make sure your desired tcl package library >>> directories are all properly positioned in auto_path. E.g. on my Kubuntu >>> 12.04.3 >> box: >>> >>> $ tclsh8.4 >>> % puts $auto_path >>> /usr/share/tcltk/tcl8.4 /usr/lib /usr/local/lib/tcltk >>> /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk >>> >>> $ tclsh8.5 >>> % puts $auto_path >>> /usr/share/tcltk/tcl8.5 /usr/lib /usr/local/lib/tcltk >>> /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk >>> >>> That first entry enables it to find the right packages. >> > > The auto_path variable is computed from the environment variable TCLLIBPATH, > which is > accessed within Tcl code as $::env(TCLLIBPATH) (:: indicating the global > namespace). The > environment variable is only used at start-up. This provides the means to > control the > directories that are searched for packages, but if you want this to be > decided at build/install time, > then the C macro TCL_DIR may be more useful.
Hi Arjen: For your information here is the current directory layout of $prefix/lib, where $prefix is the overall install prefix used by build_projects for the "buildtool" category of packages which currently includes Tcl/Tk8.6.1, and version 4 of itcl..... lib lib/tcl8.6 lib/tcl8.6/opt0.4 lib/tcl8.6/msgs lib/tcl8.6/http1.0 lib/tcl8.6/encoding lib/tcl8 lib/tcl8/8.6 lib/tcl8/8.6/tdbc lib/tcl8/8.5 lib/tcl8/8.4 lib/tcl8/8.4/platform lib/tdbc1.0.0 lib/thread2.7.0 lib/tdbcmysql1.0.0 lib/sqlite3.8.0 lib/tdbcpostgres1.0.0 lib/tk8.6 lib/tk8.6/ttk lib/tk8.6/images lib/tk8.6/msgs lib/tk8.6/demos lib/tk8.6/demos/images lib/iwidgets4.1_cp lib/pkgconfig lib/tdbcodbc1.0.0 lib/itcl4.0.0 lib/itk4.0.0 I have no clue what is contained in lib/tcl8/8.5 and lib/tcl8/8.4, but build_projects does not build or install earlier versions of Tcl so suspect they are installed by Tcl-8.6.1 to provide some sort of backwards compatibility. Note that if lappend includes lib (which is what happens automatically if you follow the build directions in http://www.linuxfromscratch.org/blfs/view/svn/general/tcl.html which is what build_projects does), then you automatically find all subdirectories, i.e. Tcl/Tk8.6, and version 4 of itcl.... Thus, I think regardless of the location of version 3 of itcl..., the only way you can exclude version 4 and use version 3 instead with Tcl/Tk8.6 is by using versioned package require itcl... commands in our scripts with the desired (configured) version numbers. So that is what I plan to implement after I have modified build_projects to also install version 3 of itcl... in the above lib tree for convenience. However, I emphasize the above argument about requiring version numbers to exclude version 4 of itcl.... does not actually depend on that 3 installation location. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel