From d228df6077c8c24d5d6947a54aa00a58b831491f3e829d83c1f9c4f3b170942f Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 23 Oct 2017 09:56:56 +0000 Subject: [PATCH] Avoid overwriting ls-R files OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=82 --- texlive-filesystem.changes | 5 +++++ texlive-filesystem.spec | 27 ++++++++++++++++++++------- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index 16234db..43f0627 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 23 09:52:35 UTC 2017 - werner@suse.de + +- Avoid overwriting ls-R files + ------------------------------------------------------------------- Fri Aug 18 07:06:21 UTC 2017 - werner@suse.de diff --git a/texlive-filesystem.spec b/texlive-filesystem.spec index 68ee9f4..5ec8a20 100644 --- a/texlive-filesystem.spec +++ b/texlive-filesystem.spec @@ -13819,10 +13819,10 @@ popd (cat > %{buildroot}%{_sysconfdir}/permissions.d/texlive.texlive) <<-EOF %{_libexecdir}/mktex/public root:%{texgrp} 2755 %{_texmfconfdir}/ls-R root:%{texgrp} 0664 + %{_fontcache}/ls-R root:%{texgrp} 0664 %{_texmfvardir}/ls-R root:%{texgrp} 0664 %{_texmfvardir}/dist/ls-R root:%{texgrp} 0664 %{_texmfvardir}/main/ls-R root:%{texgrp} 0664 - %{_fontcache}/ls-R root:%{texgrp} 0664 %{_texmfvardir}/ root:root 1755 %{_texmfvardir}/dist/ root:root 1755 %{_texmfvardir}/main/ root:root 1755 @@ -13839,10 +13839,10 @@ popd (cat > %{buildroot}%{_sysconfdir}/permissions.d/texlive) <<-EOF %{_libexecdir}/mktex/public root:%{texgrp} 0755 %{_texmfconfdir}/ls-R root:%{texgrp} 0664 + %{_fontcache}/ls-R root:%{texgrp} 0664 %{_texmfvardir}/ls-R root:%{texgrp} 0664 %{_texmfvardir}/dist/ls-R root:%{texgrp} 0664 %{_texmfvardir}/main/ls-R root:%{texgrp} 0664 - %{_fontcache}/ls-R root:%{texgrp} 0664 %{_texmfvardir}/ root:root 1755 %{_texmfvardir}/dist/ root:root 1755 %{_texmfvardir}/main/ root:root 1755 @@ -13915,6 +13915,19 @@ fi %post %fillup_only -n texlive +# the ls-R file (empty at package time) +for dir in %{_texmfconfdir} \ + %{_fontcache} \ + %{_texmfvardir} \ + %{_texmfvardir}/dist \ + %{_texmfvardir}/main +do + test ! -e ${dir}/ls-R || continue + echo '%% ls-R -- filename database for kpathsea; do not change this line.' > \ + ${dir}/ls-R + chown root:%{texgrp} ${dir}/ls-R + chmod 0664 ${dir}/ls-R +done %if %{defined set_permissions} %set_permissions %{_texmfconfdir}/ls-R %set_permissions %{_texmfvardir}/ @@ -24170,11 +24183,11 @@ rm -f /var/run/texlive/run-update %dir %{_texmfvardir}/md5 %verify(link) %{_texmfmaindir}/ls-R %verify(link) %{_texmfdistdir}/ls-R -%attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfconfdir}/ls-R -%attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_fontcache}/ls-R -%attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfvardir}/ls-R -%attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfvardir}/dist/ls-R -%attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfvardir}/main/ls-R +%ghost %config(noreplace) %attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfconfdir}/ls-R +%ghost %config(noreplace) %attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_fontcache}/ls-R +%ghost %config(noreplace) %attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfvardir}/ls-R +%ghost %config(noreplace) %attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfvardir}/dist/ls-R +%ghost %config(noreplace) %attr(0664,root,%{texgrp}) %verify(not md5 size mtime mode) %{_texmfvardir}/main/ls-R %{_localstatedir}/adm/fillup-templates/sysconfig.texlive /var/adm/update-scripts/%{name}-%{version}-%{release}-zypper