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

Elan Ruusamäe glen at pld-linux.org
Tue Dec 1 23:19:15 CET 2015


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 specific file
no triggers, no scriptlets, no ghosts.

and if the file is identical on both multilib packages, rpm will happily 
install it without complaining

so, it would be something like:

#if X86_64
#include "py-x86_64.h"
#elseif IX86
#include "py-ix86.h"
#else
#error unsupported arch
#endif

-- 
glen



More information about the pld-devel-en mailing list