Resolves: #530788
This commit is contained in:
parent
a072af177b
commit
e3e620a019
18
groff-info-missing-x11.patch
Normal file
18
groff-info-missing-x11.patch
Normal file
@ -0,0 +1,18 @@
|
||||
Adds info message that 'groff-x11' package might be missing when executing
|
||||
'groff -X' and 'gxditview' is not found.
|
||||
|
||||
Author: Jan Vcelak <jvcelak@redhat.com>
|
||||
Fixes: #530788 groff and groff-gxditview shouldn't be split
|
||||
|
||||
diff -ur groff-1.20.1.orig/src/roff/groff/pipeline.c groff-1.20.1/src/roff/groff/pipeline.c
|
||||
--- groff-1.20.1.orig/src/roff/groff/pipeline.c 2010-03-19 11:06:37.437182240 +0100
|
||||
+++ groff-1.20.1/src/roff/groff/pipeline.c 2010-03-19 11:42:14.820161806 +0100
|
||||
@@ -486,6 +486,8 @@
|
||||
execvp(commands[i][0], commands[i]);
|
||||
error("couldn't exec %1: %2",
|
||||
commands[i][0], strerror(errno), (char *)0);
|
||||
+ if (strcmp(commands[i][0], "gxditview") == 0)
|
||||
+ fprintf(stderr, "You might be missing 'groff-x11' package.\n");
|
||||
fflush(stderr); /* just in case error() doesn't */
|
||||
_exit(EXEC_FAILED_EXIT_STATUS);
|
||||
}
|
@ -3,13 +3,15 @@
|
||||
Summary: A document formatting system
|
||||
Name: groff
|
||||
Version: 1.20.1
|
||||
Release: 0%{?dist}
|
||||
Release: 1%{?dist}
|
||||
License: GPLv3+ and GFDL and BSD and MIT
|
||||
Group: Applications/Publishing
|
||||
URL: http://groff.ffii.org
|
||||
|
||||
Source0: ftp://ftp.gnu.org/gnu/groff/groff-%{version}.tar.gz
|
||||
|
||||
Patch1: groff-info-missing-x11.patch
|
||||
|
||||
Requires: mktemp
|
||||
Requires: /sbin/install-info
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -73,6 +75,7 @@ language and documentation for creating PDF files.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .info-missing-x11
|
||||
|
||||
for file in NEWS src/devices/grolbp/grolbp.man doc/{groff.info*,webpage.ms} \
|
||||
contrib/mm/*.man contrib/mom/examples/{README.txt,*.mom} ; do
|
||||
@ -186,6 +189,9 @@ fi
|
||||
%doc %{_docdir}/%{name}-%{version}/pdf/
|
||||
|
||||
%changelog
|
||||
* Fri Mar 19 2010 Jan Vcelak <jvcelak@redhat.com> - 1.20.1-1
|
||||
- Resolves: #530788
|
||||
|
||||
* Tue Mar 12 2010 Jan Vcelak <jvcelak@redhat.com> - 1.20.1-0
|
||||
- Package rebase to upstream 1.20.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user