Bug#1058868: [Debichem-devel] Bug#1058868: gemmi: Please build shared library

2023-12-19 Thread Yadd

Control: tags -1 + wontfix

On 12/19/23 12:43, Andrius Merkys wrote:

Hi,

On 2023-12-17 11:31, Yadd wrote:

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.


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


Noted, thank you very much for your time!

Cheers,
Yadd



Bug#1058868: [Debichem-devel] Bug#1058868: gemmi: Please build shared library

2023-12-19 Thread Andrius Merkys

Hi,

On 2023-12-17 11:31, Yadd wrote:

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.


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



Bug#1058868: [Debichem-devel] Bug#1058868: gemmi: Please build shared library

2023-12-18 Thread Andrius Merkys

Control: owner -1 !
Control: tags -1 - moreinfo

Hi,

On 2023-12-18 09:47, Yadd wrote:
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 see. OK, let me apply your patch and build the shared library for 
gemmi, and let's see what happens.


Best wishes,
Andrius



Bug#1058868: [Debichem-devel] Bug#1058868: gemmi: Please build shared library

2023-12-17 Thread Andrius Merkys

Control: tags -1 + moreinfo

Hi Yadd,

On 2023-12-17 11:31, Yadd wrote:

Source: gemmi
Version: 0.6.3+ds-1
Severity: important
Tags: patch
X-Debbugs-Cc: y...@debian.org

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.


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