Bug 192471 - sci-visualization/gnuplot-4.2.2 version bump and TEXMFSITE typo / folder change
Bug#: 192471 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: fauli@gentoo.org Reported By: schubert.seb@googlemail.com
Component: Ebuilds
URL: 
Summary: sci-visualization/gnuplot-4.2.2 version bump and TEXMFSITE typo / folder change
Keywords:  
Status Whiteboard: 
Opened: 2007-09-14 00:21 0000
Description:   Opened: 2007-09-14 00:21 0000
The bugfix release 4.2.2 of gnuplot is released. Renaming worked, the ggi patch
applied successfully but not tested. However, there is a typo in the ebuild:
TEXTMFSITE -> TEXMFSITE and the path is wrong (at least in 4.2.2). Shouldn't be
there a rehash after playing in the texmf folders? See a proposed patch
attached.

thx

Reproducible: Always

Steps to Reproduce:

------- Comment #1 From Sebastian Schubert 2007-09-14 00:22:13 0000 -------
Created an attachment (id=130874) [details]
patch for gnuplot.cfg path

------- Comment #2 From Christian Faulhammer 2007-09-14 06:43:02 0000 -------
(In reply to comment #0)
> The bugfix release 4.2.2 of gnuplot is released. Renaming worked, the ggi patch
> applied successfully but not tested.

 There was no change in ggi upstream, so ok.  Thanks for reporting, fixed in
CVS.

> However, there is a typo in the ebuild:
> TEXTMFSITE -> TEXMFSITE and the path is wrong (at least in 4.2.2). Shouldn't be
> there a rehash after playing in the texmf folders? See a proposed patch
> attached.

 Thanks for noting the typo.  texhash is not needed:

$ cat share/LaTeX/README 
[...]
current working directory).  If your LaTeX distribution contains the
programme 'kpsexpand', the Makefile installes 'gnuplot.cfg' into 
'$TEXMFLOCAL/tex/latex/gnuplot' and updates LaTeX's file database.
[...]

$ equery f tetex|grep kpsexpand
/usr/bin/kpsexpand

------- Comment #3 From Sebastian Schubert 2007-09-14 09:27:55 0000 -------
(In reply to comment #2)
> > Shouldn't be
> > there a rehash after playing in the texmf folders? See a proposed patch
> > attached.
> 
>  Thanks for noting the typo.  texhash is not needed:
> 
> $ cat share/LaTeX/README 
> [...]
> current working directory).  If your LaTeX distribution contains the
> programme 'kpsexpand', the Makefile installes 'gnuplot.cfg' into 
> '$TEXMFLOCAL/tex/latex/gnuplot' and updates LaTeX's file database.
> [...]
> 
> $ equery f tetex|grep kpsexpand
> /usr/bin/kpsexpand

AFAICS kpsexpand is only used to get get the path of TEXMFSITE:

tux LaTeX # cat Makefile | grep kpsexpand
          installdir=`kpsexpand '$$TEXMFSITE'/tex/latex/gnuplot |sed
"s%^.*share/%$(prefix)/share/%"` ; \
          installdir=`kpsexpand '$$TEXMFSITE'/tex/latex/gnuplot |sed
"s%^.*share/%$(prefix)/share/%"` ; \


make tries to run texhash but it fails due to portage (the file isn't even
installed by the time it is run).

make[4]: Entering directory
`/tmp/portage/sci-visualization/gnuplot-4.2.2/work/gnuplot-4.2.2/share/LaTeX'
mkdir -p --
/tmp/portage/sci-visualization/gnuplot-4.2.2/image//usr/share/texmf-site/tex/latex/gnuplot
texhash: /usr/share/texmf/ls-R: no write permission. Skipping...
texhash: /usr/share/texmf-config/ls-R: no write permission. Skipping...
texhash: /usr/share/texmf-dist/ls-R: no write permission. Skipping...
texhash: /usr/share/texmf-local/ls-R: no write permission. Skipping...
texhash: /usr/share/texmf-site/ls-R: no write permission. Skipping...
texhash: /usr/share/texmf-var/ls-R: no write permission. Skipping...
texhash: /var/cache/fonts/ls-R: no write permission. Skipping...
texhash: Done.


The file is not found after emerging.

tux gnuplot # kpsewhich gnuplot.cfg
tux gnuplot # mktexlsr
mktexlsr: Updating /usr/share/texmf/ls-R...
mktexlsr: Updating /usr/share/texmf-config/ls-R...
mktexlsr: Updating /usr/share/texmf-dist/ls-R...
mktexlsr: Updating /usr/share/texmf-local/ls-R...
mktexlsr: Updating /usr/share/texmf-site/ls-R...
mktexlsr: Updating /usr/share/texmf-var/ls-R...
mktexlsr: Updating /var/cache/fonts/ls-R...
mktexlsr: Done.
tux gnuplot # kpsewhich gnuplot.cfg
/usr/share/texmf-site/tex/latex/gnuplot/gnuplot.cfg

Thx

------- Comment #4 From Christian Faulhammer 2007-09-14 15:43:02 0000 -------
Of course, we are in a sandbox. :)
Ok, then I added the rehash from latex-package.eclass.  Please test and close
this bug if ok.  I am away in a few minutes and won't have time to test it.

------- Comment #5 From Sebastian Schubert 2007-09-14 17:52:12 0000 -------
(In reply to comment #4)
> Of course, we are in a sandbox. :)
> Ok, then I added the rehash from latex-package.eclass.  Please test and close
> this bug if ok.  I am away in a few minutes and won't have time to test it.
> 

Thank you, working.