[SSSD] [PATCH] CONFIGURE: Prefer python2
Lukas Slebodnik
lslebodn at redhat.com
Tue Jun 17 09:09:28 UTC 2014
On (11/06/14 15:22), Pavel Reichl wrote:
>On Tue, 2014-06-10 at 16:16 +0200, Pavel Reichl wrote:
>> On Mon, 2014-06-09 at 09:15 +0200, Lukas Slebodnik wrote:
>> > ehlo,
>> >
>> > The configure script failed with python3
>> >
>> > checking for python... /usr/bin/python
>> > checking for python version... 3.3
>> > checking for python platform... linux
>> > checking for python script directory... ${prefix}/lib/python3.3/site-packages
>> > checking for python extension module directory... ${exec_prefix}/lib64/python3.3/site-packages
>> > checking for headers required to compile python extensions... File "<string>", line 1
>> > import sys; print sys.prefix
>> > ^
>> > SyntaxError: invalid syntax
>> > File "<string>", line 1
>> > import sys; print sys.exec_prefix
>> > ^
>> > SyntaxError: invalid syntax
>> > not found
>> > configure: error: Could not find python headers
>> >
>> >
>> > checking for python... /usr/bin/python
>> > checking for working python... File "<string>", line 1
>> > from distutils import sysconfig; print '-I' + sysconfig.get_python_inc() + ' -I' + sysconfig.get_python_inc(plat_specific=True) + ' ' + sysconfig.get_config_var('BASECFLAGS')
>> > ^
>> > SyntaxError: invalid syntax
>> > File "<string>", line 1
>> > from distutils import sysconfig; print " ".join(sysconfig.get_config_var('LIBS').split() + sysconfig.get_config_var('SYSLIBS').split()) + ' -lpython' + sysconfig.get_config_var('VERSION') + ' -L' + sysconfig.get_config_var('LIBDIR')
>> > ^
>> > SyntaxError: invalid syntax
>> > yes
>> > checking for Py_ssize_t... yes
>> > checking for PySet_New... no
>> > checking for PySet_Add... no
>> >
>> >
>> > How to test?
>> > * use distribution with default python >=3
>> > * test on fedora 20
>> > - python, python3 packages should be installed
>> > - cd /usr/bin/
>> > - unlink python
>> > - ln -s python3 python
>> >
>> > Do not forget to change symling after testing :-)
>> >
>> > Patch is attached.
>> >
>> > LS
>> > _______________________________________________
>> > sssd-devel mailing list
>> > sssd-devel at lists.fedorahosted.org
>> > https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
>>
>> Hello Lukas,
>>
>> I'm still seeing following when calling reconfig:
>>
>> > checking for python2 platform... (cached) linux2
>> > checking for python2 script directory... (cached) ${prefix}/lib/python2.7/site-packages
>> > checking for python2 extension module directory... (cached) ${exec_prefix}/lib64/python2.7/site-packages
>> > checking for headers required to compile python extensions... found
>> > checking for python2... (cached) /usr/bin/python
>> > checking for working python... File "<string>", line 1
>> > from distutils import sysconfig; print '-I' + sysconfig.get_python_inc() + ' -I' + sysconfig.get_python_inc(plat_specific=True) + ' ' + sysconfig.get_config_var('BASECFLAGS')
>> > ^
>> > SyntaxError: invalid syntax
>> > File "<string>", line 1
>> > from distutils import sysconfig; print " ".join(sysconfig.get_config_var('LIBS').split() + sysconfig.get_config_var('SYSLIBS').split()) + ' -lpython' + sysconfig.get_config_var('VERSION') + ' -L' + sysconfig.get_config_var('LIBDIR')
>> > ^
>> > SyntaxError: invalid syntax
>> > yes
>> > checking for Py_ssize_t... (cached) yes
>> > checking for PySet_New... (cached) yes
>> > checking for PySet_Add... (cached) yes
>>
>> Could you have a look?
>>
>> Thanks,
>>
>> PR
>>
>
>I have investigated the issue personally with Lukas but we were not able
>to find out the root of the problem.
>
>Rebooting the machine seems to solve the issue and I'm no longer able to
>replicate the problem.
sssd build aliases(bash functions) cache configure data in file
/tmp/fedconfig.cache. It can explain why problem was fixed after restarting
virtual machine.
diff --git a/contrib/fedora/bashrc_sssd b/contrib/fedora/bashrc_sssd
index 7301b52..50ac1fb 100644
--- a/contrib/fedora/bashrc_sssd
+++ b/contrib/fedora/bashrc_sssd
@@ -49,7 +49,7 @@ fedconfig()
--with-syslog=journald \
--with-test-dir=/dev/shm \
--enable-all-experimental-features \
--cache-file=/tmp/fedconfig.cache \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cache test results in FILE [disabled by default]
${SSSD_NO_MANPAGES-} \
"$@"
}
>
>Still it would be nice if somebody else tested the patch.
>
>Thanks,
>PR
>
LS
More information about the sssd-devel
mailing list