Hi Tim:
I know, I've been through it with them too, but neither debian nor
ccp4 want to change, so it was easier just to roll my own bltwish
package, being the natural born diplomat that I am. As for the debian
maintainer, it seems kind of arbitrary to remove an executable that
builds by default when you compile blt from source, but admittedly it
does save them ~933Kb of space.
However, just replacing bltwish with wish isn't quite enough (try the
graphs). You need a patch:
diff -r ccp4-6.0.2-original/ccp4i/bin/ccp4i ccp4-6.0.2/ccp4i/bin/ccp4i
4c4
< exec $CCP4I_TCLTK/bltwish "$0" -- ${1+"$@"}
---
> exec $CCP4I_TCLTK/wish "$0" -- ${1+"$@"}
diff -r ccp4-6.0.2-original/ccp4i/bin/ccp4i.tcl ccp4-6.0.2/ccp4i/bin/ccp4i.tcl
14a15,16
> package require BLT
>
diff -r ccp4-6.0.2-original/ccp4i/bin/loggraph ccp4-6.0.2/ccp4i/bin/loggraph
4c4
< exec $CCP4I_TCLTK/bltwish "$0" -- ${1+"$@"}
---
> exec $CCP4I_TCLTK/wish "$0" -- ${1+"$@"}
diff -r ccp4-6.0.2-original/ccp4i/bin/topdraw ccp4-6.0.2/ccp4i/bin/topdraw
4c4
< exec $CCP4I_TCLTK/bltwish "$0" -- ${1+"$@"}
---
> exec $CCP4I_TCLTK/wish "$0" -- ${1+"$@"}
diff -r ccp4-6.0.2-original/ccp4i/etc/configure.def.dist ccp4-6.0.2/ccp4i/etc/configure.def.dist
49c49
< RUN_LOGGRAPH _text "bltwish [file join [GetEnvPath CCP4I_TOP] bin loggraph.tcl]"
---
> RUN_LOGGRAPH _text "wish [file join [GetEnvPath CCP4I_TOP] bin loggraph.tcl]"
51c51
< RUN_TOPDRAW _text "[file join [GetEnvPath CCP4I_TCLTK] bltwish] [file join [GetEnvPath CCP4I_TOP] topdraw topdraw.tcl]"
---
> RUN_TOPDRAW _text "[file join [GetEnvPath CCP4I_TCLTK] wish] [file join [GetEnvPath CCP4I_TOP] topdraw topdraw.tcl]"
diff -r ccp4-6.0.2-original/ccp4i/loggraph/loggraph.tcl ccp4-6.0.2/ccp4i/loggraph/loggraph.tcl
17a18,19
> package require BLT
>
diff -r ccp4-6.0.2-original/ccp4i/src/exframe.tcl ccp4-6.0.2/ccp4i/src/exframe.tcl
16a17,18
> package require BLT
>
diff -r ccp4-6.0.2-original/ccp4i/src/system.tcl ccp4-6.0.2/ccp4i/src/system.tcl
880c880
< if { ![catch {exec which bltwish} exe_path] } {
---
> if { ![catch {exec which wish} exe_path] } {
947,948c947,948
< set array(RUN_BLTWISH) bltwish
< set array(RUN_LOGGRAPH) "bltwish \[file join \[GetEnvPath CCP4I_TOP] bin loggraph.tcl]"
---
> set array(RUN_BLTWISH) wish
> set array(RUN_LOGGRAPH) "wish \[file join \[GetEnvPath CCP4I_TOP] bin loggraph.tcl]"
950c950
< set array(RUN_TOPDRAW) "bltwish \[file join \[GetEnvPath CCP4I_TOP] topdraw topdraw.tcl]"
---
> set array(RUN_TOPDRAW) "wish \[file join \[GetEnvPath CCP4I_TOP] topdraw topdraw.tcl]"
diff -r ccp4-6.0.2-original/ccp4i/topdraw/topdraw.tcl ccp4-6.0.2/ccp4i/topdraw/topdraw.tcl
22a23,24
> package require BLT
>
Begin forwarded message:
From: Lieven Buts
Date: September 5, 2008 1:57:29 AM PDT
To: "William G. Scott"
Subject: BLTwish issue
Hi,
some time ago I read your discussions with the Debian blt package
maintainer
about the inclusion of the separate bltwish binary, and the problems
caused
for CCP4i by its absence in the standard Debian/Ubuntu package. I
agree that
is not very reasonable of the packagers to leave out a file that is
part of
the standard installation profile and the packages on just about
every other
Linux distribution. I was however fascinated by the package
maintainers'
obstinacy, and some time ago I decided to try to see what the
implications
of his suggestion to change the affected programs were. After some
grepping
and editing in the CCP4 source, I came up with the attached patch that
changes all references to "bltwish" into "wish" and adds the necessary
lines to the affected Tcl scripts. So far the modified CCP4i seems to
work OK on an unmodified Ubuntu installation, so it is doable.
But I still agree that it shouldn't be necessary :-) .
Anyway, I just thought I'd share this bit of information.
Cheers,
--
Lieven Buts
Ultrastructure Laboratory
Vrije Universiteit Brussel
On Dec 22, 2008, at 9:09 AM, Tim Gruene wrote:
I had a quick look at the wiki. It claims one requires the
executable bltwish for ccp4i to work correctly. However, the
maintainer is correct (I asked him the same thing some time ago) -
the blt-library works perfectly if only you replace the few
occurrences of 'bltwish' in the scripts in $CCP4/ccp4i/bin with just
'wish'.
At least for Debian, and I assume it's no difference for Ubuntu.
Tim
--
Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
On Mon, 22 Dec 2008, William G. Scott wrote:
Hi Harry et al:
Well, it it makes you feel any better, imosflm works great for me
on ubuntu ibex:
http://diablo.ucsc.edu/~wgscott/debian/imosflm_xubuntu_ibex.png
I just lost my imosflm virginity at the synchrotron a few nights
ago (they have it working or rh at SSRL).
If it helps anyone, here are the details: http://tinyurl.com/imosflm-ibex
(But I have had no luck on OS X).
Thanks very much for all your efforts. I really appreciate it.
Best wishes for the holidays.
Bill
On Dec 22, 2008, at 2:32 AM, Harry Powell wrote:
Hi
So it looks like we released Mosflm/iMosflm on a "bad hair" day -
photos of Luke and me will possibly reveal who has the worst hair
(this would, of course, be a matter of opinion!).