[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#946082: should depend on shiboken2



control: severity -1 serious
control: tags -1 patch pending

NMU ongoing

G.

On Tue, 03 Dec 2019 20:41:34 +0100 Tommaso Colombo <acct.debian@tmcl.it> wrote:
> Package: libshiboken2-dev
> Version: 5.13.2-2
> Severity: important
> 
> Since PySide 5.13, the CMake files shipped in libshiboken2-dev have a
> dependency on the /usr/bin/shiboken2 executable. If the shiboken2 package is
> not installed, find_package(Shiboken2) fails in CMake.
> 
> Installing shiboken2 fixes the issue.
> 
> This breaks the build of packages which build-depend on libshiboken2-dev. For
> example:
> https://buildd.debian.org/status/fetch.php?pkg=freecad&arch=amd64&ver=0.18.4%2Bdfsg1-1%2Bb1&stamp=1574113872&raw=0
> 
> How to reproduce:
> 
> $ cat > CMakeFiles.txt
> find_package(Shiboken2)
> ^D
> 
> $ cmake -Wno-dev .
> -- The C compiler identification is GNU 9.2.1
> -- The CXX compiler identification is GNU 9.2.1
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> -- Shiboken2Config: Using default python: .cpython-38-x86_64-linux-gnu
> CMake Error at /usr/lib/x86_64-linux-
> gnu/cmake/Shiboken2-5.13.2/Shiboken2Targets.cmake:75 (message):
>   The imported target "Shiboken2::shiboken2" references the file
> 
>      "/usr/bin/shiboken2"
> 
>   but this file does not exist.  Possible reasons include:
> 
>   * The file was deleted, renamed, or moved to another location.
> 
>   * An install or uninstall procedure did not complete successfully.
> 
>   * The installation package was faulty and contained
> 
>      "/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.13.2/Shiboken2Targets.cmake"
> 
>   but not all the files it references.
> 
> Call Stack (most recent call first):
>   /usr/lib/x86_64-linux-
> gnu/cmake/Shiboken2-5.13.2/Shiboken2Config.cpython-38-x86_64-linux-gnu.cmake:40
> (include)
>   /usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.13.2/Shiboken2Config.cmake:5
> (include)


Reply to: