Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 413863
Collapse All | Expand All

(-)file_not_specified_in_diff (-16 / +10 lines)
Line  Link Here
0
-- Lib/plat-linux2/regen
0
++ Lib/plat-linux2/regen
Lines 5-8 Link Here
5
	exit 1;;
5
	exit 1;;
6
esac
6
esac
7
set -v
7
set -v
8
python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/sys/types.h /usr/include/netinet/in.h /usr/include/dlfcn.h /usr/include/linux/cdrom.h
8
INCLUDE="${SYSROOT}/usr/include" hostpython ../../Tools/scripts/h2py.py \
9
	-i '(u_long)' \
10
	"${SYSROOT}/usr/include/sys/types.h" \
11
	"${SYSROOT}/usr/include/netinet/in.h" \
12
	"${SYSROOT}/usr/include/dlfcn.h" \
13
	"${SYSROOT}/usr/include/linux/cdrom.h"
9
-- Makefile.pre.in
14
++ Makefile.pre.in
Lines 459-465 Link Here
459
	cd $(srcdir)/Lib/$(PLATDIR); \
459
	cd $(srcdir)/Lib/$(PLATDIR); \
460
	$(RUNSHARED) ./regen || exit 1; \
460
	$(RUNSHARED) ./regen || exit 1; \
461
	for module in *.py; do \
461
	for module in *.py; do \
462
		$(RUNSHARED) $(BUILDPYTHON) -c "import py_compile; py_compile.compile('$$module', cfile='/dev/null', doraise=True)" || exit 1; \
462
		$(RUNSHARED) ../../$(HOSTPYTHON) -c "import py_compile; py_compile.compile('$$module', cfile='/dev/null', doraise=True)" || exit 1; \
463
	done
463
	done
464
464
465
# Build static library
465
# Build static library
466
-- setup.py
466
++ setup.py
Lines 450-466 Link Here
450
                    for directory in reversed(options.dirs):
450
                    for directory in reversed(options.dirs):
451
                        add_dir_to_list(dir_list, directory)
451
                        add_dir_to_list(dir_list, directory)
452
452
453
        if os.path.normpath(sys.prefix) != '/usr' \
454
                and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
455
            # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
456
            # (PYTHONFRAMEWORK is set) to avoid # linking problems when
457
            # building a framework with different architectures than
458
            # the one that is currently installed (issue #7473)
459
            add_dir_to_list(self.compiler.library_dirs,
460
                            sysconfig.get_config_var("LIBDIR"))
461
            add_dir_to_list(self.compiler.include_dirs,
462
                            sysconfig.get_config_var("INCLUDEDIR"))
463
464
        # lib_dirs and inc_dirs are used to search for files;
453
        # lib_dirs and inc_dirs are used to search for files;
465
        # if a file is found in one of those directories, it can
454
        # if a file is found in one of those directories, it can
466
        # be assumed that no additional -I,-L directives are needed.
455
        # be assumed that no additional -I,-L directives are needed.

Return to bug 413863