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