Overview

Request 866509 superseded

- Ship the python2/python3 flags only when the corresponding binaries
are instaled, needed by new python-rpm-macros

Loading...

Dominique Leuenberger's avatar

@StefanBruens anything blocking this? Please let me know so I can really do the right people to fix it. This is the last package fix blocking staging A

Thanks!


Stefan Brüns's avatar

@dimstar - I really hate to do this, but until I get any reaction on https://build.opensuse.org/request/show/853755 I will ignore this.



Markéta Machová's avatar

ping @StefanBruens, if this is not enough for you I will be glad to make the changelog entry more explanatory


Benjamin Greiner's avatar

@StefanBruens, the reason for this is this failure in Staging:A:

[  112s] + /usr/bin/cmake /home/abuild/rpmbuild/BUILD/opencv-3.4.10/. '-GUnix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=lib64 -DCMAKE_INSTALL_LIBEXECDIR=/usr/libexec -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG' '-DCMAKE_CXX_FLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG' '-DCMAKE_Fortran_FLAGS=-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DNDEBUG' '-DCMAKE_EXE_LINKER_FLAGS=-flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_MODULE_LINKER_FLAGS=-flto=auto -Wl,--as-needed' '-DCMAKE_SHARED_LINKER_FLAGS=-flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_MODULES_INSTALL_DIR=/usr/lib64/cmake/opencv3 -DINSTALL_C_EXAMPLES=ON -DINSTALL_PYTHON_EXAMPLES=ON -DENABLE_OMIT_FRAME_POINTER=OFF -DWITH_QT=ON -DWITH_OPENGL=ON -DWITH_UNICAP=ON -DWITH_XINE=ON -DWITH_IPP=OFF -DWITH_TBB=ON -DCPU_BASELINE=SSE2 -DCPU_DISPATCH=SSE3,SSE4_1,SSE4_2,AVX,FP16,AVX2 -DPYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 -DOPENCV_SKIP_PYTHON_LOADER=ON '-DOPENCV_PYTHON2_INSTALL_PATH=!!/usr/bin/python2' not 'installed!!' -DOPENCV_PYTHON3_INSTALL_PATH=/usr/lib64/python3.8/site-packages -DWITH_JASPER=OFF
[  112s] CMake Error: The source directory "/home/abuild/rpmbuild/BUILD/opencv-3.4.10/build/installed!!" does not exist.

If the build environment does not have python2, %python2_sitearch does not point to any existing path. Naturally, OPENCV_PYTHON2_INSTALL_PATH should not be set. Do you agree? (I know you don't like singlespec. But python2_sitearch is a macro from python-rpm-macros and does exactly what it is intended to do here)

@mcalabkova: Maybe write "only provide existing python install paths to cmake" in the changelog?


Markéta Machová's avatar

Thanks for the explanation! I superseeded with a different changelog entry, but this is only result of my (bad) habit "fix acute thing first, read emails later".


Request History
Markéta Machová's avatar

mcalabkova created request

- Ship the python2/python3 flags only when the corresponding binaries
are instaled, needed by new python-rpm-macros


Stefan Brüns's avatar

StefanBruens declined request

- to long line in changelog (66 characters)
- s/Ship/use/
- s/instaled/installed/
- s/flags/macros/

End the sentence with a full stop.


openSUSE Build Service is sponsored by