---------------------------- * * #1 of 2 problems * ---------------------------- file: /usr/bin/xpbs type: tcl executable script problem: Great contribution!!! but after install xpbs will not run, variables libdir and appdef dir contain references to the build directory not the final installed directory. This causes a problem when you purge the build directory ;-) solution: Both should contain the value /usr/lib/xpbs, not /var/tmp/portage/openpbs-2.3.16/image//usr/lib/xpbs See also: Similar problem with tclIndex reported below. diff -u /usr/bin/xpbs.orig /usr/bin/xpbs --- /usr/bin/xpbs.orig 2002-12-18 07:54:14.000000000 +0100 +++ /usr/bin/xpbs 2002-12-18 07:58:03.000000000 +0100 @@ -84,8 +84,8 @@ # without reference to its choice of law rules. ################################################################################ set XPBS_VERSION 1.1.12 -set libdir /var/tmp/portage/openpbs-2.3.16/image//usr/lib/xpbs -set appdefdir /var/tmp/portage/openpbs-2.3.16/image//usr/lib/xpbs +set libdir /usr/lib/xpbs +set appdefdir /usr/lib/xpbs set bitmap_dir $libdir/bitmaps set helpdir $libdir/help set bindir $libdir/bin ----------------------------------- * * #2 of 2 problems * ----------------------------------- file: /usr/lib/xpbs/tclIndex type: tcl libarary index file problem: after install xpbs will not run, the index file contains references to the build directory rather than the install directory. solution: Remove all occurances of string: "var tmp portage openpbs-2.3.16 image" or reindex the library. Correct value is: join $dir / var tmp portage openpbs-2.3.16 image usr lib xpbs preferences.tcl]] diff -u /usr/lib/xpbs/tclIndex /usr/lib/xpbs/tclIndex.orig --- /usr/lib/xpbs/tclIndex 2002-12-18 08:10:08.000000000 +0100 +++ /usr/lib/xpbs/tclIndex.orig 2002-12-18 08:07:25.000000000 +0100 @@ -6,250 +6,250 @@ # element name is the name of a command and the value is # a script that loads the command. -set auto_index(after_depend) [list source [file join $dir / usr lib xpbs after_depend.tk]] -set auto_index(trackjob) [list source [file join $dir / usr lib xpbs trackjob.tk]] -set auto_index(trackjob_auto_update) [list source [file join $dir / usr lib xpbs trackjob.tk]] -set auto_index(trackjob_rstart) [list source [file join $dir / usr lib xpbs trackjob.tk]] -set auto_index(trackjob_check) [list source [file join $dir / usr lib xpbs trackjob.tk]] etc etc.
/usr/bin/xpbsmon has the same issue replace: set libdir /var/tmp/portage/openpbs-2.3.16/image//usr/lib/xpbsmon set appdefdir /var/tmp/portage/openpbs-2.3.16/image//usr/lib/xpbsmon with: set libdir /usr/lib/xpbsmon set appdefdir /usr/lib/xpbsmon also replace the #! line: #!/var/tmp/portage/openpbs-2.3.16/image//usr/bin/pbs_wish -f with #!/usr/bin/pbs_wish -f
/usr/lib/xpbsmon/preferences.tcl also contains the build directory path.
correction to comment #2 the offending file is /usr/lib/xpbsmon/tclIndex which has the same problem as /usr/lib/xpbs/tclIndex file /usr/lib/xpbsmon/preferences.tcl is OK.
Big fixed, closing.