Your message dated Tue, 06 Jan 2026 13:14:10 +0100
with message-id <[email protected]>
and subject line Re: `libocct-draw-dev` has implicit dependencies
has caused the Debian Bug report #1123535,
regarding `libocct-draw-dev` has implicit dependencies
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1123535: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1123535
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libocct-draw-dev
Version: 7.6.3+dfsg1-7
Severity: normal

Hi! Stumbled upon `libocct-draw-dev` having implicit dependencies.
Consider cmake file below:

```cmake
cmake_minimum_required(VERSION 3.21)
project(test-cmake)

find_package(OpenCASCADE CONFIG REQUIRED)
# main.cpp is not important - just some hello world.
add_executable(main main.cpp)
target_link_libraries(main PRIVATE TKDraw)
```

And the following chain of commands. There are two issues:
- when linking just `TKDraw` target, it also has a bunch of dependencies on 
other OCCT packages
- after all OCCT packages dependencies are installed, there are also other 
dependencies like `libtk.so`, `libtbb.so`, etc.

```sh
sudo apt-get install -y libocct-foundation-dev libocct-draw-dev
cmake ..
# Error below logged below
sudo apt-get install -y libocct-modeling-data-dev 
libocct-modeling-algorithms-dev libocct-visualization-dev 
libocct-data-exchange-dev
# Error is resolved
cmake ..

# No rule to make target '/usr/lib/x86_64-linux-gnu/libtcl.so', needed by 
'main'.  Stop.
make
sudo apt-get install -y tcl-dev

# make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libtk.so', 
needed by 'main'.  Stop.
make
sudo apt-get install -y tk-dev

# make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libtbb.so', 
needed by 'main'.  Stop.
make
# Build succeds.
sudo apt-get install -y libtbb-dev
```

cmake error for missing OCCT packages:
```
CMake Error at CMakeLists.txt:4 (find_package):
  Found package configuration file:

    /usr/lib/x86_64-linux-gnu/cmake/opencascade/OpenCASCADEConfig.cmake

  but it set OpenCASCADE_FOUND to FALSE so package "OpenCASCADE" is
  considered to be NOT FOUND.  Reason given by package:

  The following imported targets are referenced, but are missing: TKG2d
  TKGeomBase TKG3d TKBRep TKGeomAlgo TKTopAlgo TKShHealing TKMesh TKService
  TKHLR TKBO TKV3d TKFillet TKPrim TKBool TKOffset TKFeat TKOpenGl TKXSBase
  TKMeshVS TKSTEPBase TKSTEP TKIGES TKSTL TKVRML TKLCAF TKXCAF TKRWMesh TKCDF
  TKCAF TKVCAF TKStd TKStdL TKBin TKBinL TKXml TKXmlL TKXDEIGES TKXDESTEP
  TKBinXCAF TKXmlXCAF TKTObj TKBinTObj TKXmlTObj
```

--- End Message ---
--- Begin Message ---
Thanks for the report.

Dependencies with opencascade, especially when using cmake, are tricky,
as the cmake tends to go maximal for those. but not everyone is using
cmake, so adding all those dependencies to libocct-draw-dev would be
counterproductive - it will just pull in 100% of opencascade and would
make the effort to split opencascade into many subpackages moot....

therefore I'm inclined not to fix this bug - for your own projects
you'll just need to manually install your depenencies as needed.

--
tobi

--- End Message ---

Reply via email to