Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 192471

Summary: sci-visualization/gnuplot-4.2.2 version bump and TEXMFSITE typo / folder change
Product: Gentoo Linux Reporter: Sebastian Schubert <schubert.seb>
Component: New packagesAssignee: Christian Faulhammer (RETIRED) <fauli>
Status: RESOLVED FIXED    
Severity: trivial CC: g2boojum, sci
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for gnuplot.cfg path

Description Sebastian Schubert 2007-09-14 00:21:10 UTC
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 Sebastian Schubert 2007-09-14 00:22:13 UTC
Created attachment 130874 [details, diff]
patch for gnuplot.cfg path
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-14 06:43:02 UTC
(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 Sebastian Schubert 2007-09-14 09:27:55 UTC
(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 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-14 15:43:02 UTC
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 Sebastian Schubert 2007-09-14 17:52:12 UTC
(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.