pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / xman / patches / groff.patch
blob7caa479af26b89104b9352ac26d76d2735c9b217
1 Update #ifdefs for Solaris to use correct groff options to get readable
2 output instead of raw PostScript output for man pages, and put the rest
3 of the groff utilities (tbl, pic, etc.) ahead of the SVR4 ones in $PATH.
5 --- a/main.c Thu Mar 19 08:16:44 2015
6 +++ b/main.c Thu Mar 19 08:17:07 2015
7 @@ -152,6 +152,18 @@
8 saved_argv = (char **) XtMalloc(argc * sizeof(char *));
9 bcopy(argv, saved_argv, argc * sizeof(char *));
11 +#ifdef sun /* force use of groff tools vs. SVR4 nroff tools */
12 + {
13 + const char *orig_path = getenv("PATH");
14 + char *new_path;
16 + if (asprintf(&new_path, "PATH=/usr/gnu/bin:%s",
17 + orig_path ? orig_path : "/usr/bin") != -1) {
18 + putenv(new_path);
19 + }
20 + }
21 +#endif
23 XtSetLanguageProc(NULL, (XtLanguageProc) NULL, NULL);
25 initial_widget = XtAppInitialize(&app_con, "Xman", xman_options,
26 --- a/vendor.h Thu Mar 19 08:17:24 2015
27 +++ b/vendor.h Thu Mar 19 08:18:44 2015
28 @@ -159,7 +159,7 @@
29 # define REFER "refer"
30 # if defined(CSRG_BASED)
31 # define FORMAT "nroff -mandoc"
32 -# elif defined(linux) || defined(__CYGWIN__)
33 +# elif defined(linux) || defined(__CYGWIN__) || defined(sun)
34 # define FORMAT "GROFF_NO_SGR= groff -Tlatin1 -mandoc"
35 # elif defined(__DARWIN__)
36 # define FORMAT "nroff -man"