[Pkg-tcltk-devel] Backporting tcl/tk 8.6 to lenny; PostgreSQL driver for tdbc drivers.

tomas at tuxteam.de tomas at tuxteam.de
Mon Jun 28 19:48:04 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

please let me know whether this list is (or isn't) appropriate for this.

I'm trying to backport tcl8.6 from unstable to stable (aka lenny) (and
later to testing). I'd like to report on my first sucesses and beg for
some hints.

First of all, here's a commented recipe. The ingredients are the
unstable source packages (Tk builds and installs unchanged, thus no
further comments on that):

The unstable source packages:

  tcl8.6_8.6.0~b1.orig.tar.gz
  tcl8.6_8.6.0~b1-3.diff.gz
  tcl8.6_8.6.0~b1-3.dsc

The original tdbc sources, from <http://tdbc.tcl.tk/>:

  TDBC-f9bae25da3683394.zip

Here's the (fairly dirty, forgive that ;-) recipe:

########################################################################
#!/bin/bash
set -x
dpkg-source -x tcl8.6_8.6.0~b1-3.dsc
DEBSRC=tcl8.6-8.6.0~b1
PKGSRC=TDBC-f9bae25da3683394

# "Ungraft" old tdbc 
rm -Rf $DEBSRC/pkgs/tdbc1.0b1
for pkg in tdbc tdbcpostgres ; do
  # "graft" package into pkgs subdir
  cp -a $PKGSRC/$pkg $DEBSRC/pkgs/
  # make configure executable (that's how Makefile detects packages)
  chmod -f ugo+x $DEBSRC/pkgs/$pkg/configure
done
# Diff not needed -- newer tdbc "has" that:
rm $DEBSRC/debian/patches/tdbc.diff
# Remove from list:
sed -e '/tdbc\.diff/d' -i $DEBSRC/debian/patches/series

# This is almost certainly the wrong solution: package
# compile doesn't look for headers in pkgs/tdbc/generic,
# but tdbc.h is there. How's that done right?
for h in tdbc.h tdbcDecls.h ; do
  cp $DEBSRC/pkgs/tdbc/generic/$h $DEBSRC/generic
done
########################################################################

Enjoy.

Now to my request: as set up, this wraps the tdbcpostgres driver into
the tcl-tdbc Debian package. This is fine to scratch my personal itch,
but I'd imagine that for real Debian use, each driver would go into its
own package: any hints on how to go about this?

Thanks for any pointers, encouragements, flames, whatever.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFMKPx0Bcgs9XrR2kYRApIUAJ9HzhsliUyY9ABMcQlbQ3LwRsYiRACffl1J
VA611W9r+Yc5Ryr8H+fRKvY=
=5Uzl
-----END PGP SIGNATURE-----



More information about the Pkg-tcltk-devel mailing list