[tex-k] (fwd) dvips fix

Thomas Esser te@informatik.uni-hannover.de
Sun, 22 Apr 2001 18:25:08 +0200 (MET DST)


The following message includes a fix for dvips. (Compatibility issue
with upcoming gcc-3.0).

Thomas

--
>From owner-tetex-pretest@informatik.uni-hannover.de  Sun Apr 22 18:16:16 2001
Date: Sun, 22 Apr 2001 15:42:26 +0200 (CEST)
From: Adrian Bunk <bunk@fs.tum.de>
X-X-Sender:  <bunk@mimas.fachschaften.tu-muenchen.de>
To: <tetex-pretest@informatik.uni-hannover.de>
cc: <94699@bugs.debian.org>
Subject: Bug#94699: tetex-bin: PATCH: gcc 3.0 issues, Build failure on PARISC
 machines (fwd)
MIME-Version: 1.0

Hi Thomas,

the following mail was sent to the bug tracking system of Debian
GNU/Linux. (in Debian unstable there's the Linux/hppa architecture which
uses a gcc 3.0 snapshot to compile their packages)

cu
Adrian


---------- Forwarded message ----------
Date: Sat, 21 Apr 2001 01:44:18 -0600 (MDT)
From: LaMont Jones <lamont@smallone.fc.hp.com>
To: submit@bugs.debian.org
Subject: Bug#94699: tetex-bin: PATCH: gcc 3.0 issues,
     Build failure on PARISC machines
Resent-Date: Sat, 21 Apr 2001 07:49:09 GMT
Resent-From: LaMont Jones <lamont@smallone.fc.hp.com>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-cc: teTeX maintainers <debian-tetex-maint@lists.debian.org>

Package: tetex-bin
Version: 1.0.7+20001218-3
Severity: normal

Two things:

1) gcc 3.0 implements printf() as a macro, patch attched.

2) The config.guess and config.sub files in the source need to be updated
   to the current ones (at http://subversions.gnu.org/cgi-bin/cvsweb/config/)

With those changes, the package builds.

lamont

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux smallone 2.4.0 #23 Sat Apr 14 23:32:01 MDT 2001 parisc64 unknown

--- texk/dvipsk/afm2tfm.c.orig	Sat Apr 21 01:24:50 2001
+++ texk/dvipsk/afm2tfm.c	Sat Apr 21 01:25:01 2001
@@ -1976,11 +1976,13 @@
 /*
  *   This routine prints out the line that needs to be added to psfonts.map.
  */
+#ifndef VMCMS
 void conspsfonts() {
    (void)printf("%s %s", outname,
-#ifndef VMCMS
    fontname) ;
 #else /* VM/CMS: fontname is ascii, so we use ebfontname */
+void conspsfonts() {
+   (void)printf("%s %s", outname,
    ebfontname) ;
 #endif
    if (slantparam || efactorparam || inenname) {