Hello community,

here is the log from the commit of package texlive-filesystem for 
openSUSE:Factory checked in at 2020-02-22 18:57:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/texlive-filesystem (Old)
 and      /work/SRC/openSUSE:Factory/.texlive-filesystem.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "texlive-filesystem"

Sat Feb 22 18:57:07 2020 rev:43 rq:777663 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/texlive-filesystem/texlive-filesystem.changes    
2020-02-06 13:07:24.496309475 +0100
+++ 
/work/SRC/openSUSE:Factory/.texlive-filesystem.new.26092/texlive-filesystem.changes
 2020-02-22 18:57:18.129274836 +0100
@@ -1,0 +2,6 @@
+Thu Feb 20 11:01:15 UTC 2020 - Dr. Werner Fink <[email protected]>
+
+- Use setpriv to create ls-R files, below /var/cache/texmf/fonts
+  use uid mktex for this (boo#1159740) 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ texlive-filesystem.spec ++++++
--- /var/tmp/diff_new_pack.sp91zh/_old  2020-02-22 18:57:20.345279128 +0100
+++ /var/tmp/diff_new_pack.sp91zh/_new  2020-02-22 18:57:20.353279143 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package texlive-filesystem
 #
-# Copyright (c) 2020 SUSE LLC.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -44,10 +44,12 @@
 Requires:       python3
 Requires(pre):  /usr/bin/getent
 Requires(pre):  /usr/sbin/groupadd
+Requires(pre):  /usr/bin/stat
 Requires(post): %fillup_prereq
 Requires(post): permissions
 Requires(post): /usr/bin/mktemp
 Requires(post): /usr/bin/mv
+Requires(post): /usr/bin/setpriv
 Requires(pre):  /usr/bin/perl
 Requires(pre):  /usr/bin/clear
 Requires(pre):  /usr/bin/dialog
@@ -56,16 +58,12 @@
 Requires(pre):  findutils
 Requires(pre):  grep
 Requires(pre):  sed
-Requires(pre):  group(nobody)
-Requires(pre):  user(nobody)
 Requires(verify): permissions
 Obsoletes:      tetex
 BuildRequires:  cron
 BuildRequires:  ed
 BuildRequires:  fontconfig
 #BuildConflicts: texinfo
-BuildRequires:  group(nobody)
-BuildRequires:  user(nobody)
 Source10:       rc.config.texlive
 Source11:       update.texlive
 Source12:       texlive.cron
@@ -15295,7 +15293,7 @@
     (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
+       %{_fontcache}/ls-R         %{texusr}:%{texgrp}  0664
        %{_texmfvardir}/ls-R            root:%{texgrp}  0664
        %{_texmfvardir}/dist/ls-R       root:%{texgrp}  0664
        %{_texmfvardir}/main/ls-R       root:%{texgrp}  0664
@@ -15315,7 +15313,7 @@
     (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
+       %{_fontcache}/ls-R         %{texusr}:%{texgrp}  0664
        %{_texmfvardir}/ls-R            root:%{texgrp}  0664
        %{_texmfvardir}/dist/ls-R       root:%{texgrp}  0664
        %{_texmfvardir}/main/ls-R       root:%{texgrp}  0664
@@ -15392,7 +15390,6 @@
 # the ls-R file on update
 error=0
 for dir in     %{_texmfconfdir}        \
-               %{_fontcache}           \
                %{_texmfvardir}         \
                %{_texmfvardir}/dist    \
                %{_texmfvardir}/main
@@ -15402,6 +15399,13 @@
     test "$(stat --format '%U:%G' ${dir}/ls-R)" != root:%{texgrp}  || continue
     chown root:%{texgrp} ${dir}/ls-R || error=1
 done
+for dir in     %{_fontcache}
+do
+    test ! -h ${dir}/ls-R || rm -vf ${dir}/ls-R
+    test -e ${dir}/ls-R || continue
+    test "$(stat --format '%U:%G' ${dir}/ls-R)" != %{texusr}:%{texgrp}  || 
continue
+    chown %{texusr}:%{texgrp} ${dir}/ls-R || error=1
+done
 test $error = 0 || exit 1
 
 %post
@@ -15409,23 +15413,31 @@
 # the ls-R file (empty at package time)
 error=0
 for dir in     %{_texmfconfdir}        \
-               %{_fontcache}           \
                %{_texmfvardir}         \
                %{_texmfvardir}/dist    \
                %{_texmfvardir}/main
 do
     test ! -e ${dir}/ls-R -o -h ${dir}/ls-R || continue
-    tmp=$(mktemp ${dir}/ls-R.XXXXXX) || error=1
+    tmp=$(setpriv --reuid root --regid mktex --init-groups mktemp 
${dir}/ls-R.XXXXXX) || error=1
     test $error = 0 || continue
-    mv ${tmp} ${dir}/ls-R || error=1
-    test $error = 0 || continue
-    chgrp %{texgrp} ${dir}/ls-R || error=1
+    setpriv --reuid root --regid mktex --init-groups mv ${tmp} ${dir}/ls-R || 
error=1
     test $error = 0 || continue
     chmod 0664 ${dir}/ls-R || error=1
     test $error = 0 || continue
     echo '%% ls-R -- filename database for kpathsea; do not change this line.' 
> \
     ${dir}/ls-R
 done
+for dir in     %{_fontcache}
+do
+    test ! -e ${dir}/ls-R -o -h ${dir}/ls-R || continue
+    tmp=$(setpriv --reuid mktex --regid mktex --init-groups mktemp 
${dir}/ls-R.XXXXXX) || error=1
+    test $error = 0 || continue
+    setpriv --reuid mktex --regid mktex --init-groups mv ${tmp} ${dir}/ls-R || 
error=1
+    test $error = 0 || continue
+    chmod 0664 ${dir}/ls-R || error=1
+    echo '%% ls-R -- filename database for kpathsea; do not change this line.' 
> \
+    ${dir}/ls-R
+done
 %if %{defined set_permissions}
 %set_permissions %{_texmfconfdir}/ls-R
 %set_permissions %{_texmfvardir}/
@@ -26888,7 +26900,7 @@
 %verify(link) %{_texmfmaindir}/ls-R
 %verify(link) %{_texmfdistdir}/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,%{texusr},%{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


Reply via email to