Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Jacek Konieczny
On 2015-12-02 15:54, Jacek Konieczny wrote: > On 2015-12-02 15:35, Jakub Bogusz wrote: >> On Wed, Dec 02, 2015 at 02:56:28PM +0100, Jacek Konieczny wrote: > >>> At least for this: >>> https://github.com/python/cpython/blob/master/Lib/sysconfig.py#L422 >>> > >> >> get_config_h_filename() should

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Elan Ruusamäe
On 02.12.2015 15:56, Jacek Konieczny wrote: ee, what patch? At least for this: https://github.com/python/cpython/blob/master/Lib/sysconfig.py#L422 There might be other Python code parsing this header, as it is considered a part of standard Python interface. uh. what a mess! python sucks

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Jakub Bogusz
On Wed, Dec 02, 2015 at 02:56:28PM +0100, Jacek Konieczny wrote: > On 2015-12-02 13:03, Elan Ruusamäe wrote: > >>How would you convince python library to parse this file correctly? > >>Another PLD-specific Python patch, which would cause many standard > >>Python packages to fail? > >> > >>My

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Jacek Konieczny
On 2015-12-02 15:35, Jakub Bogusz wrote: On Wed, Dec 02, 2015 at 02:56:28PM +0100, Jacek Konieczny wrote: At least for this: https://github.com/python/cpython/blob/master/Lib/sysconfig.py#L422 get_config_h_filename() should return the ABI-specific file for multilib installs to work

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Jacek Konieczny
On 2015-12-01 23:19, Elan Ruusamäe wrote: > On 01.12.2015 19:49, jajcus wrote: >> The hack is to have architecture-specific pyconfig-*.h files and >> a ghost >> symlink updated with python-devel install. I hope this works. > > a cleaner way is to install wrapper header file which based

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Elan Ruusamäe
On 02.12.2015 14:03, Elan Ruusamäe wrote: i'm speaking of installing "config.h" from static source111, and python original rename as config-ARCH.h when packaging. so you get the idea, it was in our linux-libc-headers too before upstream started to do that themselves:

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-02 Thread Jacek Konieczny
On 2015-12-02 13:03, Elan Ruusamäe wrote: How would you convince python library to parse this file correctly? Another PLD-specific Python patch, which would cause many standard Python packages to fail? My solution is not pretty, but doesn't change a thing from the Python perspective. ee, what

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-01 Thread Elan Ruusamäe
On 01.12.2015 19:49, jajcus wrote: The hack is to have architecture-specific pyconfig-*.h files and a ghost symlink updated with python-devel install. I hope this works. a cleaner way is to install wrapper header file which based on preprocessor variables includes proper arch

Re: [packages/python] Prevent pyconfig.h conflicts on multiarch systems

2015-12-01 Thread Jacek Konieczny
On 2015-12-01 23:19, Elan Ruusamäe wrote: On 01.12.2015 19:49, jajcus wrote: The hack is to have architecture-specific pyconfig-*.h files and a ghost symlink updated with python-devel install. I hope this works. a cleaner way is to install wrapper header file which based on