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

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