Remove call to setenv.
authorRichard W.M. Jones <rjones@redhat.com>
Mon, 27 Oct 2008 15:31:54 +0000 (15:31 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 27 Oct 2008 15:31:54 +0000 (15:31 +0000)
inkscape/mingw32-inkscape-20081027-no-setenv.patch [new file with mode: 0644]
inkscape/mingw32-inkscape.spec

diff --git a/inkscape/mingw32-inkscape-20081027-no-setenv.patch b/inkscape/mingw32-inkscape-20081027-no-setenv.patch
new file mode 100644 (file)
index 0000000..4e8fe15
--- /dev/null
@@ -0,0 +1,12 @@
+--- src/main.cpp.orig  2008-10-27 15:17:26.000000000 +0000
++++ src/main.cpp       2008-10-27 15:18:02.000000000 +0000
+@@ -521,7 +521,9 @@
+ #endif
+         tmp += oldenv;
+     }
++#ifndef WIN32
+     setenv("PYTHONPATH", tmp.c_str(), 1);
++#endif
+     
+     return 0;
+ }
index ed7cc9a..4e97b84 100644 (file)
@@ -27,10 +27,11 @@ Patch0:         mingw32-inkscape-20081027-no-gc-version-check-when-crosscompilin
 Patch1:         mingw32-inkscape-20081027-no-is-os-vista.patch
 Patch2:         mingw32-inkscape-20081027-extra-win32-objects.patch
 Patch3:         mingw32-inkscape-20081027-pango-enable-engine.patch
+Patch4:         mingw32-inkscape-20081027-no-setenv.patch
 
 # This is a hack, but for some reason PKG_CHECK_MODULES isn't
 # updating CFLAGS correctly.  This just works around the problem.
-Patch4:         mingw32-inkscape-20081027-Makefile.am-cflags.patch
+Patch5:         mingw32-inkscape-20081027-Makefile.am-cflags.patch
 
 BuildArch:      noarch
 
@@ -75,6 +76,7 @@ community-oriented development.
 %patch2 -p0
 %patch3 -p0
 %patch4 -p0
+%patch5 -p0
 
 ./autogen.sh