From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1 Description of problem: sgml2latex generates pdf output even if --output=dvi option is passed to it. This is caused by the bad condition in mapping. Version-Release number of selected component (if applicable): linuxdoc-tools-0.9.21 How reproducible: Always Steps to Reproduce: 1. sgml2latex iproute/doc/ss.sgml 2. latex ss.tex [with teTeX-3.0] 3. output file is PDF instead of default DVI Additional info:
Created attachment 111368 [details] Patch to "mapping" file that fixes the issue.
This blocks correct rebuild of pam in RAWHIDE.
This fix is incomplete. \ifpdf is used elsewhere in that file.
I've checked in a more complete fix -- please try 0.9.21-2.
Tim, I just noticed that when testing it on pam. I've done a more complete fix. I'll attach it also here.
Created attachment 111382 [details] Complete fix for all document classes in "mapping" and also for "tr-mapping"
Applied and built as 0.9.21-3.
This is not right. The \ifx\pdfoutput\defined doesn't test for definition of \pdfoutput, it's actually exactly the same as \ifx\pdfoutput\undefined. You've just simply inverted the if condition and thus it will not generate pdf output correctly. It will generate it but the conditions will not be evaluated as true so the output will be different.
Created attachment 111388 [details] Better patch This patch will work with both old and new tetex versions.
Thanks. Okay, built as 0.9.21-4.
Fixes my problem with iproute build. Thanks
Tim, this problem is well known in upstream as well an they suggest the following solution to this issue: \ifx\pdfoutput\undefined <not running PDFTeX> \else \ifx\pdfoutput\relax <not running PDFTeX> \else <running PDFTeX, with...> \ifnum\pdfoutput>0 <...PDF output> \else <...DVI output> \fi \fi \fi
Closing as CURRENTRELEASE.