Bug 25852 - _MULTIARCH_OS is not defined, causing m2crypto builds to fail when trying to build against OpenSSL
Summary: _MULTIARCH_OS is not defined, causing m2crypto builds to fail when trying to ...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-10 12:53 CET by Neal Gompa
Modified: 2022-09-21 09:45 CEST (History)
3 users (show)

See Also:
Source RPM: swig-4.0.1-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Neal Gompa 2019-12-10 12:53:08 CET
Description of problem:
When trying to update python-m2crypto to m2crypto-0.35.2, SWIG fails to generate the bindings with the following error:

swig -python -py3 -D__x86_64__ -I/usr/include/python3.8 -I/usr/include/openssl -I/usr/lib/gcc/x86_64-mageia-linux-gnu/9.2.1/include -I/usr/local/include -I/usr/include -includeall -modern -builtin -outdir /builddir/build/BUILD/M2Crypto-0.35.2/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
Deprecated command line option: -modern. This option is now always on.
/usr/include/multiarch-dispatch.h:80: Error: Unable to find 'multiarch-x86_64-_MULTIARCH_OS/openssl/opensslconf.h'
error: command 'swig' failed with exit status 1

Version-Release number of selected component (if applicable):
1.0.14-2.mga7

How reproducible:
Always

Steps to Reproduce:
1. mgarepo co python-m2crypto
2. cd python-m2crypto; bm -s
3. mock -r mageia-cauldron-x86_64 SRPMS/python-m2crypto-0.35.2-1.mga8.src.rpm
Comment 1 Lewis Smith 2019-12-10 20:55:01 CET
Thank you for the report, which hopefully points to its own resolution. Strange that a problme like this should suddenly appear.

No registered maintainer nor active committer, so assigning globally.
CC'ing Python group in case that is relevant.

Assignee: bugsquad => pkg-bugs
CC: (none) => python

Comment 2 Jani Välimaa 2019-12-19 09:22:49 CET
I'd say the issue comes from swig. Tested and the same happens in mga6, mga7 and current cauldron.

However, I've added a patch to python-m2crypto to use -D__linux__ with swig to get _MULTIARCH_OS to defined.

Source RPM: multiarch-utils-1.0.14-2.mga7.src.rpm => swig-4.0.1-1.mga8.src.rpm
CC: (none) => jani.valimaa

Comment 3 papoteur 2022-09-21 09:45:29 CEST
Can we consider this as fixed?

CC: (none) => yves.brungard_mageia


Note You need to log in before you can comment on or make changes to this bug.