<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>192471</bug_id>
          
          <creation_ts>2007-09-14 00:21 0000</creation_ts>
          <short_desc>sci-visualization/gnuplot-4.2.2 version bump and TEXMFSITE typo / folder change</short_desc>
          <delta_ts>2007-09-14 17:52:12 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>schubert.seb@googlemail.com</reporter>
          <assigned_to>fauli@gentoo.org</assigned_to>
          <cc>g2boojum@gentoo.org</cc>
    
    <cc>sci@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2007-09-14 00:21:10 0000</bug_when>
            <thetext>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 -&gt; TEXMFSITE and the path is wrong (at least in 4.2.2). Shouldn&apos;t be there a rehash after playing in the texmf folders? See a proposed patch attached.

thx

Reproducible: Always

Steps to Reproduce:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2007-09-14 00:22:13 0000</bug_when>
            <thetext>Created an attachment (id=130874)
patch for gnuplot.cfg path

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-09-14 06:43:02 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; The bugfix release 4.2.2 of gnuplot is released. Renaming worked, the ggi patch
&gt; applied successfully but not tested.

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

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

 Thanks for noting the typo.  texhash is not needed:

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

$ equery f tetex|grep kpsexpand
/usr/bin/kpsexpand
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2007-09-14 09:27:55 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; &gt; Shouldn&apos;t be
&gt; &gt; there a rehash after playing in the texmf folders? See a proposed patch
&gt; &gt; attached.
&gt; 
&gt;  Thanks for noting the typo.  texhash is not needed:
&gt; 
&gt; $ cat share/LaTeX/README 
&gt; [...]
&gt; current working directory).  If your LaTeX distribution contains the
&gt; programme &apos;kpsexpand&apos;, the Makefile installes &apos;gnuplot.cfg&apos; into 
&gt; &apos;$TEXMFLOCAL/tex/latex/gnuplot&apos; and updates LaTeX&apos;s file database.
&gt; [...]
&gt; 
&gt; $ equery f tetex|grep kpsexpand
&gt; /usr/bin/kpsexpand

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

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


make tries to run texhash but it fails due to portage (the file isn&apos;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&apos;
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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-09-14 15:43:02 0000</bug_when>
            <thetext>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&apos;t have time to test it.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>schubert.seb@googlemail.com</who>
            <bug_when>2007-09-14 17:52:12 0000</bug_when>
            <thetext>(In reply to comment #4)
&gt; Of course, we are in a sandbox. :)
&gt; Ok, then I added the rehash from latex-package.eclass.  Please test and close
&gt; this bug if ok.  I am away in a few minutes and won&apos;t have time to test it.
&gt; 

Thank you, working.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>130874</attachid>
            <date>2007-09-14 00:22 0000</date>
            <desc>patch for gnuplot.cfg path</desc>
            <filename>gnuplot.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGdudXBsb3QtNC4yLjAtcjIuZWJ1aWxkCTIwMDctMDktMTQgMDI6MDg6NTAuMDAwMDAwMDAw
ICswMjAwCisrKyBnbnVwbG90LTQuMi4yLmVidWlsZAkyMDA3LTA5LTE0IDAyOjA0OjQ1LjAwMDAw
MDAwMCArMDIwMApAQCAtNTUsMTAgKzU1LDEwIEBACiAJIyBTZWUgYnVnICMxNTY0MjcuCiAJaWYg
dXNlIHRldGV4IDsgdGhlbgogCQlzZWQgLWkgXAotCQkJLWUgJ3MvVEVYTUZMT0NBTC9URVhUTUZT
SVRFL2cnIHNoYXJlL01ha2VmaWxlLmluIHx8IGRpZSAic2VkIGZhaWxlZCIKKwkJCS1lICdzL1RF
WE1GTE9DQUwvVEVYTUZTSVRFL2cnIHNoYXJlL0xhVGVYL01ha2VmaWxlLmluIHx8IGRpZSAic2Vk
IGZhaWxlZCIKIAllbHNlCiAJCXNlZCAtaSBcCi0JCQktZSAnL15TVUJESVJTLyBzL0xhVGVYLy8n
IHNoYXJlL01ha2VmaWxlLmluIHx8IGRpZSAic2VkIGZhaWxlZCIKKwkJCS1lICcvXlNVQkRJUlMv
IHMvTGFUZVgvLycgc2hhcmUvTGFUZVgvTWFrZWZpbGUuaW4gfHwgZGllICJzZWQgZmFpbGVkIgog
CWZpCiAKIAlpZiB1c2Ugd3h3aW5kb3dzIDsgdGhlbgpAQCAtMTYxLDggKzE2MSwxMCBAQAogCQll
aW5mbyAidGhpcyBpcyB1c3VhbGx5IGNvbnNpZGVyZWQgdG8gYmUgYSBzZWN1cml0eSBoYXphcmQu
IgogCQllaW5mbyAiQXMgcm9vdCwgbWFudWFsbHkgXCJjaG1vZCB1K3MgL3Vzci9iaW4vZ251cGxv
dFwiLiIKIAlmaQorCXVzZSB0ZXRleCAmJiBta3RleGxzcgogfQogCiBwa2dfcG9zdHJtKCkgewog
CXVzZSBlbWFjcyAmJiBlbGlzcC1zaXRlLXJlZ2VuCisJdXNlIHRldGV4ICYmIG1rdGV4bHNyCiB9
Cg==
</data>        

          </attachment>
    </bug>

</bugzilla>