Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12365 - xpbs - OpenPBS ebuild leaves build direcory references in config files
Summary: xpbs - OpenPBS ebuild leaves build direcory references in config files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-18 01:33 UTC by Aidan
Modified: 2003-06-06 05:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aidan 2002-12-18 01:33:29 UTC
----------------------------  
*  
* #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.
Comment 1 Aidan 2002-12-18 06:19:46 UTC
/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 
 
Comment 2 Aidan 2002-12-18 06:22:17 UTC
/usr/lib/xpbsmon/preferences.tcl 
also contains the build directory path. 
Comment 3 Aidan 2002-12-18 06:42:49 UTC
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. 
 
Comment 4 Michael Imhof (RETIRED) gentoo-dev 2003-06-06 05:29:20 UTC
Big fixed, closing.