Fix for a build failure when with_debug_build=0
This commit is contained in:
parent
252962389c
commit
7e7918aadd
@ -1145,6 +1145,7 @@ echo '[ $? -eq 127 ] && echo "Could not find python%{LDVERSION_optimized}-`uname
|
|||||||
%{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
|
%{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
|
||||||
chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
|
chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_optimized}-config
|
||||||
|
|
||||||
|
%if 0%{?with_debug_build}
|
||||||
# Rename the -debug script that differs on different arches to arch specific name
|
# Rename the -debug script that differs on different arches to arch specific name
|
||||||
mv %{buildroot}%{_bindir}/python%{LDVERSION_debug}-{,`uname -m`-}config
|
mv %{buildroot}%{_bindir}/python%{LDVERSION_debug}-{,`uname -m`-}config
|
||||||
echo -e '#!/bin/sh\nexec `dirname $0`/python%{LDVERSION_debug}-`uname -m`-config "$@"' > \
|
echo -e '#!/bin/sh\nexec `dirname $0`/python%{LDVERSION_debug}-`uname -m`-config "$@"' > \
|
||||||
@ -1152,11 +1153,13 @@ echo -e '#!/bin/sh\nexec `dirname $0`/python%{LDVERSION_debug}-`uname -m`-config
|
|||||||
echo '[ $? -eq 127 ] && echo "Could not find python%{LDVERSION_debug}-`uname -m`-config. Look around to see available arches." >&2' >> \
|
echo '[ $? -eq 127 ] && echo "Could not find python%{LDVERSION_debug}-`uname -m`-config. Look around to see available arches." >&2' >> \
|
||||||
%{buildroot}%{_bindir}/python%{LDVERSION_debug}-config
|
%{buildroot}%{_bindir}/python%{LDVERSION_debug}-config
|
||||||
chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_debug}-config
|
chmod +x %{buildroot}%{_bindir}/python%{LDVERSION_debug}-config
|
||||||
|
%endif # with_debug_build
|
||||||
|
|
||||||
# System Python: Copy the executable to libexec
|
# System Python: Copy the executable to libexec
|
||||||
mkdir -p %{buildroot}%{_libexecdir}
|
mkdir -p %{buildroot}%{_libexecdir}
|
||||||
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_libexecdir}/system-python
|
cp %{buildroot}%{_bindir}/python%{pybasever} %{buildroot}%{_libexecdir}/system-python
|
||||||
|
|
||||||
|
|
||||||
# ======================================================
|
# ======================================================
|
||||||
# Running the upstream test suite
|
# Running the upstream test suite
|
||||||
# ======================================================
|
# ======================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user