Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 290853 Details for
Bug 388519
sys-devel/autoconf-archive-2011.09.17 fails checks when used with Python 3.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Compatibility with python3
2011.09.17-python3.patch (text/plain), 3.56 KB, created by
Nikolay Orlyuk
on 2011-10-26 09:11:06 UTC
(
hide
)
Description:
Compatibility with python3
Filename:
MIME Type:
Creator:
Nikolay Orlyuk
Created:
2011-10-26 09:11:06 UTC
Size:
3.56 KB
patch
obsolete
>--- autoconf-archive-2011.09.17/m4/ax_python_config_var.m4.orig 2011-09-17 01:00:00.000000000 +0300 >+++ autoconf-archive-2011.09.17/m4/ax_python_config_var.m4 2011-10-26 11:40:47.412968025 +0300 >@@ -64,7 +64,7 @@ > fi > py_error="no" > pyval=`$PYTHON -c "from distutils import sysconfig;dnl >-print sysconfig.get_config_var('$1')"` || py_error="yes" >+print (sysconfig.get_config_var('$1'))"` || py_error="yes" > if test "$py_error" = "yes" > then > AC_MSG_RESULT(no - an error occurred) >@@ -84,7 +84,7 @@ > fi > py_error="no" > PY_CONFIG_H=`$PYTHON -c "from distutils import sysconfig;dnl >-print sysconfig.get_config_h_filename()"` || py_error = "yes" >+print (sysconfig.get_config_h_filename())"` || py_error = "yes" > if test "$py_error" = "yes" > then > AC_MSG_RESULT(no - an error occurred) >@@ -103,7 +103,7 @@ > fi > py_error="no" > PY_MAKEFILE=`$PYTHON -c "from distutils import sysconfig;dnl >-print sysconfig.get_makefile_filename()"` || py_error = "yes" >+print (sysconfig.get_makefile_filename())"` || py_error = "yes" > if test "$py_error" = "yes" > then > AC_MSG_RESULT(no - an error occurred) >--- autoconf-archive-2011.09.17/m4/ax_python_embed.m4.orig 2011-09-17 01:00:00.000000000 +0300 >+++ autoconf-archive-2011.09.17/m4/ax_python_embed.m4 2011-10-26 11:40:09.917968047 +0300 >@@ -223,19 +223,19 @@ > AC_ARG_VAR( [PYTHON], [Python Executable Path] ) > if test -n "$PYTHON" > then >- ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"` >+ ax_python_prefix=`${PYTHON} -c "import sys; print (sys.prefix)"` > if test -z "$ax_python_prefix" > then > AC_MSG_ERROR([Python Prefix is not known]) > fi >- ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"` >- ax_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"` >+ ax_python_execprefix=`${PYTHON} -c "import sys; print (sys.exec_prefix)"` >+ ax_python_version=`$PYTHON -c "import sys; print (sys.version[[:3]])"` > ax_python_includespec="-I${ax_python_prefix}/include/python${ax_python_version}" > if test x"$python_prefix" != x"$python_execprefix"; then > ax_python_execspec="-I${ax_python_execprefix}/include/python${ax_python_version}" > ax_python_includespec="${ax_python_includespec} $ax_python_execspec" > fi >- ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('CFLAGSFORSHARED')"` >+ ax_python_ccshared=`${PYTHON} -c "import distutils.sysconfig; print (distutils.sysconfig.get_config_var('CFLAGSFORSHARED'))"` > ax_python_cspec="${ax_python_ccshared} ${ax_python_includespec}" > AC_SUBST([PYTHON_CSPEC], [${ax_python_cspec}]) > AC_MSG_NOTICE([PYTHON_CSPEC=${ax_python_cspec}]) >@@ -305,7 +305,7 @@ > if strLibFW and (strLibFW != ""): > strLinkSpec += " -F%s" % (strLibFW) > strLinkSpec += " %s" % (dictConfig.get('LINKFORSHARED')) >-print strLinkSpec >+print (strLinkSpec) > ]) > AC_SUBST([PYTHON_LSPEC], [${ax_python_output}]) > AC_MSG_NOTICE([PYTHON_LSPEC=${ax_python_output}]) >@@ -345,8 +345,8 @@ > then > AC_MSG_ERROR([Python Executable Path is not known]) > fi >- ax_python_prefix=`${PYTHON} -c "import sys; print sys.prefix"` >- ax_python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"` >+ ax_python_prefix=`${PYTHON} -c "import sys; print (sys.prefix)"` >+ ax_python_execprefix=`${PYTHON} -c "import sys; print (sys.exec_prefix)"` > AC_SUBST([PYTHON_PREFIX], ["${ax_python_prefix}"]) > AC_SUBST([PYTHON_EXECPREFIX], ["${ax_python_execprefix}"]) > ])
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 388519
: 290853