Blame SOURCES/0001-missing-groff-x11-info-message-when-gxditview-not-fo.patch

706f28
From 2f311bd175e78f889df099d5fcd945f357d6f037 Mon Sep 17 00:00:00 2001
706f28
From: Jan Vcelak <jvcelak@redhat.com>
706f28
Date: Tue, 1 Jan 2013 15:32:01 +0100
706f28
Subject: [PATCH 1/4] missing groff-x11 info message when gxditview not found
706f28
706f28
Adds info message that 'groff-x11' package might be missing when
706f28
executing 'groff -X' and 'gxditview' is not found.
706f28
706f28
Resolves: #530788
706f28
Signed-off-by: Jan Vcelak <jvcelak@redhat.com>
706f28
---
706f28
 src/roff/groff/pipeline.c | 2 ++
706f28
 1 file changed, 2 insertions(+)
706f28
706f28
diff --git a/src/roff/groff/pipeline.c b/src/roff/groff/pipeline.c
706f28
index 2e3236f..75268c2 100644
706f28
--- a/src/roff/groff/pipeline.c
706f28
+++ b/src/roff/groff/pipeline.c
706f28
@@ -487,6 +487,8 @@ int run_pipeline(int ncommands, char ***commands, int no_pipe)
706f28
       execvp(commands[i][0], commands[i]);
706f28
       error("couldn't exec %1: %2",
706f28
 	    commands[i][0], strerror(errno), (char *)0);
706f28
+	  if (strcmp(commands[i][0], "gxditview") == 0)
706f28
+	    fprintf(stderr, "You might be missing 'groff-x11' package.\n");
706f28
       fflush(stderr);			/* just in case error() doesn't */
706f28
       _exit(EXEC_FAILED_EXIT_STATUS);
706f28
     }
706f28
-- 
706f28
2.21.1
706f28