From 4369faa552f98c9b50c96af9c646834f6e4bfd40c5771a18d84d6a7673969a6c Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 8 Nov 2017 16:05:50 +0000 Subject: [PATCH] Accepting request 539907 from home:RBrownSUSE:branches:M17N:fonts As update-scripts are never called, and instead leave nonsense in /var/adm on everyones machines, remove them and rely on rpm post install trigger instead OBS-URL: https://build.opensuse.org/request/show/539907 OBS-URL: https://build.opensuse.org/package/show/M17N:fonts/fontpackages?expand=0&rev=37 --- fontpackages.changes | 7 +++++++ fontpackages.spec | 2 +- rpm-macros.fonts-config | 44 +++++++---------------------------------- 3 files changed, 15 insertions(+), 38 deletions(-) diff --git a/fontpackages.changes b/fontpackages.changes index 85606ab..a2e35d0 100644 --- a/fontpackages.changes +++ b/fontpackages.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 8 15:43:41 UTC 2017 - rbrown@suse.com + +- As update-scripts are never triggered, remove them. + Rely instead on the rpm post install trigger + [boo#1067213] [bsc#1066187] + ------------------------------------------------------------------- Mon Mar 14 14:30:28 UTC 2016 - pgajdos@suse.com diff --git a/fontpackages.spec b/fontpackages.spec index 46facb1..0a691c2 100644 --- a/fontpackages.spec +++ b/fontpackages.spec @@ -1,7 +1,7 @@ # # spec file for package fontpackages # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed diff --git a/rpm-macros.fonts-config b/rpm-macros.fonts-config index c73502a..d94f655 100644 --- a/rpm-macros.fonts-config +++ b/rpm-macros.fonts-config @@ -101,40 +101,12 @@ Requires(posttrans): coreutils \ # options: # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) -# The pattern is fixed within libzypp: -# /var/adm/update-scripts/name-version-release-anything -# (place version-release at the end of a line to help build-compare) %reconfigure_fonts_post(c) \ mkdir -p `dirname %{__fontsconfigrunflag}` \ touch %{__fontsconfigrunflag} \ %{-c: \ touch %{__fontsconfigrunflag}-cjk \ } \ - if [ -n "$ZYPP_IS_RUNNING" ]; then \ - __fontsupdatescript=/var/adm/update-scripts/%{name}-%{version}-%{release}\ - __fontsupdatescript="${__fontsupdatescript}-reconfigure-fonts" \ - echo 'if [ -e %{__fontsconfigrunflag} ]; then' > "${__fontsupdatescript}" \ - echo ' if [ -x /usr/sbin/fonts-config ]; then' >> "${__fontsupdatescript}" \ - echo ' /usr/sbin/fonts-config --quiet' >> "${__fontsupdatescript}" \ - echo ' fi' >> "${__fontsupdatescript}" \ - echo ' rm %{__fontsconfigrunflag}' >> "${__fontsupdatescript}" \ - echo 'fi' >> "${__fontsupdatescript}" \ - echo "rm ${__fontsupdatescript}" >> "${__fontsupdatescript}" \ - %{-c: \ - __fontsupdatescript_cjk=/var/adm/update-scripts/%{name}-%{version}-%{release}\ - __fontsupdatescript_cjk="${__fontsupdatescript_cjk}-reconfigure-cjk-fonts" \ - echo 'if [ -e %{__fontsconfigrunflag}-cjk ]; then' > "${__fontsupdatescript_cjk}" \ - echo ' if [ -x /usr/sbin/acroread-cidfont-config ]; then' >> "${__fontsupdatescript_cjk}" \ - echo ' /usr/sbin/acroread-cidfont-config' >> "${__fontsupdatescript_cjk}" \ - echo ' fi' >> "${__fontsupdatescript_cjk}" \ - echo ' if [ -x /usr/sbin/ghostscript-cjk-config ]; then' >> "${__fontsupdatescript_cjk}" \ - echo ' /usr/sbin/ghostscript-cjk-config' >> "${__fontsupdatescript_cjk}" \ - echo ' fi' >> "${__fontsupdatescript_cjk}" \ - echo ' rm %{__fontsconfigrunflag}-cjk' >> "${__fontsupdatescript_cjk}" \ - echo 'fi' >> "${__fontsupdatescript_cjk}" \ - echo "rm ${__fontsupdatescript_cjk}" >> "${__fontsupdatescript_cjk}" \ - } \ - fi \ %nil # macro: reconfigure_fonts_postun @@ -157,15 +129,13 @@ Requires(posttrans): coreutils \ # -c (the fonts are CJK fonts, also do setup which is only needed # for CJK) %reconfigure_fonts_posttrans \ - if [ -z "$ZYPP_IS_RUNNING" ]; then \ - if [ -e %{__fontsconfigrunflag} ]; then \ - %reconfigure_fonts \ - rm %{__fontsconfigrunflag} \ - fi \ - if [ -e %{__fontsconfigrunflag}-cjk ]; then \ - %reconfigure_fonts_cjk \ - rm %{__fontsconfigrunflag}-cjk \ - fi \ + if [ -e %{__fontsconfigrunflag} ]; then \ + %reconfigure_fonts \ + rm %{__fontsconfigrunflag} \ + fi \ + if [ -e %{__fontsconfigrunflag}-cjk ]; then \ + %reconfigure_fonts_cjk \ + rm %{__fontsconfigrunflag}-cjk \ fi \ %nil