Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37903376
en ru br
ALT Linux repositórios
S:3.6.3-alt1
5.0: 2.48a-alt2
4.1: 2.45-alt2.2.1.qa1
4.0: 2.45-alt0.M40.2
3.0: 2.36-alt1.1

Outros repositórios
Upstream:2.45

Group :: Gráficos
RPM: blender

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: blender-2.47-alt-usertempdir.patch
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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009