<?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>191441</bug_id>
          
          <creation_ts>2007-09-05 21:30 0000</creation_ts>
          <short_desc>net-dialup/mgetty-1.1.35-r2 -  faxspool needs acroread dependency</short_desc>
          <delta_ts>2007-09-14 20:42:35 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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>craig@gentoo.org</reporter>
          <assigned_to>net-dialup@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>craig@gentoo.org</who>
            <bug_when>2007-09-05 21:30:32 0000</bug_when>
            <thetext>faxspool 17934929 ~/test.pdf
faxq-helper: sequence file does not exist, creating...
spooling to /tmp/F000001.21613.28 (-&gt;F000001)...
spooling /root/yf_agb.pdf...
/root/yf_agb.pdf is format: pdf
/usr/bin/faxspool: line 388: acroread: command not found

Putting Header lines on top of pages...

nothing to do (no cover page, no data).



Well it tries to run acroread, but it&apos;s not there...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>craig@gentoo.org</who>
            <bug_when>2007-09-05 21:31:44 0000</bug_when>
            <thetext>I forgot to change yf_agb.pdf to test.pdf in the text, sorry for that.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nerdboy@gentoo.org</who>
            <bug_when>2007-09-08 18:33:53 0000</bug_when>
            <thetext>Care to clarify that a little bit?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>craig@gentoo.org</who>
            <bug_when>2007-09-09 20:03:20 0000</bug_when>
            <thetext>When you&apos;re trying to send a fax with faxspool, the following method is called in /usr/bin/faxspool to convert the pdf to ghostscript:

fs_cvt_pdf()
{
    driver=&quot;$GS_DRIVER_HI&quot;
    test X$3 = X-n &amp;&amp; driver=&quot;$GS_DRIVER_LO&quot;

    cat $1 |
        acroread -toPostScript |
        gs $driver -sOutputFile=$2%03d -dNOPAUSE -q -dSAFER -
}

Unfortunately, the ebuild does not check the availability of app-text/acroread, so converting your pdf will fail; thus you fax won&apos;t be send.
Maybe the whole script should be changed so that ghostscript is used to convert the pdf instead of acroread? I have no clue why upstream did it this way.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nerdboy@gentoo.org</who>
            <bug_when>2007-09-10 02:38:31 0000</bug_when>
            <thetext>Thanks for the clarification; I was thinking along those same lines, so let me see what I can find to use as an appropriate dep (ie, other than acroread).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nerdboy@gentoo.org</who>
            <bug_when>2007-09-10 04:17:45 0000</bug_when>
            <thetext>Actually, now that I&apos;m looking, /usr/bin/faxspool belongs to mgetty, not hylafax.  Reassigning to net-dialup...

The fix:
  
DEPEND=&quot;virtual/ghostscript&quot;

In src_install:

        dosed &quot;s:acroread -toPostScript:pdf2ps -sOutputFile=- -:g&quot; \
            /usr/bin/faxspool || die &quot;dosed failed&quot;

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nerdboy@gentoo.org</who>
            <bug_when>2007-09-10 04:31:19 0000</bug_when>
            <thetext>That should probably be RDEPEND instead, along with a few other packages being called from that script:

media-libs/netpbm
app-text/acroread

(you&apos;ll need acroread unless you make the suggested change in the previous post, and it needs ghostscript anyway)

I don&apos;t have these, and the script calls them:

giftoppm
hp2log3
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-09-14 06:01:31 0000</bug_when>
            <thetext>I will take care of that.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mrness@gentoo.org</who>
            <bug_when>2007-09-14 20:42:35 0000</bug_when>
            <thetext>Fixed in mgetty-1.1.36, except hp2log3 executable which I don&apos;t have it either. However, this isn&apos;t a show stopper since it is called only for *.{lj,pcl} input files.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>