From 7929922693f380d4b7f5287c485b19b0a1ba09bb Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Remove call to setenv. --- inkscape/mingw32-inkscape-20081027-no-setenv.patch | 12 ++++++++++++ inkscape/mingw32-inkscape.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 inkscape/mingw32-inkscape-20081027-no-setenv.patch diff --git a/inkscape/mingw32-inkscape-20081027-no-setenv.patch b/inkscape/mingw32-inkscape-20081027-no-setenv.patch new file mode 100644 index 0000000..4e8fe15 --- /dev/null +++ b/inkscape/mingw32-inkscape-20081027-no-setenv.patch @@ -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; + } diff --git a/inkscape/mingw32-inkscape.spec b/inkscape/mingw32-inkscape.spec index ed7cc9a..4e97b84 100644 --- a/inkscape/mingw32-inkscape.spec +++ b/inkscape/mingw32-inkscape.spec @@ -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 -- 1.8.3.1