vapier      15/02/20 18:53:55

  Added:                imaging-1.1.7-no-host-paths.patch
  Log:
  Fix from Chromium OS for cross-compiling.
  
  (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 
D2E96200)

Revision  Changes    Path
1.1                  dev-python/imaging/files/imaging-1.1.7-no-host-paths.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/files/imaging-1.1.7-no-host-paths.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/imaging/files/imaging-1.1.7-no-host-paths.patch?rev=1.1&content-type=text/plain

Index: imaging-1.1.7-no-host-paths.patch
===================================================================
do not poke around /usr/include and /usr/lib directly as it's (1) not needed
and (2) breaks cross-compiling

patch from Chromium OS

--- a/setup.py
+++ b/setup.py
@@ -147,7 +147,6 @@ class pil_build_ext(build_ext):
             add_directory(library_dirs, "/opt/local/lib")
             add_directory(include_dirs, "/opt/local/include")
 
-        add_directory(library_dirs, "/usr/local/lib")
         # FIXME: check /opt/stuff directories here?
 
         prefix = sysconfig.get_config_var("prefix")
@@ -207,13 +206,6 @@ class pil_build_ext(build_ext):
             if os.path.isfile(os.path.join(tcl_dir, "tk.h")):
                 add_directory(include_dirs, tcl_dir)
 
-        # standard locations
-        add_directory(library_dirs, "/usr/local/lib")
-        add_directory(include_dirs, "/usr/local/include")
-
-        add_directory(library_dirs, "/usr/lib")
-        add_directory(include_dirs, "/usr/include")
-
         #
         # insert new dirs *before* default libs, to avoid conflicts
         # between Python PYD stub libs and real libraries




Reply via email to