[Pkg-cmake-team] [Debichem-devel] Building Kalzium with OpenBabel: bad CMake module

merkys at debian.org merkys at debian.org
Tue Jul 28 06:39:05 BST 2020


Hello,

On 2020-07-26 10:23, Michael Banck wrote:
> Hi,
> 
> On Fri, Jul 24, 2020 at 08:31:12AM +0300, merkys at debian.org wrote:
>> On 2020-07-19 00:31, John Scott wrote:
>>> See the bug hunting at [1]: it seems that even in OpenBabel 3.1.1, 
>>> the CMake module probably wrongfully hardcodes a path and makes it not work on 
>>> Debian.
>>
>> Indeed, there seems to be a problem with paths in OpenBabel CMake
>> modules. OpenBabel3Config.cmake seems suspicious: ${OpenBabel3_DIR} does
>> not seem to be set anywhere, and the following paths too get incorrect
>> values:
>>
>> * OpenBabel3_INCLUDE_DIRS: should be /usr/include/openbabel3
>> * OpenBabel3_EXPORTS_FILE: should be
>> /usr/lib/<triplet>/cmake/openbabel3/OpenBabel3_EXPORTS.cmake
>> * OpenBabel3_LIBRARIES (maybe?)
>>
>> Not sure if this issue is relevant outside Debian, hence the upstream
>> confusion. I would suggest patching OpenBabel CMake modules in Debian. I
>> volunteer to do that if no one comes up with a better solution.
> 
> Without having looked at the problem in detail, it sounds like it's
> worth filing an issue in OpenBabel upstream as well, or is there one
> already?

Good idea. I have filed the issue in OpenBabel upstream [1], as well as
Debian BTS [2].

[1] https://github.com/openbabel/openbabel/issues/2264
[2] https://bugs.debian.org/966405

Best,
Andrius



More information about the Pkg-cmake-team mailing list