Group :: Gráficos
RPM: blender
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: blender-2.47-alt-usertempdir.patch
Download
Download
diff -Naur blender-2.47.orig/source/blender/src/usiblender.c blender-2.47/source/blender/src/usiblender.c
--- blender-2.47.orig/source/blender/src/usiblender.c 2008-08-01 23:49:11 +0400
+++ blender-2.47/source/blender/src/usiblender.c 2008-10-10 17:03:58 +0400
@@ -176,7 +176,7 @@
U.tb_rightmouse= 5;
}
if(U.mixbufsize==0) U.mixbufsize= 2048;
- if (BLI_streq(U.tempdir, "/")) {
+ if (BLI_streq(U.tempdir, "/") || BLI_streq(U.tempdir, "/tmp/")) {
BLI_where_is_temp(U.tempdir, 0);
}
if (U.savetime <= 0) {
diff -Naur blender-2.47.orig/source/tools/to_dos blender-2.47/source/tools/to_dos
--- blender-2.47.orig/source/tools/to_dos 2002-10-12 15:37:38 +0400
+++ blender-2.47/source/tools/to_dos 2008-10-10 17:01:40 +0400
@@ -5,7 +5,19 @@
# convert a UNIX ASCII file to a DOS ASCII file by appending ^M at the
# end of each line and ^Z at the end of the file
-TMPFILE=/tmp/to_dos$$
+if [ "x$TEMP" = x ]; then
+ TEMP=$TMP
+fi
+
+if [ "x$TEMP" = x ]; then
+ TEMP=$TMPDIR
+fi
+
+if [ "x$TEMP" = x ]; then
+ TEMP=/tmp
+fi
+
+TMPFILE=$TEMP/to_dos$$
if [ $# -gt 2 ]
then
diff -Naur blender-2.47.orig/source/tools/to_unix blender-2.47/source/tools/to_unix
--- blender-2.47.orig/source/tools/to_unix 2002-10-12 15:37:38 +0400
+++ blender-2.47/source/tools/to_unix 2008-10-10 17:00:53 +0400
@@ -4,7 +4,19 @@
# convert a DOS ASCII file to a UNIX ASCII file by removing trailing ^M at the
# end of each line and ^Z at the end of the file
-TMPFILE=/tmp/to_unix$$
+if [ "x$TEMP" = x ]; then
+ TEMP=$TMP
+fi
+
+if [ "x$TEMP" = x ]; then
+ TEMP=$TMPDIR
+fi
+
+if [ "x$TEMP" = x ]; then
+ TEMP=/tmp
+fi
+
+TMPFILE=$TEMP/to_unix$$
if [ $# -gt 2 ]
then