From 463a5218047a9191fe5ca3e155aecbc3c046ad9b1a01c10e6861c1d405871fff Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 2 Jun 2014 14:53:56 +0000 Subject: [PATCH 1/2] Accepting request 235573 from home:Andreas_Schwab:texlive - Make sure texconfig/update is run only once per transaction An empty run of texconfig/update takes at least four seconds even on a fast system OBS-URL: https://build.opensuse.org/request/show/235573 OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=173 --- texlive.changes | 5 +++++ texlive.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/texlive.changes b/texlive.changes index cf99dfb..1c7efaf 100644 --- a/texlive.changes +++ b/texlive.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 20 09:23:14 UTC 2014 - schwab@suse.de + +- Make sure that texconfig/update is run only once per transaction + ------------------------------------------------------------------- Fri May 2 08:40:22 UTC 2014 - werner@suse.de diff --git a/texlive.spec b/texlive.spec index c2ced31..8c1787f 100644 --- a/texlive.spec +++ b/texlive.spec @@ -2856,6 +2856,7 @@ fi %post mkdir -p /var/run/texlive > /var/run/texlive/run-mktexlsr +> /var/run/texlive/run-update %postun if test $1 = 1; then @@ -2864,8 +2865,10 @@ if test $1 = 1; then fi %posttrans +test -f /var/run/texlive/run-update || exit 0 test -z "$ZYPP_IS_RUNNING" || exit 0 VERBOSE=false %{_texmfdistdir}/texconfig/update || : +rm -f /var/run/texlive/run-update %post -n libkpathsea6 -p /sbin/ldconfig %postun -n libkpathsea6 -p /sbin/ldconfig From 922e6770086c8d3868231ab1a5eca6b1d7046222b582bbd96920aba75b00070e Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 3 Jun 2014 08:53:36 +0000 Subject: [PATCH 2/2] . OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive?expand=0&rev=174 --- texlive.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/texlive.spec b/texlive.spec index 8c1787f..7cb2af2 100644 --- a/texlive.spec +++ b/texlive.spec @@ -19,7 +19,7 @@ %define texlive_version 2013 %define texlive_previous 2011 %define texlive_release 20130620 -%define texlive_noarch 83 +%define texlive_noarch 84 %define texlive_source texlive-20130620-source %define __perl_requires %{nil} @@ -2862,6 +2862,7 @@ mkdir -p /var/run/texlive if test $1 = 1; then mkdir -p /var/run/texlive > /var/run/texlive/run-mktexlsr + > /var/run/texlive/run-update fi %posttrans