You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.7 KiB
52 lines
1.7 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../python/python-2.5-cross-printf.patch |
|
# Copyright (C) 2009 The OpenSDE Project |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This patch file is dual-licensed. It is available under the license the |
|
# patched project is licensed under, as long as it is an OpenSource license |
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
# of the GNU General Public License as published by the Free Software |
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
# version. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
http://ftp.eenet.ee/gentoo-portage/dev-lang/python/files/python-2.5-cross-printf.patch |
|
|
|
http://bugs.gentoo.org/239110 |
|
|
|
assume %zd is supported when cross-compiling. any target we care about |
|
supports it, so ... |
|
|
|
--- ./configure.in |
|
+++ ./configure.in |
|
@@ -3417,7 +3417,7 @@ |
|
|
|
|
|
|
|
-AC_MSG_CHECKING(for %zd printf() format support) |
|
+AC_CACHE_CHECK([for %zd printf() format support], [py_cv_has_zd_printf], [dnl |
|
AC_TRY_RUN([#include <stdio.h> |
|
#include <stddef.h> |
|
#include <string.h> |
|
@@ -3451,10 +3451,13 @@ |
|
return 1; |
|
|
|
return 0; |
|
-}], |
|
-[AC_MSG_RESULT(yes) |
|
- AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])], |
|
- AC_MSG_RESULT(no)) |
|
+}], [py_cv_has_zd_printf="yes"], |
|
+ [py_cv_has_zd_printf="no"], |
|
+ [py_cv_has_zd_printf="cross -- assuming yes"] |
|
+)]) |
|
+if test "$py_cv_has_zd_printf" != "no" ; then |
|
+ AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t]) |
|
+fi |
|
|
|
AC_CHECK_TYPE(socklen_t,, |
|
AC_DEFINE(socklen_t,int,
|
|
|