fcfc58
diff -up texlive-base-20180414/source/texk/kpathsea/mktexlsr.selinux texlive-base-20180414/source/texk/kpathsea/mktexlsr
fcfc58
--- texlive-base-20180414/source/texk/kpathsea/mktexlsr.selinux	2018-01-16 19:55:32.000000000 -0500
fcfc58
+++ texlive-base-20180414/source/texk/kpathsea/mktexlsr	2018-04-30 13:10:12.447909163 -0400
fcfc58
@@ -228,7 +228,8 @@ for TEXMFLS_R in "$@"; do
fcfc58
   until PERMS=`kpsestat = "$db_file"`; do sleep 1; done
fcfc58
   chmod $PERMS "$db_file_tmp"
fcfc58
   rm -f "$db_file"
fcfc58
-  mv "$db_file_tmp" "$db_file"
fcfc58
+  # selinux fix
fcfc58
+  cp "$db_file_tmp" "$db_file"
fcfc58
   rm -rf "$db_dir_tmp"
fcfc58
 done
fcfc58
 
fcfc58
diff -up texlive-base-20180414/source/texk/texlive/linked_scripts/texlive/fmtutil.pl.selinux texlive-base-20180414/source/texk/texlive/linked_scripts/texlive/fmtutil.pl
fcfc58
--- texlive-base-20180414/source/texk/texlive/linked_scripts/texlive/fmtutil.pl.selinux	2018-04-30 13:10:12.447909163 -0400
fcfc58
+++ texlive-base-20180414/source/texk/texlive/linked_scripts/texlive/fmtutil.pl	2018-04-30 13:12:43.035361954 -0400
fcfc58
@@ -719,7 +719,7 @@ sub rebuild_one_format {
fcfc58
 
fcfc58
   TeXLive::TLUtils::mkdirhier($destdir);
fcfc58
   
fcfc58
-  if (!File::Copy::move( $logfile, "$destdir/$logfile")) {
fcfc58
+  if (!File::Copy::copy( $logfile, "$destdir/$logfile")) {
fcfc58
     print_deferred_error("Cannot move $logfile to $destdir.\n");
fcfc58
   }
fcfc58
   if ($opts{'recorder'}) {
fcfc58
@@ -727,13 +727,13 @@ sub rebuild_one_format {
fcfc58
     # package dependencies for each format.  Unfortunately omega-based
fcfc58
     # engines gratuitiously changed the extension from .fls to .ofl.
fcfc58
     my $recfile = $fmt . ($fmt =~ m/^(aleph|lamed)$/ ? ".ofl" : ".fls");
fcfc58
-    if (!File::Copy::move( $recfile, "$destdir/$recfile")) {
fcfc58
+    if (!File::Copy::copy( $recfile, "$destdir/$recfile")) {
fcfc58
       print_deferred_error("Cannot move $recfile to $destdir.\n");
fcfc58
     }
fcfc58
   }
fcfc58
 
fcfc58
   my $destfile = "$destdir/$fmtfile";
fcfc58
-  if (File::Copy::move( $fmtfile, $destfile )) {
fcfc58
+  if (File::Copy::copy( $fmtfile, $destfile )) {
fcfc58
     print_info("$destfile installed.\n");
fcfc58
     #
fcfc58
     # original fmtutil.sh did some magic trick for mplib-luatex.mem