tetex-bin: mktextfm fails creating EC fonts

Bug #7596 reported by Debian Bug Importer
This bug report is a duplicate of:  Bug #7562: tetex-bin: Impossible to process a .tex. Edit Remove
4
Affects Status Importance Assigned to Milestone
tetex-bin (Debian)
Fix Released
Unknown
tetex-bin (Ubuntu)
Invalid
High
Unassigned

Bug Description

Automatically imported from Debian bug report #267896 http://bugs.debian.org/267896

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.8 KiB)

Message-Id: <email address hidden>
Date: Wed, 25 Aug 2004 00:43:59 +0200
From: Kai Weber <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: tetex-bin: mktextfm fails creating EC fonts

Package: tetex-bin
Version: 2.0.2-19
Severity: important

I had to reinstall my system and now latex fails when creating a new font. A
relevant mktextfm call from missfont.log:

$ mktextfm ecrm1200
mkdir: cannot create directory `/var/cache/fonts/tfm/jknappen': Permission denied
kpsestat: /var/cache/fonts/tfm/jknappen/..: No such file or directory
chmod: too few arguments
Try `chmod --help' for more information.
mkdir: cannot create directory `/var/cache/fonts/tfm/jknappen/ec': No such file or directory
kpsestat: /var/cache/fonts/tfm/jknappen/ec/..: No such file or directory
chmod: too few arguments
Try `chmod --help' for more information.
mktextfm: mktexdir /var/cache/fonts/tfm/jknappen/ec failed.

drwxr-xr-x 16 root root 4096 Aug 24 22:28 /var/
drwxr-xr-x 8 root root 4096 Aug 25 00:28 /var/cache/
drwxr-xr-x 5 root root 4096 Aug 25 00:28 /var/cache/fonts/

$ ls -l /var/cache/fonts/
total 16
-rw-rw-r-- 1 root users 119 Aug 25 00:30 ls-R
drwxr-xr-x 2 root root 4096 Aug 22 13:56 pk
drwxr-xr-x 2 root root 4096 Aug 22 13:56 source
drwxr-xr-x 2 root root 4096 Aug 22 13:56 tfm

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8

