installation fails

Bug #33449 reported by Chris Moore
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tetex-bin (Debian)
New
Undecided
Unassigned
tetex-bin (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

$ sudo apt-get install tetex-bin
Reading package lists... Done

Building dependency tree... Done

tetex-bin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up tetex-bin (3.0-13ubuntu2) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend is incompatible with emacs shell buffers)
debconf: falling back to frontend: Readline

An essential entry in /etc/texmf/texmf.cnf is missing. Fixing

Bareword found where operator expected at -e line 15, near "/^%%% From file: /etc"
 (Missing operator before etc?)
Bareword found where operator expected at -e line 15, near "05TeXMF"
 (Missing operator before TeXMF?)
syntax error at -e line 15, near "/^%%% From file: /etc"
syntax error at -e line 20, near "}"
Execution of -e aborted due to compilation errors.
dpkg: error processing tetex-bin (--configure):
 subprocess post-installation script returned error exit status 255

There's a problem with the "postinst" script - it uses unescaped directry separators inside a Perl match.

My patch uses m!! instead of // to do the match, so the directory separators don't need escaping.

Revision history for this message
Chris Moore (dooglus) wrote : patch

I don't know if this fixes the problem entirely or not, but it fixes one problem.

tetex-bin:
  Installed: 3.0-13ubuntu2

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks, Chris, that looks sane.

Changed in tetex-bin:
assignee: nobody → pitti
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

 tetex-bin (3.0-13ubuntu4) dapper; urgency=low
 .
   * debian/postinst.functions: Enclose regular epxression in m!! instead of //
     to cope with the contained slashes. Thanks to Chris Moore!
     Closes: LP#33449
   * debian/rules.in: Clean up build cruft in clean rule.

Changed in tetex-bin:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

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