Bug 416856

Summary: building with openbabel 3.0 not supported
Product: [Applications] kalzium Reporter: Rik Mills <rikmills>
Component: generalAssignee: Kalzium Developers <kalzium>
Status: RESOLVED FIXED    
Severity: normal CC: arojas, jscott, yuri
Priority: NOR    
Version: 19.12   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://github.com/openbabel/openbabel/issues/2148
Latest Commit: Version Fixed In: 21.04.0

Description Rik Mills 2020-01-28 11:10:08 UTC
Only openbabel 2.x seems to be supported

-- Checking for module 'openbabel-2.0>=2.2.0'
--   No package 'openbabel-2.0' found

So as Ubuntu 20.04 LTS now has openbabel 3.0, a kalzium build using it can not be shipped with 20.04.
Comment 1 Christoph Feck 2020-02-14 09:06:43 UTC
Porting guide at https://open-babel.readthedocs.io/en/latest/UseTheLibrary/migration.html
Comment 2 John Scott 2020-02-19 23:46:49 UTC
This blocks introduction of the molecular editor into Debian, but I hope it'll be possible to enable building it soon: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951674
Comment 3 Antonio Rojas 2020-02-20 07:20:29 UTC
Patch available at https://git.archlinux.org/svntogit/packages.git/tree/trunk/kalzium-openbabel3.patch?h=packages/kalzium

Waiting for 3.0.1 to upstream it, because the cmake files are utterly broken in 3.0.0 so you need to pass all cmake variables manually
Comment 4 Antonio Rojas 2020-02-20 07:22:27 UTC
Builds with 
cmake -DOPENBABEL2_INCLUDE_DIR=/usr/include/openbabel3 \
      -DOPENBABEL2_LIBRARIES=/usr/lib/libopenbabel.so \
      -DOPENBABEL2_VERSION_MET=TRUE
Comment 5 John Scott 2020-03-30 17:25:44 UTC
Upstream has given no indication of planning to make a release soon, so I've filed a bug to bring the CMake issues to their attention.
Comment 6 John Scott 2020-04-10 14:48:08 UTC
(In reply to John Scott from comment #5)
> Upstream has given no indication of planning to make a release soon, so I've
> filed a bug to bring the CMake issues to their attention.

Upstream is now certain that they will release 3.0.1 soon, which will switch to being able to use FindOpenBabel3 and fix many other issues.
Comment 7 Antonio Rojas 2020-05-06 13:51:44 UTC
3.1 is release, I've submitted my patch for review

https://phabricator.kde.org/D29482
Comment 8 John Scott 2020-05-31 00:43:31 UTC
(In reply to Antonio Rojas from comment #7)
> 3.1 is release, I've submitted my patch for review
> 
> https://phabricator.kde.org/D29482

Awesome! OpenBabel 3.1.1 is making its way into Debian Unstable shortly, so when the dust settles it'll be easy to add your patch and get this enabled
Comment 9 Antonio Rojas 2021-01-13 07:25:49 UTC
*** Bug 431522 has been marked as a duplicate of this bug. ***