Versions of packages tetex-bin depends on:
ii debconf 1.4.32 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
ii dpkg 1.10.23 Package maintenance system for Deb
ii ed 0.2-20 The classic unix line editor
ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.1-7 GCC support library
ii libice6 4.3.0.dfsg.1-6 Inter-Client Exchange library
ii libkpathsea3 2.0.2-19 path search library for teTeX (run
ii libpaper1 1.1.14-0.4 Library for handling paper charact
ii libpng12-0 1.2.5.0-7 PNG library - runtime
ii libsm6 4.3.0.dfsg.1-6 X Window System Session Management
ii libstdc++5 1:3.3.4-9 The GNU Standard C++ Library v3
ii libt1-5 5.0.2-3 Type 1 font rasterizer library - r
ii libwww0 5.4.0-9 The W3C WWW library
ii libx11-6 4.3.0.dfsg.1-6 X Window System protocol client li
ii libxaw7 4.3.0.dfsg.1-6 X Athena widget set library
ii libxext6 4.3.0.dfsg.1-6 X Window System miscellaneous exte
ii libxmu6 4.3.0.dfsg.1-6 X Window System miscellaneous util
ii libxt6 4.3.0.dfsg.1-6 X Toolkit Intrinsics
ii mime-support 3.28-1 MIME files 'mime.types' & 'mailcap
ii perl 5.8.4-2 Larry Wall's Practical Extraction
ii sed ...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 25 Aug 2004 09:55:48 +0200
From: =?iso-8859-1?q?Frank_K=FCster?= <email address hidden>
To: Kai Weber <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#267896: tetex-bin: mktextfm fails creating EC fonts

severity 267896 grave=20
merge 267413 267896
stop

Kai Weber <email address hidden> wrote:

> Package: tetex-bin
> Version: 2.0.2-19
> Severity: important
>
>
> I had to reinstall my system and now latex fails when creating a new font=
. A
> relevant mktextfm call from missfont.log:
>
> $ mktextfm ecrm1200
> mkdir: cannot create directory `/var/cache/fonts/tfm/jknappen': Permissio=
n denied
> kpsestat: /var/cache/fonts/tfm/jknappen/..: No such file or directory

Those bugs are the same, see=20

http://buildd.debian.org/fetch.php?&pkg=3Dzope&ver=3D2.6.4-1.4&arch=3Dalpha=
&stamp=3D1093378265&file=3Dlog&as=3Draw

I'll have a look at it in a moment.

Frank
--=20
Frank K=FCster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Marking as duplicate based on debbugs merge (267413,267896)

This bug has been marked as a duplicate of bug 7562.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 25 Aug 2004 10:24:04 +0200
From: Hilmar Preusse <email address hidden>
To: Kai Weber <email address hidden>, <email address hidden>
Cc: Debian Control <email address hidden>
Subject: Re: Bug#267896: tetex-bin: mktextfm fails creating EC fonts

reassign 267896 tetex-base
stop

On 25.08.04 Kai Weber (<email address hidden>) wrote:

Hi,

> I had to reinstall my system and now latex fails when creating a
> new font. A relevant mktextfm call from missfont.log:
>
> $ mktextfm ecrm1200
> mkdir: cannot create directory `/var/cache/fonts/tfm/jknappen': Permission denied
> kpsestat: /var/cache/fonts/tfm/jknappen/..: No such file or directory
> chmod: too few arguments
> Try `chmod --help' for more information.
> mkdir: cannot create directory `/var/cache/fonts/tfm/jknappen/ec': No such file or directory
> kpsestat: /var/cache/fonts/tfm/jknappen/ec/..: No such file or directory
> chmod: too few arguments
> Try `chmod --help' for more information.
> mktextfm: mktexdir /var/cache/fonts/tfm/jknappen/ec failed.
>
> drwxr-xr-x 16 root root 4096 Aug 24 22:28 /var/
> drwxr-xr-x 8 root root 4096 Aug 25 00:28 /var/cache/
> drwxr-xr-x 5 root root 4096 Aug 25 00:28 /var/cache/fonts/
>
> $ ls -l /var/cache/fonts/
> total 16
> -rw-rw-r-- 1 root users 119 Aug 25 00:30 ls-R
> drwxr-xr-x 2 root root 4096 Aug 22 13:56 pk
> drwxr-xr-x 2 root root 4096 Aug 22 13:56 source
> drwxr-xr-x 2 root root 4096 Aug 22 13:56 tfm
>
Your permission on pk, source and tfm are wrong. Please set them to
1777.
As of tetex-base 2.0.2b-x (why can't I find a changelog entry?) these
dirs are contained with 1777 in tetex-base. For any reason during
install of tetex-base the perms are set back to 755. I guess that is
an dpkg bug (or somewhere else). We should fix the perms in postin of
tetex-base again.

H.
--
sigmentation fault

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 25 Aug 2004 13:44:24 +0200
From: =?iso-8859-1?q?Frank_K=FCster?= <email address hidden>
To: Hilmar Preusse <email address hidden>
Cc: <email address hidden>, Kai Weber <email address hidden>
Subject: Re: Bug#267896: tetex-bin: mktextfm fails creating EC fonts

Hilmar Preusse <email address hidden> schrieb:

> reassign 267896 tetex-base
> stop

That's only half right...

> Your permission on pk, source and tfm are wrong. Please set them to
> 1777.
> As of tetex-base 2.0.2b-x (why can't I find a changelog entry?)=20

Because it slipped in without me wanting or knowing it. I had thought
about that change, see=20

http://lists.debian.org/debian-tetex-maint/2004/08/msg00347.html

but then decided not to do it for sarge. Somehow parts of the change did
slip in, however, an I fear now I can do it as well: We will need a
Conflicts: of tetex-bin with the buggy versions of tetex-base anyway,
therefore the only advantage of not doing it is gone: Namely to
circumvent an even closer versioned dependency between both packages.

> install of tetex-base the perms are set back to 755. I guess that is
> an dpkg bug (or somewhere else). We should fix the perms in postin of
> tetex-base again.

It's not a dpkg bug, it's a maintainer bug. I do

# ship /var/cache/fonts in the tetex-base package, with proper permissions
 mkdir --mode=3D1777 debian/$(package)/var/cache/fonts/pk
 mkdir --mode=3D1777 debian/$(package)/var/cache/fonts/tfm
 mkdir --mode=3D1777 debian/$(package)/var/cache/fonts/source
[...]

dh_fixperms -i

and the last call sets everything to 644...

Regards, Frank
--=20
Frank K=FCster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 25 Aug 2004 13:55:00 +0200
From: Hilmar Preusse <email address hidden>
To: Kai Weber <email address hidden>, <email address hidden>
Subject: Re: Bug#267896: tetex-bin: mktextfm fails creating EC fonts

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On 25.08.04 Hilmar Preusse (<email address hidden>) wrote:

Hi,

> As of tetex-base 2.0.2b-x (why can't I find a changelog entry?)
> these dirs are contained with 1777 in tetex-base. For any reason
> during install of tetex-base the perms are set back to 755. I guess
> that is an dpkg bug (or somewhere else). We should fix the perms in
> postin of tetex-base again.
>
In debian/rules we call dh_fixperms -i. That breaks the 1777 perms
we've originally set on /var/cache/fonts/* . We have to exclude these
dirs from fixing. The attached patch should solve it. I've built the
package and unpacked it using dpkg-deb for checking. I didn't install
it!
Further: What are .#changelog.1.110, changelog.cachefonts,
control.cachefonts in debian/ ? Do we need a 755 perm on
/usr/share/bug/tetex-base/control ?

Regards,
  Hilmar
--
sigmentation fault

--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rules.diff"

--- rules.old 2004-08-25 11:49:46.000000000 +0000
+++ rules 2004-08-25 11:36:55.000000000 +0000
@@ -377,7 +377,7 @@
  install -D --mode=755 debian/reportbug.extra debian/$(extra)/usr/share/bug/tetex-extra/script

 # Fix permissions.
- dh_fixperms -i
+ dh_fixperms -i -X/var/cache/fonts/

 # some other stuff we don't have.
 # dh_makeshlibs -V

--FCuugMFkClbJLl1L--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Wed, 25 Aug 2004 14:02:39 -0400
From: =?utf-8?q?Frank_K=C3=BCster?= <email address hidden>
To: <email address hidden>
Subject: Bug#267413: fixed in tetex-base 2.0.2b-3

Source: tetex-base
Source-Version: 2.0.2b-3

We believe that the bug you reported is fixed in the latest version of
tetex-base, which is due to be installed in the Debian FTP archive:

tetex-base_2.0.2b-3.diff.gz
  to pool/main/t/tetex-base/tetex-base_2.0.2b-3.diff.gz
tetex-base_2.0.2b-3.dsc
  to pool/main/t/tetex-base/tetex-base_2.0.2b-3.dsc
tetex-base_2.0.2b-3_all.deb
  to pool/main/t/tetex-base/tetex-base_2.0.2b-3_all.deb
tetex-doc_2.0.2b-3_all.deb
  to pool/main/t/tetex-base/tetex-doc_2.0.2b-3_all.deb
tetex-extra_2.0.2b-3_all.deb
  to pool/main/t/tetex-base/tetex-extra_2.0.2b-3_all.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Frank Küster <email address hidden> (supplier of updated tetex-base package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

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

Format: 1.7
Date: Wed, 25 Aug 2004 13:50:36 +0200
Source: tetex-base
Binary: tetex-extra tetex-doc tetex-base
Architecture: source all
Version: 2.0.2b-3
Distribution: unstable
Urgency: high
Maintainer: teTeX maintainers <email address hidden>
Changed-By: Frank Küster <email address hidden>
Description:
 tetex-base - Basic library files of teTeX
 tetex-doc - The documentation component of the Debian teTeX packages
 tetex-extra - Additional library files of teTeX
Closes: 267413 267752
Changes:
 tetex-base (2.0.2b-3) unstable; urgency=high
 .
   * Fix permissions of the font cache directories, causing FTBFS of zope
     (and possibly others) (Closes: #267413, #267752), thanks to Pierre
     Machard <email address hidden> [frank]
Files:
 668f986d8a6a82db9bfbfbaccdce7eea 838 tex optional tetex-base_2.0.2b-3.dsc
 37457f89400e56f60842fb10f1e1f83f 167756 tex optional tetex-base_2.0.2b-3.diff.gz
 2815eac89db2d63e63925466eaf5e439 14355188 tex optional tetex-base_2.0.2b-3_all.deb
 78409355b4e92b9738aab1cfd280e1c0 10464008 tex optional tetex-extra_2.0.2b-3_all.deb
 3cb7ae051a3b10fc08afcbfba9922111 27743542 doc optional tetex-doc_2.0.2b-3_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBLMkN+xs9YyJS+hoRAkPMAJ9aO00sCZXyF/rN+Jk07J7WWlg9QACgqXCI
gw7mOnPGgRMlEhs5hgtIwMM=
=0Jb4
-----END PGP SIGNATURE-----

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Thu, 26 Aug 2004 20:37:23 +0200
From: Hilmar Preusse <email address hidden>
To: Frank =?iso-8859-1?Q?K=FCster?= <email address hidden>,
 <email address hidden>
Subject: Re: Bug#267896: tetex-bin: mktextfm fails creating EC fonts

On 25.08.04 Frank K�(<email address hidden>) wrote:
> Hilmar Preusse <email address hidden> schrieb:
>
> > reassign 267896 tetex-base
> > stop
>
> That's only half right...
>
/var/cache/fonts/{tfm,pf,source} had the wrong permissions. These
dirs are contained in tetex-base. So what?
Yes, I know in earlier times tetex-bin fiddled with the permissions
of these dirs, but actually that was an tetex-base bug.

H.
--
sigmentation fault

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 27 Aug 2004 10:53:42 +0200
From: =?iso-8859-1?q?Frank_K=FCster?= <email address hidden>
To: Hilmar Preusse <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#267896: tetex-bin: mktextfm fails creating EC fonts

Hilmar Preusse <email address hidden> schrieb:

> On 25.08.04 Frank K=FCster (<email address hidden>) wrote:
>> Hilmar Preusse <email address hidden> schrieb:
>>=20
>> > reassign 267896 tetex-base
>> > stop
>>=20
>> That's only half right...
>>=20
> /var/cache/fonts/{tfm,pf,source} had the wrong permissions. These
> dirs are contained in tetex-base. So what?
> Yes, I know in earlier times tetex-bin fiddled with the permissions
> of these dirs, but actually that was an tetex-base bug.

Well, you're right. But on the other hand, fixing tetex-base without
also changing tetex-bin would still have left a bug in tetex-bin: Namely
that it tried to fiddle with permissions of directories of tetex-base.=20

In this case I was aware of it, and currently tetex is very actively
developed. But this might not be the case all the time, and for every
package. In order not to forget one part of the story, I think the
better way would have been something like

clone 267896 -1
retitle -1 tetex-bin should not handle tetex-base's /var/cache/fonts/*
reassign 267896 tetex-base

Currently, _both_ things are fixed in unstable.

Tsch=FC=DF, Frank
--=20
Frank K=FCster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie

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

Other bug subscribers

Remote bug watches

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