[Pkg-tcltk-devel] Bug#698674: Multiarchify tcl

Wookey wookey at wookware.org
Tue Jan 22 03:41:40 UTC 2013


Package: tcl8.5
Version: 8.5.11-2
Severity: normal
Tags: sid patch
User: multiarch-devel at lists.alioth.debian.org
Usertag: multiarch

TCL has not been 'multiarched'. This task has been pending for a
couple of years, ever since I noticed that tclConfig.sh is
arch-specific in #611650. The lack of this bit me today trying to
cross-build sqlite3 which looked for tclConfig.sh in
/usr/lib/$(DEB_HOST_MULTIARCH)/tclConfig.sh which is the right place,
but the script isn't there. So I finally had a go at multiarching the
package.

I don't know if this is sufficient or complete as I'm not familiar
with the internal working of tcl, but it's fairly conservative so
should work. Essentially the .so and .a libs, and the tclConfig.sh
config script are all moved into multiarch directories in the existing
tcl8.5-dev and a new tcl8.5-lib package for the runtime library. Both
these packages are Multi-Arch: same and thus co-installable.

All the other files remain in the tcl8.5 package, although I don't
know if there are arch-specific files in there which should move? That
package is MA: foreign as tcl is able to run scripts in an
arch-independent fashion. 

I left a tight binary-version dependency of tcl8.5 on tcl8.5-lib so
you always get matching versions. I'm not sure if this is necessary -
is a tight version match needed here?

It all seems to build correctly, and cross-build OK too (with the patch
in #631995)

I will test these packages for use in crossbulding, but I would
welcome feedback on whether something more complex is needed to make
this work for all tcl roles (embedded interpreter, etc). 

Whilst testing this I noticed that the unix dir wasn't getting
cleaned, so a second build fell over. I've fixed that too. 

-- System Information:
Debian Release: 6.0.6
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32.33-kvm-i386-20111128-dirty (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcl8.5-8.5.11-2-multiarchify.patch
Type: text/x-diff
Size: 7052 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-tcltk-devel/attachments/20130122/574ba929/attachment.patch>


More information about the Pkg-tcltk-devel mailing list