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

Bug#612924: Bug#600012: texlive-base: Claims to recreate pdftexconfig.tex upon clean install



Frank Küster <frank@debian.org> wrote:

> First of all, the follow-up mail to my original bug report #60012 was
> misdirected, 

and this bug seems to have been bogus from the beginning.  I have no
idea what I did back then, but I _cannot_ reproduce it in squeeze or
sid. There's also no indication in the code what could go wrong.
Therefore closing.

> Then, if my above analysis was right, we should prepare a fix for
> squeeze.  And hm, maybe, not remove the code in sid, but just comment it
> out and watch what happens...

The analysis was not right.  It's in the function resurrect_conffile_sid
that the commandline arguments to the preinst script are checked.  And
only upon upgrading it tries to do something.  However, there is a bug
(#612924), as discussed earlier:

$ loginlenny
...
# aptitude install texlive-base
...
# rm /etc/texmf/tex/generic/config/pdftexconfig.tex
# $edit /etc/apt/sources.list # to point to squeeze
# aptitude update
...
# aptitude safe-upgrade 2>&1 | tee s_upgrade.lg
...

gives

Preparing to replace texlive-base 2007.dfsg.2-1~lenny2 (using .../texlive-base_2009-11_all.deb) ...
Reinstalling deleted mandatory conffile pdftexconfig.tex
cp: cannot stat `/usr/share/texlive-base/pdftexconfig.tex': No such file or directory
dpkg: error processing /var/cache/apt/archives/texlive-base_2009-11_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Preparing to replace texlive-doc-base 2007.dfsg.2-1 (using .../texlive-doc-base_2009-2_all.deb) ...
Unpacking replacement texlive-doc-base ...
dpkg: regarding .../texlive-common_2009-11_all.deb containing texlive-common:
 texlive-common conflicts with texlive-base (<< 2009-1)
  texlive-base (version 2007.dfsg.2-1~lenny2) is present and installed.
dpkg: error processing /var/cache/apt/archives/texlive-common_2009-11_all.deb (--unpack):
 conflicting packages - not installing texlive-common
dpkg: regarding .../tex-common_2.08_all.deb containing tex-common:
 tex-common conflicts with texlive-common (<< 2009)
  texlive-common (version 2007.dfsg.2-1~lenny2) is present and installed.
dpkg: error processing /var/cache/apt/archives/tex-common_2.08_all.deb (--unpack):
 conflicting packages - not installing tex-common

as previously described.  But the reason is not only that the template
file is in /usr/share/texlive-bin/, moreover: In many cases texlive-bin
is removed prior to installing texlive-base as a decision of aptitude's
conflict resolver.

That means we have no possibility to resurrect the file in preinst.
There's code to do it again in postinst anyway. 

So simply dropping that line would be the patch, I guess. I will test it
and ask release about a fix for stable.

Regards, Frank
-- 
Frank Küster
Vorstand B90/Grüne OV Miltenberg und Umgebung
VCD Miltenberg, ADFC Aschaffenburg-Miltenberg
Debian Developer (TeXLive)



Reply to: