[Pkg-tcltk-devel] Bug#611650: Bug#611650: tcl8.5-dev contains arch-dependent file in /usr/share/ (tcltk/tcl8.5/tclConfig.sh)
wookey at wookware.org
Tue Feb 1 01:41:11 UTC 2011
+++ Sergei Golovan [2011-01-31 21:16 +0300]:
> On Mon, Jan 31, 2011 at 8:08 PM, Wookey <wookey at wookware.org> wrote:
> > Line 22 of that file is TCL_CC='x86_64-linux-gnu-gcc' on the x86_64
> > version and TCL_CC='arm-linux-gnueabi-gcc' on the armel version.
> > Also the TCL_DEFS= varies with arch, e.g 64-bit arches have different
> > defines from 32-bit arches.
> > So in fact it's not an arch-independent file, and shouldn't be in
> > /usr/share.
> I missed the fact that these scripts are actually arch-dependent. They
> should go into /usr/lib/tcltk/tcl8.5 indeed. Thanks for the finding.
No problem - thanks for the quick response.
Unfortunately we'll be stuck with this problem in squeeze so anything
cross-depending on tcl8.5-dev (and using the tclConfig.sh mechanism)
won't cross-build. Still, lots of stuff in squeeze won't cross-build
so it's just one of those things.
> > I notice that upstream tcl builds these files in /lib but then we move
> > them into /usr/share and then put a link back in the old place. Is
> > there a good reason for this, or should we just leave them in /lib in
> > the first place?
> Yes, though not in /usr/lib itself but in /usr/lib/tcl8.5 because there
> are other Tcl/Tk versions around, and symlink /usr/lib/tclConfig.sh is
> managed by tcl-dev package (points to the default version).
Just for info there is further discusison of this issue here:
Principal hats: Linaro, Emdebian, Wookware, Balloonboard, ARM
More information about the Pkg-tcltk-devel