[tclxml and tcltk8.5] 'package require xml' fails

Bug #389308 reported by wim sturkenboom
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tclxml (Debian)
Fix Released
Unknown
tclxml (Ubuntu)
Fix Released
Undecided
Andrej Shadura

Bug Description

Notes: tclxml and tcltk8.4 don't give this issue
platform: PC

ubuntu 8.04 (upgraded from 6.06)

installed are both tcltk8.4 and tcltk8.5 from repositories
tcllib1.10 from repositories installed
tclxml3.1 from repositories installed
in tclsh8.4, package require xml works
in tclsh8.5, package require xml does not work

fortyfourgalena@desktop1:~/progs/tcl/simpledb$ tclsh
% puts $tcl_version
8.4
% package require xml
3.1
% exit

fortyfourgalena@desktop1:~/progs/tcl/simpledb$ /usr/bin/tclsh8.5
% puts $tcl_version
8.5
% package require xml
attempt to provide package sgmlparser 1.1 failed: package sgmlparser 1.0 provided instead
% exit

Tags: patch
wim sturkenboom (wim001)
description: updated
Revision history for this message
Wesley Schwengle (wesleys) wrote :

This is the solution:

http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/ef5774c9a6fd6c1e

$ tclsh8.5
% puts $tcl_version
8.5
% package require xml
attempt to provide package sgmlparser 1.1 failed: package sgmlparser 1.0 provided instead
% exit
invalid command name "quit"

$ sudo patch < sgmlparser.tcl.patch
can't find file to patch at input line 3
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|--- /usr/lib/Tclxml3.1/sgmlparser.tcl.orig 2009-08-31 10:40:10.000000000 +0200
|+++ /usr/lib/Tclxml3.1/sgmlparser.tcl 2009-08-31 10:38:25.000000000 +0200
--------------------------
File to patch: /usr/lib/Tclxml3.1/sgmlparser.tcl
patching file /usr/lib/Tclxml3.1/sgmlparser.tcl

$ tclsh8.5
zsh: correct 'tclsh8.5' to 'tclsh8.4' [nyae]? n
%
% puts $tcl_version
8.5
% package require xml
3.1
% exit

This patch resolves the issue for 8.5 and does not affect 8.4

Changed in ubuntu:
status: New → Confirmed
affects: ubuntu → tclxml (Ubuntu)
Revision history for this message
Wesley Schwengle (wesleys) wrote :

I can confirm it happens on 8.04 and on 9.10 development release

Distributor ID: Ubuntu
Description: Ubuntu 8.04.3 LTS
Release: 8.04
Codename: hardy

tcl8.4:
  Installed: 8.4.16-4ubuntu1
  Candidate: 8.4.16-4ubuntu1
  Version table:
 *** 8.4.16-4ubuntu1 0
        500 http://archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status
tcl8.5:
  Installed: 8.5.0-2ubuntu1
  Candidate: 8.5.0-2ubuntu1
  Version table:
 *** 8.5.0-2ubuntu1 0
        500 http://archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status
tclxml:
  Installed: 3.1-2
  Candidate: 3.1-2
  Version table:
 *** 3.1-2 0
        500 http://archive.ubuntu.com hardy/universe Packages
        100 /var/lib/dpkg/status

Distributor ID: Ubuntu
Description: Ubuntu karmic (development branch)
Release: 9.10
Codename: karmic

tcl8.4:
  Installed: 8.4.19-3
  Candidate: 8.4.19-3
  Version table:
 *** 8.4.19-3 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
tcl8.5:
  Installed: 8.5.7-1
  Candidate: 8.5.7-1
  Version table:
 *** 8.5.7-1 0
        500 http://archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status
tclxml:
  Installed: 3.1-3
  Candidate: 3.1-3
  Version table:
 *** 3.1-3 0
        500 http://archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

Changed in tclxml (Debian):
status: Unknown → New
Artur Rona (ari-tczew)
tags: added: patch
removed: tcltk8.5 tclxml
Revision history for this message
Andrej Shadura (andrew.sh) wrote :

The bug is fixed in the new upstream version, which is available in Debian testing.

Revision history for this message
Wesley Schwengle (wesleys) wrote :

Would it be possible to get the fixes in all the current releases (8.04-9.10) and/or backported to these releases?

Revision history for this message
Andrej Shadura (andrew.sh) wrote :

Wesley, ask Ubuntu people, as I'm not the maintainer here. At least, you can backport by yourself, just do:

$ wget http://ftp.de.debian.org/debian/pool/main/t/tclxml/tclxml_3.2-1.dsc http://ftp.de.debian.org/debian/pool/main/t/tclxml/tclxml_3.2.orig.tar.gz http://ftp.de.debian.org/debian/pool/main/t/tclxml/tclxml_3.2-1.diff.gz
$ dpkg-source -x tclxml_3.2-1.dsc
$ cd tclxml-3.2
$ dpkg-buildpackage

Changed in tclxml (Debian):
status: New → Fix Released
Changed in tclxml (Ubuntu):
assignee: nobody → Andrew O. Shadoura (bugzilla-tut)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.