Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 198071 - app-text/man2html does not work (no bz2 support etc.)
Summary: app-text/man2html does not work (no bz2 support etc.)
Status: RESOLVED DUPLICATE of bug 179546
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-04 16:41 UTC by Heiner Kuhlmann
Modified: 2007-11-04 18:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiner Kuhlmann 2007-11-04 16:41:49 UTC
http://localhost/cgi-bin/man/mansec?http://localhost/cgi-bin/man+2
provides links not working (bz2)

man2html does not support bzip2

Reproducible: Always




I changed some scripts and fixed the problem.

Apply the attached patch

cd cd /usr/share/webapps/man2html/1.5l-r2/hostroot/cgi-bin/
patch -p0 < patch_man2html_hfk

patch_man2html_hfk:

diff -Naur man/man2html man.hfk/man2html
--- man/man2html        2007-11-04 07:47:11.000000000 +0000
+++ man.hfk/man2html    2007-11-04 08:01:28.000000000 +0000
@@ -90,6 +90,9 @@
     *.gz)
        zcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
        ;;
+    *.bz2)
+       bzcat "$PAGE" | "$MAN2HTML" "$LL" -D "$PAGE"
+       ;;
     *)
        "$MAN2HTML" "$LL" "$PAGE"
        ;;
diff -Naur man/mansearch man.hfk/mansearch
--- man/mansearch       2007-11-04 07:47:11.000000000 +0000
+++ man.hfk/mansearch   2007-11-04 07:48:26.000000000 +0000
@@ -153,7 +153,7 @@
       }
       print "<DT> <a href=\"" cgipath "/man2html?" fullname "\">";
       textname = filename;
-      sub(/\.(gz)|Z|z$/, "", textname);
+      sub(/\.(gz)|\.(bz2)|(pm)$|Z|z$/, "", textname);
       sub(/\./, "(", textname);
       textname = textname ")";
       print textname;
diff -Naur man/mansec man.hfk/mansec
--- man/mansec  2007-11-04 07:47:11.000000000 +0000
+++ man.hfk/mansec      2007-11-04 07:48:26.000000000 +0000
@@ -129,8 +129,8 @@
                                # Print out alphabetic quick index and other links
       }
                                # Split page.n into "page" and "n" and generate an entry
-      sub(/[.]([zZ]|(gz))$/, "", manpage);
-      match(manpage, /[.][^.]+$/);     
+      sub(/(pm|(pm)?[.]([zZ]|(gz)|(bz2)))$/, "", manpage);
+      match(manpage, /[.][^.]+$/);
       title = substr(manpage, 1, RSTART - 1);
       if (section != "all") {
         print "<a href=\"" cgipath "/man2html?", section, "+", title, "\">", title, "(", substr(manpage, RSTART + 1), ")</a>" > buffer_tmp;
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-11-04 18:11:01 UTC

*** This bug has been marked as a duplicate of bug 179546 ***