Changeset 9417624 in tol


Ignore:
Timestamp:
Jun 27, 2011, 8:42:29 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d007920
Parents:
b791e9d
Message:

tolsh on unix x86_64 platform must include /usr/lib in auto_path

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3663 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl

    rb791e9d r9417624  
    289289
    290290proc ::tolsh::setup_pkg { pkg } {
     291  #puts ":tolsh::setup_pkg $pkg [namespace exist ::starkit] "
    291292  if {[lsearch [package names] $pkg]==-1} {
    292293    if {[namespace exist ::starkit]} {
    … …  
    296297      if {[llength $pkg_dirs]} {
    297298        lappend ::auto_path [file normalize $libdir]
     299      } elseif { $::tcl_platform(platform) eq "unix" &&
     300          $::tcl_platform(machine) eq "x86_64" } {
     301          if { [ lsearch $::auto_path "/usr/lib" ] == -1 } {
     302            lappend ::auto_path "/usr/lib"
     303          }
    298304      } else {
    299         set tclsh [auto_execok tclsh]
    300         if {![catch {
    301           exec echo puts {$::auto_path} | $tclsh
    302         } ext_auto_path]} {
    303           foreach p $ext_auto_path {
    304             if {[lsearch $::auto_path $p]==-1} {
    305               lappend ::auto_path $p
     305          set tclsh [auto_execok tclsh]
     306          if {![catch {
     307            exec echo puts {$::auto_path} | $tclsh
     308          } ext_auto_path]} {
     309            foreach p $ext_auto_path {
     310              if {[lsearch $::auto_path $p]==-1} {
     311                lappend ::auto_path $p
     312              }
    306313            }
    307314          }
    308         }
    309315      }
    310316      tclPkgUnknown ${pkg}+1 ""
    … …  
    565571
    566572proc logtmp { msg } {
    567   return
     573  #return
    568574  set user [ exec whoami ]
    569575  set fd [ open "/tmp/tolsh.${user}.log" a ]
Note: See TracChangeset for help on using the changeset viewer.