Package: hylafax-client Version: 3:6.0.6-5 Severity: normal Tags: patch Dear Maintainer,
when calling sendfax or faxmail with a jpg file, fax sending fails with Error: /undefined in -inf\ This is caused by pnmtops, which is called as defined in /etc/hylafax/typerules: >6 string JFIF ps jpegtopnm < %i| ppmtopgm | \ pnmscale -xysize %w %l | \ pnmtops -dpi %R -equalpixels > %o "%R" is substituted with a float, 204.00 in my case, and apparently gets interpreted by pnmtops as 0 instead of 204. Maybe this should be a pnmtops bug, and maybe one could circumvent this by modifying /etc/hylafax/typerules, but eliminating the fractional digits by patching hylafax-6.0.6/libhylafax/TypeRules.c++ is a possible solution. Best regards Frank -- System Information: Debian Release: 7.2 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF8, LC_CTYPE=de_DE.UTF8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages hylafax-client depends on: ii enscript 1.6.5.90-2 ii ghostscript 9.05~dfsg-6.3+deb7u1 ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.2 ii libc6 2.13-38 ii libgcc1 1:4.7.2-5 ii libjbig0 2.0-2 ii libpaper-utils 1.1.24+nmu2 ii libstdc++6 4.7.2-5 ii libtiff5 4.0.2-6+deb7u2 ii ucf 3.0025+nmu3 ii zlib1g 1:1.2.7.dfsg-13 Versions of packages hylafax-client recommends: ii netpbm 2:10.0-15+b1 ii transfig 1:3.2.5.d-3 Versions of packages hylafax-client suggests: ii mgetty-viewfax 1.1.36-1.6 -- Configuration Files: /etc/hylafax/hyla.conf changed [not included] -- no debconf information
Index: hylafax-6.0.6/libhylafax/TypeRules.c++ =================================================================== --- hylafax-6.0.6.orig/libhylafax/TypeRules.c++ 2013-10-16 20:05:03.000000000 +0200 +++ hylafax-6.0.6/libhylafax/TypeRules.c++ 2013-10-16 20:34:32.187667461 +0200 @@ -237,9 +237,9 @@ switch (c = cmd[i]) { case 'i': fmtd.append(quoted(input)); continue; case 'o': fmtd.append(quoted(output)); continue; - case 'R': fmtd.append(fxStr(hr, "%.2f")); continue; + case 'R': fmtd.append(fxStr(hr, "%.0f")); continue; case 'r': fmtd.append(fxStr(hr/25.4, "%.2g")); continue; - case 'V': fmtd.append(fxStr(vr, "%.2f")); continue; + case 'V': fmtd.append(fxStr(vr, "%.0f")); continue; case 'v': fmtd.append(fxStr(vr/25.4, "%.2g")); continue; case 'f': fmtd.append(df); continue; case 'W': fmtd.append(fxStr(pw, "%.4g")); continue;