Comment 8 for bug 2002043

Revision history for this message
Fabio Augusto Miranda Martins (fabio.martins) wrote :

Hi Nafees,

I've discussed this case with our Engineering team and they are working on the SRU process to get this fix released, however this should take around 1 month before it gets published to -updates. Although we are prioritizing it, the fix still needs to go to the -proposed repository for QA / testing, before completing the SRU process, hence why the 1 month estimate (assuming that it doesn't hit a regression, that might delay things a bit more).

In the meantime, if a user is being impacted, although not really supported, they could modify the sysconfig.py file to "manually" fix it with the steps below:

1) open the following file: /usr/lib/python2.7/distutils/sysconfig.py
2) change the following lines:

(cc, cxx, cflags, extra_cflags, basecflags,
ccshared, ldshared, so_ext, ar, ar_flags,
configure_cppflags, configure_cflags, configure_ldflags) = \
get_config_vars('CC', 'CXX', 'CFLAGS', 'EXTRA_CFLAGS', 'BASECFLAGS',
'CCSHARED', 'LDSHARED', 'SO', 'AR', 'ARFLAGS',
'CONFIGURE_CPPFLAGS', 'CONFIGURE_CFLAGS', 'CONFIGURE_LDFLAGS')

To:

(cc, cxx, cflags, extra_cflags, basecflags,
ccshared, ldshared, so_ext, ar, ar_flags,
configure_cppflags, configure_cflags, configure_ldflags, opt) = \
get_config_vars('CC', 'CXX', 'CFLAGS', 'EXTRA_CFLAGS', 'BASECFLAGS',
'CCSHARED', 'LDSHARED', 'SO', 'AR', 'ARFLAGS',
'CONFIGURE_CPPFLAGS', 'CONFIGURE_CFLAGS', 'CONFIGURE_LDFLAGS', 'OPT')

3) change the following lines:

elif configure_cflags:
cflags = ' '.join(str(x) for x in (basecflags, configure_cflags, extra_cflags) if x)
ldshared = ldshared + ' ' + configure_cflags
if 'CPPFLAGS' in os.environ:

To:

elif configure_cflags:
cflags = ' '.join(str(x) for x in (basecflags, opt ,configure_cflags, extra_cflags) if x)
ldshared = ldshared + ' ' + configure_cflags
if 'CPPFLAGS' in os.environ:

4) Thats it! After these changes the optimization should work fine on ARM as well as x86

Note: watch out for the indentation! Make sure the indentation is the same line per line as the line being replaced.

Please, let me know if this helps.

Regards,
Fabio Martins