[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#117944: tetex-bin: Missing return value causes dvips to fail on ia64



Package: tetex-bin
Version: 1.0.7+20001218-6
Severity: important
Tags: patch

dvips exits prematurely on ia64 because of a missing return value
from a function that is expected to return a boolean. This patch
changes the function to void.

This will enable at least one other package, aleph, to build on
ia64.

diff -Naur tetex-bin.orig/texk/dvipsk/download.c tetex-bin-1.0.7+20001218/texk/dvipsk/download.c
--- tetex-bin.orig/texk/dvipsk/download.c	Tue Jan 18 02:36:19 2000
+++ tetex-bin-1.0.7+20001218/texk/dvipsk/download.c	Thu Nov  1 10:00:12 2001
@@ -407,8 +407,7 @@
         newline() ;
         if (! disablecomments)
            (void)fprintf(bitfile, "%%%%BeginFont: %s\n",  rf->PSname);
-        if (!t1_subset(rf->Fontfile, rf->Vectfile, grid))
-            exit(1);
+        t1_subset(rf->Fontfile, rf->Vectfile, grid);
         if (! disablecomments)
            (void)fprintf(bitfile, "%%%%EndFont \n");
    }
diff -Naur tetex-bin.orig/texk/dvipsk/protos.h tetex-bin-1.0.7+20001218/texk/dvipsk/protos.h
--- tetex-bin.orig/texk/dvipsk/protos.h	Sat Feb  6 17:23:15 1999
+++ tetex-bin-1.0.7+20001218/texk/dvipsk/protos.h	Thu Nov  1 09:55:29 2001
@@ -363,4 +363,7 @@
 extern struct tft *vfontdef P2H(int s, int siz);
 extern Boolean virtualfont P1H(fontdesctype *curfnt);
 
+/* prototypes for functions from writet1.c */
+extern void t1_subset(char *, char *, unsigned char *);
+
 #endif
diff -Naur tetex-bin.orig/texk/web2c/pdftexdir/writet1.c tetex-bin-1.0.7+20001218/texk/web2c/pdftexdir/writet1.c
--- tetex-bin.orig/texk/web2c/pdftexdir/writet1.c	Fri Apr 14 16:49:21 2000
+++ tetex-bin-1.0.7+20001218/texk/web2c/pdftexdir/writet1.c	Thu Nov  1 09:55:12 2001
@@ -1616,8 +1616,12 @@
     t1_close_font_file(">");
 }
 
+
 #ifndef pdfTeX
-boolean t1_subset(char *fontfile, char *encfile, unsigned char *g)
+/*
+ * Formerly declared to return boolean, but there was no return value!
+ */
+void t1_subset(char *fontfile, char *encfile, unsigned char *g)
 {
     int i;
     cur_enc_name = encfile;

-- System Information
Debian Release: testing/unstable
Architecture: ia64
Kernel: Linux butthead 2.4.9-itanium-smp #1 SMP Mon Sep 17 20:48:35 MDT 2001 ia64
Locale: LANG=C, LC_CTYPE=

Versions of packages tetex-bin depends on:
ii  debianutils             1.15             Miscellaneous utilities specific t
ii  dpkg                    1.9.17           Package maintenance system for Deb
ii  ed                      0.2-19           The classic unix line editor
ii  libc6.1                 2.2.4-3          GNU C Library: Shared libraries an
ii  libkpathsea3            1.0.7+20001218-6 shared libkpathsea for teTeX
ii  libpng2                 1.0.12-2         PNG library - runtime
ii  libstdc++2.10-glibc2.2  1:2.96-5         The GNU stdc++ library version 3
ii  libtiff3g               3.5.5-6          Tag Image File Format library
ii  libwww0                 5.3.2-7          The W3C-WWW library.
ii  libxaw7                 4.1.0-9          X Athena widget set library
ii  perl-base               5.6.1-5          The Pathologically Eclectic Rubbis
ii  tetex-base              1.0.2+20000804-9 basic teTeX library files
ii  xlibs                   4.1.0-9          X Window System client libraries
ii  zlib1g                  1:1.1.3-16       compression library - runtime




Reply to: