1 https://www.illumos.org/issues/7266
4 +++ yelp-42.2/libyelp/yelp-manpath
12 + printf "$0 -w [section] name\n"
15 +if [ "$1" != "-w" -o $# -gt 3 -o $# -lt 2 ] ; then
20 +if [ $# -eq 3 ] ; then
28 +# If section is set, we need man page from this section.
29 +# if it is not set, show first one
32 + manpath="`echo $str |cut -d \ -f 3`"
33 + mansection="`echo $str |cut -d \( -f 2 | cut -d \) -f 1`"
34 + fullpath="$manpath/man$mansection/$name.$mansection"
35 + if [ -z "$section" ]; then
38 + elif [ "$section" = "$mansection" ]; then
43 --- yelp-42.2/libyelp/yelp-uri.c.orig
44 +++ yelp-42.2/libyelp/yelp-uri.c
47 find_man_path (gchar* name, gchar* section)
49 - const gchar* argv[] = { "man", "-w", NULL, NULL, NULL };
50 + const gchar* argv[] = { LIBEXECDIR "/yelp-manpath" , "-w", NULL, NULL, NULL };
52 gchar *ystdout = NULL;
54 --- yelp-42.2/Makefile.am.orig
55 +++ yelp-42.2/Makefile.am
58 lib_LTLIBRARIES = libyelp/libyelp.la
60 -libexec_SCRIPTS = libyelp/yelp-groff
61 +libexec_SCRIPTS = libyelp/yelp-groff libyelp/yelp-manpath
63 libyelp_libyelp_la_SOURCES = \
64 libyelp/yelp-bookmarks.c \
66 $(YELP_EXTENSION_CFLAGS)
68 libyelp_web_extension_libyelpwebextension_la_CPPFLAGS = \
69 + -DLIBEXECDIR=\"$(libexecdir)\" \
70 -DDATADIR=\""$(datadir)"\" \
71 -DYELP_ICON_PATH=\"$(YELP_ICON_PATH)\" \
72 -I$(top_srcdir)/libyelp