Hi,
On Friday, 31 July 2015 at 16:52, Jujens wrote:
Hi,
I am in the process of packaging python-wsaccel (https://bugzilla.redhat.com/show_bug.cgi?id=1244517). This module contains C extensions and in order to launch the tests, I need to modify the python path so that the build module are found.
The build directory to add to the path is like: build/lib.%{_os}-%{_target_cpu}-%{python3_version}
This expression works fine with i686 and x64_84. However, on armv, %{_target_cpu} resolves to armv7hl whereas the folder is named lib.linux-armv7l-3.4.
Previously, I tried the %{_host} macro but it extends to i386 instead of i686 for 32 bits build.
Is there a macro that would correctly extends in all cases (x86_64, i686 and armv7l)? If not, I will use grep to get the proper folder name.
Note: the advice below is provided without looking at the code.
armv7hl is correct (it's set by build environment). You could patch the package's build system to use that instead of armv7l and then you could use the first macro.
Regards, Dominik