From f1eb4acb2a7a308e9bce6826951fd8e4ef80cb31 Mon Sep 17 00:00:00 2001 From: "David Kaspar [Dee'Kej]" Date: Fri, 1 Sep 2017 12:57:46 +0200 Subject: [PATCH] specfile: suppress error messages from 'xset fp rehash' More info: https://bugzilla.redhat.com/show_bug.cgi?id=1466254 --- urw-base35-fonts.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/urw-base35-fonts.spec b/urw-base35-fonts.spec index 8642915..bfc370e 100644 --- a/urw-base35-fonts.spec +++ b/urw-base35-fonts.spec @@ -154,7 +154,7 @@ # # NOTE: 'xset' is an utility requiring X server to be running. Because of it, # the 'xset fp rehash' will fail to udpate its font database, when the -# X server is stopped. This has been already reported: +# X server is stopped. This has been already reported (and closed): # https://bugzilla.redhat.com/show_bug.cgi?id=1466254 %global posttrans_scriptlet() \ ( \ @@ -162,7 +162,8 @@ mkfontscale %{_fontdir} \ mkfontdir %{_fontdir} \ fc-cache %{_fontdir} \ - xset fp rehash \ + export DISPLAY=:0 \ + xset fp rehash &> /dev/null || : \ \ rm -rf %{tmpdir} \ fi \