[Bug 755533] New: groff -Thtml -t does not produce output for tables due to wrong devhtml/DESC image_generator entry
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c0 Summary: groff -Thtml -t does not produce output for tables due to wrong devhtml/DESC image_generator entry Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: i686 OS/Version: openSUSE 12.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rspmn@arcor.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=484678) --> (http://bugzilla.novell.com/attachment.cgi?id=484678) groff input to demonstrate bug User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0 groff -Thtml -t does not produce output for tables etc. due to the wrong /usr/share/groff/1.21/font/devhtml/DESC image_generator missing entry which should be image_generator gs . It looks like configure does not find a valid gs command during build or should be called with an explicit --with-gs=... argument. Reproducible: Always Steps to Reproduce: 1. Execute the following command with the attached tbltest.gro file groff -P-p -t -Thtml -ms tbltest.gro > tbltest.html Actual Results: groff outputs [1] Calling `echo showpage | missing -q -dBATCH -dSAFER -dDEVICEHEIGHTPOINTS=792 -dDEVICEWIDTHPOINTS=700 -dFIXEDMEDIA=true -sDEVICE=pnmraw -r100 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=/tmp/groff-page-88ljz9 /tmp/groff-ps-wVBrR9 - ' returned status 32512 Calling `pnmcut 100 267 155 102 < /tmp/groff-page-88ljz9 | pnmcrop -quiet | pnmtopng -background rgb:f/f/f -transparent rgb:f/f/f > grohtml-38871.png ' returned status 256 done and generates an empty grohtml-<number>.png file Expected Results: groff output should have been [1] done and grohtml-<number>.png should have contained the gs output for the table. Even when the correct image_generator entry is used the output is incorrect for locales with letter size paper (e.g. LANG=en_US) as the .png file for the table is cropped off while the output looks correct for locales with A4 size paper (e.g. LANG=de_DE). This seems to be caused by the patch to src/preproc/html/pre-html.cpp in groff_1.21-6.debian.diff. Please consider reviewing (or deleting) this particular patch. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@novell.com AssignedTo|bnc-team-screening@forge.pr |dmueller@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dmueller@suse.com |mvyskocil@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c1 Reinhard Speyerer <rspmn@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rspmn@arcor.de Component|Other |Other AssignedTo|mvyskocil@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 12.1 |openSUSE 12.2 Target Milestone|--- |Final OS/Version|openSUSE 12.1 |openSUSE 12.2 --- Comment #1 from Reinhard Speyerer <rspmn@arcor.de> 2012-09-16 13:40:55 UTC --- Since -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c2 --- Comment #2 from Reinhard Speyerer <rspmn@arcor.de> 2012-09-16 13:44:17 UTC --- Since the problem also occurs with openSUSE 12.2 and since I am assuming that no updates for openSUSE 12.1 will be done for this bug I have updated Product and Platform accordingly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |mvyskocil@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c3 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED --- Comment #3 from Michal Vyskocil <mvyskocil@suse.com> 2012-10-31 14:15:21 UTC --- I must overlook this one, sorry -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c4 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |rspmn@arcor.de --- Comment #4 from Michal Vyskocil <mvyskocil@suse.com> 2012-10-31 14:52:59 UTC --- OK, simply skip the debian and lanugage patches does not help - the produced png is still empty
Even when the correct image_generator entry
I'm not an expert in groff, so can you elaborate it more? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c5 Reinhard Speyerer <rspmn@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rspmn@arcor.de | --- Comment #5 from Reinhard Speyerer <rspmn@arcor.de> 2012-10-31 20:58:34 UTC --- (In reply to comment #4)
I'm not an expert in groff, so can you elaborate it more?
The image_generator line contains the name of the program which is used to convert PostScript to PNG. It normally contains (e.g. on Knoppix 7.0.4 or NetBSD 6.0): image_generator gs It looks like configure is not able to detect the presence of gs when building groff. Could you please check your build dependencies? Alternatively it might also work to use configure ... --with-gs=gs ... if you are sure that it present when groff is built. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c6 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |rspmn@arcor.de --- Comment #6 from Michal Vyskocil <mvyskocil@suse.com> 2012-11-01 09:15:44 UTC --- Good point! 515 [ 60s] configure: WARNING: missing programs: 516 [ 60s] 517 [ 60s] The programs 518 [ 60s] `pnmcut', `pnmcrop', `pnmtopng', `psselect', `pnmtops' and `gs' 519 [ 60s] cannot be found in the PATH. 520 [ 60s] Consequently, groff's HTML backend (grohtml) will not work properly; 521 [ 60s] therefore, it will neither be possible to prepare, nor to install, 522 [ 60s] documentation in HTML format. I have to think how to split the groff's build correctly, but for the maintenance update, simply add the missing stuff and rebuild might be enough.
Even when the correct image_generator entry is used the output is incorrect for locales with letter size paper (e.g. LANG=en_US) as the .png file for the table is cropped off while the output looks correct for locales with A4 size paper (e.g. LANG=de_DE).
Starting openSUSE 12.1 groff reflects the value of LC_PAPER, and I see it have an impact on the pnmcut values LC_PAPER=de_DE.UTF-8 groff -P-p -t -Thtml -ms tbltest.gro > /dev/null ... Calling `pnmcut 100 199 155 102 LC_PAPER=en_US.UTF-8 groff -P-p -t -Thtml -ms tbltest.gro > /dev/null ... Calling `pnmcut 100 267 155 102 can you test it? BTW: see man groff_font (papersize) about locale keyword, and use grep -R 'papersize.*locale' /usr/share/groff/ to see, where the papersize is setup according locale. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c7 Reinhard Speyerer <rspmn@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rspmn@arcor.de | --- Comment #7 from Reinhard Speyerer <rspmn@arcor.de> 2012-11-01 17:33:23 UTC --- (In reply to comment #6)
Starting openSUSE 12.1 groff reflects the value of LC_PAPER, and I see it have an impact on the pnmcut values
LC_PAPER=de_DE.UTF-8 groff -P-p -t -Thtml -ms tbltest.gro > /dev/null ... Calling `pnmcut 100 199 155 102
LC_PAPER=en_US.UTF-8 groff -P-p -t -Thtml -ms tbltest.gro > /dev/null ... Calling `pnmcut 100 267 155 102
can you test it?
Using LANG=en_US, the groff from groff-1.21-11.1.8.i586 on openSUSE 12.2 and a wrapper around /usr/bin/pnmcut with env LC_PAPER=de_DE.UTF8 GROFF_FONT_PATH=~/groff/font groff -P-p -t -Thtml -ms ~/wrk/tbltest.gro > tbltest.html and env LC_PAPER=en_US.UTF8 GROFF_FONT_PATH=~/groff/font groff -P-p -t -Thtml -ms ~/wrk/tbltest.gro > tbltest.html pnmcut gets called with the same arguments as for you but the generated .png does not contain the full table with LC_PAPER=en_US.UTF8. Using a locally built groff 1.21 without any patches applied the generated .png looks correct for both LC_PAPER=de_DE.UTF8 and LC_PAPER=en_US.UTF8 (pnmcut gets called with 100 199 155 102 in both cases). My suggestions if therefore still to consider reviewing (or deleting) the patch to src/preproc/html/pre-html.cpp in groff_1.21-6.debian.diff. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c8 Reinhard Speyerer <rspmn@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |Other AssignedTo|mvyskocil@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 12.2 |openSUSE 12.3 OS/Version|openSUSE 12.2 |openSUSE 12.3 --- Comment #8 from Reinhard Speyerer <rspmn@arcor.de> 2013-05-02 20:15:35 UTC --- Since the problem also occurs with openSUSE 12.3 and since I am assuming that no updates for openSUSE 12.2 will be done for this bug I have updated Product and Platform accordingly. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c9 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P2 - High CC| |mvyskocil@suse.com AssignedTo|bnc-team-screening@forge.pr |mvyskocil@suse.com |ovo.novell.com | --- Comment #9 from Michal Vyskocil <mvyskocil@suse.com> 2013-05-06 14:03:57 UTC --- I've lost it from a track, sorry. Now I am working on a new packaging of a groff inspired by Debian. The groff.rpm will contain only a basic set of tools and others will be placed in a groff-full. This will avoid all bootstrapping issues and will fix the problem some tools are built without psutils or ghostscript in a PATH. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c10 --- Comment #10 from Michal Vyskocil <mvyskocil@suse.com> 2013-05-09 09:42:00 UTC --- JFI: the new packaging layout has been submitted to M17N (the grohtml is now in groff-full.rpm). Can you make a test if this version fixes your problem? The Debian's patch still modify src/preproc/html/pre-html.cpp, but I can remove it later to see if it will help. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c11 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |rspmn@arcor.de --- Comment #11 from Michal Vyskocil <mvyskocil@suse.com> 2013-05-09 13:19:53 UTC --- I've forgot to mention - links to groff packages http://download.opensuse.org/repositories/M17N/openSUSE_12.3/x86_64/groff-1.... http://download.opensuse.org/repositories/M17N/openSUSE_12.3/x86_64/groff-fu... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c12 --- Comment #12 from Reinhard Speyerer <rspmn@arcor.de> 2013-05-10 19:06:15 UTC --- Created an attachment (id=538785) --> (http://bugzilla.novell.com/attachment.cgi?id=538785) screenshot of cropped table -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c13 --- Comment #13 from Reinhard Speyerer <rspmn@arcor.de> 2013-05-10 19:07:13 UTC --- Created an attachment (id=538786) --> (http://bugzilla.novell.com/attachment.cgi?id=538786) screenshot of OK table -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c14 Reinhard Speyerer <rspmn@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rspmn@arcor.de | --- Comment #14 from Reinhard Speyerer <rspmn@arcor.de> 2013-05-10 19:14:34 UTC --- Thanks for providing updated packages. I tested with groff-full-1.22.2-223.1.i586.rpm & groff-1.22.2-223.1.i586.rpm for the 32 bit version. Since devhtml/DESC now contains the correct image_generator entry the .png are now generated. However the table is still cropped for the env LC_PAPER=en_US groff ... case. Please refer to the attached firefox screenshots. I could not observe the cropping for the LC_PAPER=en_US case when using a locally built groff from unpatched groff 1.22.2 sources. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c15 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |rspmn@arcor.de --- Comment #15 from Michal Vyskocil <mvyskocil@suse.com> 2013-06-04 07:52:25 UTC --- OK, let's try the groff with removed src/preproc/html/pre-html.cpp part. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c16 Reinhard Speyerer <rspmn@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rspmn@arcor.de | --- Comment #16 from Reinhard Speyerer <rspmn@arcor.de> 2013-06-04 14:41:23 UTC --- Thanks for providing updated packages. I tested with groff-full-1.22.2-224.1.i586.rpm & groff-1.22.2-224.1.i586.rpm for the 32 bit version. groff -Thtml now produces the correct (i.e. uncropped) table for both LC_PAPER=de_DE and LC_PAPER=en_US for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c17 --- Comment #17 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-06-05 06:00:12 CEST --- This is an autogenerated message for OBS integration: This bug (755533) was mentioned in https://build.opensuse.org/request/show/177705 Factory / groff -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=755533 https://bugzilla.novell.com/show_bug.cgi?id=755533#c18 Michal Vyskocil <mvyskocil@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #18 from Michal Vyskocil <mvyskocil@suse.com> 2013-06-05 06:49:40 UTC --- OK, thanks for a big patience with me! Now pushed to Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com