From 657cb7d94ed95dd88dcaa02512e722a975e9e9ae Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Mon, 6 Jul 2015 14:45:07 +0200 Subject: [PATCH] add missing texlive-20140525-selinux-context.patch --- texlive-20140525-selinux-context.patch | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 texlive-20140525-selinux-context.patch diff --git a/texlive-20140525-selinux-context.patch b/texlive-20140525-selinux-context.patch new file mode 100644 index 0000000..b4687b5 --- /dev/null +++ b/texlive-20140525-selinux-context.patch @@ -0,0 +1,29 @@ +diff -up source/texk/kpathsea/mktexlsr.than source/texk/kpathsea/mktexlsr +--- source/texk/kpathsea/mktexlsr.than 2015-06-10 17:43:50.012950721 +0200 ++++ source/texk/kpathsea/mktexlsr 2015-06-10 17:48:11.452194948 +0200 +@@ -210,7 +210,8 @@ for TEXMFLS_R in "$@"; do + until PERMS=`kpsestat = "$db_file"`; do sleep 1; done + chmod $PERMS "$db_file_tmp" + rm -f "$db_file" +- mv "$db_file_tmp" "$db_file" ++ # selinux fix ++ cp "$db_file_tmp" "$db_file" + rm -rf "$db_dir_tmp" + done + +diff -up source/texk/texlive/tl_scripts/fmtutil.sh.than source/texk/texlive/tl_scripts/fmtutil.sh +--- source/texk/texlive/tl_scripts/fmtutil.sh.than 2015-06-10 17:48:30.002070364 +0200 ++++ source/texk/texlive/tl_scripts/fmtutil.sh 2015-06-10 17:49:11.923788832 +0200 +@@ -796,10 +796,10 @@ run_initex() + log_warning "\`$engine -ini $tcxflag $jobswitch $prgswitch $texargs' possibly failed." + + # We don't want user-interaction for the following "mv" commands: +- mv "$format.log" "$fulldestdir/$format.log"