[Pkg-tcltk-devel] Bug#611650: Bug#611650: tcl8.5-dev contains arch-dependent file in /usr/share/ (tcltk/tcl8.5/tclConfig.sh)

Sergei Golovan sgolovan at nes.ru
Mon Jan 31 18:16:37 UTC 2011


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.

>
> 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).

Cheers!
-- 
Sergei Golovan





More information about the Pkg-tcltk-devel mailing list