Bug 901867 - postinstall scriptlet error in all texlive packages
Summary: postinstall scriptlet error in all texlive packages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: texlive
Version: 18
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 904700
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-19 17:57 UTC by Maurizio Paolini
Modified: 2013-07-02 23:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-16 00:57:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Maurizio Paolini 2013-01-19 17:57:23 UTC
Description of problem:

It seems that the postuninstall scriptlet of all texlive packages contain
an error:

# rpm -q --scripts texlive-luacode-1.2.svn25193-10.fc18.noarch
postinstall scriptlet (using /bin/sh):
mkdir -p /var/run/texlive
touch /var/run/texlive/run-texhash
touch /var/run/texlive/run-mtxrun
:
postuninstall scriptlet (using /bin/sh):
if [ $1 == 1 ]; then
  mkdir -p /var/run/texlive
  touch /var/run/run-texhash
else
  /usr/bin/texhash 2> /dev/null
fi
[...]

I guess that 

touch /var/run/run-texhash

should be:

touch /var/run/texlive/run-texhash



Version-Release number of selected component (if applicable):

eg:

texlive-luacode-1.2.svn25193-10.fc18.noarch


I stumbled upon this while researching about another big problem during
upgrade from fedora 17 to fedora 18, there is an entry about this from
Paul Wouters in the Fedora.devel list

------
From: Paul Wouters <paul <at> nohats.ca>
Subject: texlua running for 8+ hours using 5GB of ram on yum update?	(texlive-context-bin bug?)
Newsgroups: gmane.linux.redhat.fedora.devel
Date: 2012-12-30 00:24:46 GMT (2 weeks, 6 days, 16 hours and 57 minutes ago)
[...]

Comment 1 Maurizio Paolini 2013-01-20 09:47:16 UTC
And additionally the posttrans scriptlet reads as:

posttrans scriptlet (using /bin/sh):
[ -e /var/run/texlive/run-texhash ] && [ -e /usr/bin/texhash ] && /usr/bin/texhash 2> /dev/null; rm -f /var/run/texlive/run-texhash
[ -e /var/run/texlive/run-mtxrun ] && export TEXMF=/usr/share/texlive/texmf-dist; export TEXMFCNF=/usr/share/texlive/texmf/web2c; export TEXMFCACHE=/var/lib/texmf; /usr/bin/mtxrun --generate &> /dev/null; rm -f /var/run/texlive/run-mtxrun
:

---------------

The intention seems to be: run (e.g.) "/usr/bin/mtxrun --generate"
ONLY if the file /var/run/texlive/run-mtxrun exists.

However the ";" in that bash line separates entirely different bash commands,
so that "/usr/bin/mtxrun" --generate is executed unconditionally!

---

This explains the incredibly long postinstall time during an upgrade from fedora
17, where approx 1000 new texlive packages get installed!

Comment 2 Jindrich Novy 2013-01-24 16:08:18 UTC
Hi Paolo,

good catch. I fixed it in sources and will release F18 update as soon as upstream gets compilable again.

Thanks!

Comment 3 Fedora Update System 2013-02-06 14:32:34 UTC
texlive-2012-16.20130205_r29034.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/texlive-2012-16.20130205_r29034.fc18

Comment 4 Fedora Update System 2013-02-08 02:15:37 UTC
Package texlive-2012-16.20130205_r29034.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing texlive-2012-16.20130205_r29034.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2048/texlive-2012-16.20130205_r29034.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-02-16 00:57:42 UTC
texlive-2012-16.20130205_r29034.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.