summaryrefslogtreecommitdiffstats
path: root/groff-config-etc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'groff-config-etc.patch')
-rw-r--r--groff-config-etc.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/groff-config-etc.patch b/groff-config-etc.patch
new file mode 100644
index 0000000..bf299a7
--- /dev/null
+++ b/groff-config-etc.patch
@@ -0,0 +1,30 @@
+Move site-font and site-tmac configuration from /usr/share/groff to /etc/groff
+(Symlinking brought a lot of problems with RPM. This is safer and cleaner.)
+
+Author: Jan Vcelak <jvcelak@redhat.com>
+
+diff -uNPrp a/Makefile.in b/Makefile.in
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -167,7 +167,7 @@ fontdir=$(datasubdir)/font
+ oldfontdir=$(datasubdir)/oldfont
+
+ # `localfontdir' says where local fonts will be installed (as dev*/*).
+-localfontdir=$(dataprogramdir)/site-font
++localfontdir=@sysconfdir@/groff/site-font
+
+ # `legacyfontdir' is for compatibility with non-GNU troff.
+ legacyfontdir=/usr/lib/font
+@@ -179,10 +179,10 @@ fontpath=$(localfontdir)$(RT_SEP)$(fontd
+ tmacdir=$(datasubdir)/tmac
+
+ # `systemtmacdir' says where to install platform-dependent macros.
+-systemtmacdir=$(libprogramdir)/site-tmac
++systemtmacdir=@sysconfdir@/groff/site-tmac
+
+ # `localtmacdir' says where local files will be installed.
+-localtmacdir=$(dataprogramdir)/site-tmac
++localtmacdir=@sysconfdir@/groff/site-tmac
+
+ # `appresdir' says where to install the application resource file for
+ # gxditview.