#1058868 gemmi: Please build shared library

#1058868#5
Date:
2023-12-17 09:31:17 UTC
From:
To:
Hi,

currently src:gemmi builds gemmi and gemmi-dev. This doesn't permit to
build any software using gemmi-dev without static linking.

The proposed patch adds package libgemmi1 which contains the shared
library.

#1058868#10
Date:
2023-12-18 07:23:31 UTC
From:
To:
Hi Yadd,

I appreciate the idea and your patch, thanks for giving gemmi a look.
However, I am hesitant to package gemmi shared library for Debian for
now. The previous two releases had breaking API changes each. If
upstream handles this properly and bumps the soversion, then this is
fine, although having to undergo a transition twice a year is still
quite some work. However, if the upstream does not maintain ABI
stability inside the same soversion, then I would say the shared library
is not yet ready for Debian.

You have marked this bug as severity:important. Does this mean you need
gemmi's shared library for some package?

I never had the need to manually trigger the ldconfig before. The issue
might be the lack of 'Section: libs' in binary package description.

Thanks,
Andrius

#1058868#17
Date:
2023-12-18 07:47:59 UTC
From:
To:
 > I appreciate the idea and your patch, thanks for giving gemmi a look.
 > However, I am hesitant to package gemmi shared library for Debian for
 > now. The previous two releases had breaking API changes each. If
 > upstream handles this properly and bumps the soversion, then this is
 > fine, although having to undergo a transition twice a year is still
 > quite some work. However, if the upstream does not maintain ABI
 > stability inside the same soversion, then I would say the shared
 > library is not yet ready for Debian.
 >
 > You have marked this bug as severity:important. Does this mean you
 >  need gemmi's shared library for some package?

Hi,

yas I'm going to package ovito which depends on it. If shared library
isn't provided, cmake automatically uses libgemmi_cpp.a which then embed
gemmi into ovito :-(

 > I never had the need to manually trigger the ldconfig before. The
 > issue might be the lack of 'Section: libs' in binary package
 > description.

Maybe it's the issue

Best regards,
Yadd

#1058868#22
Date:
2023-12-19 07:32:55 UTC
From:
To:
Hi,

I see. OK, let me apply your patch and build the shared library for
gemmi, and let's see what happens.

Best wishes,
Andrius

#1058868#31
Date:
2023-12-19 08:43:18 UTC
From:
To:
Hi,

I looked into the shared library provided by gemmi v0.6.4 (newer
upstream release than in your patch). This version of gemmi builds the
shared library by default. However, the produced shared library does not
carry a soversion, thus according to Debian principles it is not
suitable to be packaged as public shared library, alas. Thus static
linking is the only option for now.

Best wishes,
Andrius

#1058868#36
Date:
2023-12-19 08:46:20 UTC
From:
To:
Control: tags -1 + wontfix

Noted, thank you very much for your time!

Cheers,
Yadd