Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15028 - teTeX-2.0 pkg_postinst error
Summary: teTeX-2.0 pkg_postinst error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Matthew Turk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-03 07:47 UTC by Andreas Simon
Modified: 2003-02-07 03:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Simon 2003-02-03 07:47:15 UTC
After updating from app-text/tetex-1.0.7-r12 to 
app-text/tetex-2.0 the following entries from 
pkg_postinst all fail: 
 
exconfig init &>/dev/null 
texconfig confall &>/dev/null 
texconfig font vardir /var/cache/fonts &>/dev/null 
 
The error message is in all cases: 
"Could not find default config file for divpdfm (config). 
The program will exit now." 
 
Either tetex-2.0 is missing a config file are a dependency 
on divpdfm (which I had not installed). 
 
After installing divpdfm, most part of the pgk_postinst script works. 
But 'texconfig font vardir /var/cache/fonts' still errors out with: 
 
cp: `/usr/share/texmf/dvipdfm/config/config' and 
`/usr/share/texmf/dvipdfm/config/config' are the same file 
/usr/share/texmf/web2c/mktexupd: /usr/share/texmf/dvipdfm/config not a file.
Comment 1 Andreas Simon 2003-02-03 07:49:51 UTC
One more comment: 
 
/usr/share/texmf/dvipdfm/config is not a file but a directory. 
 
# ls /usr/share/texmf/dvipdfm/config 
cmr.map  config  lw35urwa.map  lw35urw.map  psbase14.map  t1fonts.map 
Comment 2 Matthew Turk (RETIRED) gentoo-dev 2003-02-03 12:42:55 UTC
Interesting.  Could you try unmerging tetex-1.0.7-r12 and then merging tetex-2.0?  I 
wonder if this is an upgrade issue. 
Comment 3 Matthew Turk (RETIRED) gentoo-dev 2003-02-03 12:46:15 UTC
Also, what are your USE?  We might have to work through USE problems with the new 
version... 
Comment 4 Andreas Simon 2003-02-03 13:25:04 UTC
He is my USE value: 
x86 oss apm arts avi encode jpeg kde libg++ mikmod mpeg ncurses nls pdflib qtmt 
quicktime spell xmms xv zlib gdbm berkdb slang readline tetex svga tcltk java sdl gpm 
libwww ssl perl python imlib gnome qt motif cdr 3dnow alsa crypt cups doc dvd esd gif 
gtk gtk2 imap lcms maildir mmx mozilla oggvorbis opengl pam png sse tcpd tiff truetype 
X xml2 
 
I will post the results of unmerging/emerging later. 
 
Comment 5 Andreas Simon 2003-02-03 14:21:58 UTC
It seems to be an update issue. I unmerged both tetex and 
dvipdfm and emerged tetex-2.0. No error. 
 
Comment 6 Phil Richards 2003-02-04 16:15:37 UTC
Same problem here.

I don't have dvipdfm installed (nor do I have any need for it).  (The installation has apparently completed.)  Here is my "emerge info".  (make.conf contains: USE="X gtk gnome cups tcltk".)

I get the same error when I try to run "texconfig font rw".

Biggest pain for this emerge problem is that error message is popped up under curses and blocks the build process until you hit "enter".

But, on the positive side, the man pages are installed in the right place, and everything appears to be running ok.

phil

Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib alsa gdbm berkdb slang readline arts tetex svga java guile mysql sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis qt kde motif opengl mozilla cdr X gtk gnome cups tcltk"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="-march=athlon -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 7 Matthew Turk (RETIRED) gentoo-dev 2003-02-04 22:36:40 UTC
Ok, I'm working on a solution.  Should have it implemented soon enough. 
Comment 8 Matthew Turk (RETIRED) gentoo-dev 2003-02-05 00:33:03 UTC
Ok, the problem was in the installation phase.  What happened was that the installation 
wanted to overwrite what was previously a directory (/usr/share/texmf/dvipdfm/config) 
with what is now a file.  So the distribution of files got a bit fuddled up, and confused 
texconfig.  I've fixed this in the tetex-2.0 ebuild; if you want to test it out, try: 
 
# emerge rsync ; emerge unmerge tetex ; emerge "=tetex-1.0.7-r12" ; emerge -u tetex 
 
And let me know if it doesn't work.  I've tested this a couple times, and I'm fairly sure that 
it does indeed work.  If it doesn't, feel free to reopen -- but for now, I'm closing.  :) 
Comment 9 Paul Slinski 2003-02-05 10:39:50 UTC
This build failed for me. The difference is that I did not have divpdfm installed and tetex was looking for it and failing with an error. Maybe it should be a requirement?
Comment 10 Matthew Turk (RETIRED) gentoo-dev 2003-02-05 11:01:57 UTC
tetex-2.0 comes with dvipdfm.  What happens is this: 
 
tetex-1.0.7-r12 installs the directory /usr/share/texmf/dvipdfm/config 
IF you install dvipdfm, it installs files into /usr/share/texmf/dvipdfm/config and 
/usr/share/texmf/dvipdfm 
When upgrading to tetex-2.0, first it builds tetex-2.0, which includes dvipdfm.  Then it 
installs to an image directory, which is then merged into the live filesystem.  Then 
tetex-1.0.7 is removed -- portage typically does this very intelligently, but it let us down 
in this case where a directory changed to a file.  When tetex-2.0 tries to copy the *file* 
config to /usr/share/texmf/dvipdfm it copies it instead to 
/usr/share/texmf/dvipdfm/config/config .  Then when texconfig init looks for it, it 
gives an error. 
 
Please copy and paste the exact error.  If it says it can't find the defaults file for dvipdfm, 
this is the problem -- it's a directory, not a file. 
 
Did you emerge rsync before testing the new build? 
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2003-02-05 14:06:24 UTC
The problem you describe in comment #10 bit me as well.  Won't this get everybody that updates from 1.0.7 to 2.0.0?
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2003-02-05 14:09:12 UTC
Actually, when I hit this bug, the config file is missing completely.  No directory, no file.  I suspect remerging will fix the problem for me... (testing)
Comment 13 Matthew Turk (RETIRED) gentoo-dev 2003-02-05 20:21:37 UTC
No, it shouldn't bite everyone any more.  I committed changes about 24 hours ago to 
conditionally remove that directory.  I'm going to bump the revision in a little while, and 
that revision will contain this fix as well (obviously.) 
Comment 14 Matthew Turk (RETIRED) gentoo-dev 2003-02-06 11:57:26 UTC
Is this still an issue for anyone? 
Comment 15 Andreas Simon 2003-02-06 13:51:44 UTC
I can no longer reproduce the failure when updating  
from tetex-1.0.7-r12 to tetex-2.0-r1. 
Comment 16 Matthew Turk (RETIRED) gentoo-dev 2003-02-06 20:40:04 UTC
Ok.  I've put in a request to have this problem dealt with in future portage versions, as 
well.  I'm closing the bug. 
Comment 17 Phil Richards 2003-02-07 03:37:28 UTC
I know the bugs closed, but just wanted to confirm that updating to 2.0-r1 (from the "broken" 2.0 directly without backtracking to 1.0.7-r12) works fine.