alsa-project / alsa-lib

The Advanced Linux Sound Architecture (ALSA) - library
GNU Lesser General Public License v2.1
345 stars 176 forks source link

Question: license compliance for libatopology 2.0.0 #343

Closed lucasgonze closed 7 months ago

lucasgonze commented 11 months ago

Given a binary linked with libatopology 2.0.0, and given that the LGPL requires source code to be bundled, it is unclear how to find the corresponding repo and tag (or release).

Thanks in advance for tips.

mchehab commented 11 months ago

Out of curiosity, as I never touched libatopology code, nor I'm a regular contributor to alsa-lib, but looking on its makefile (https://github.com/alsa-project/alsa-lib/blob/master/src/topology/Makefile.am) I can't see any binary linked there, only source files, and those are all there at the same dir. So, what binary are you referring to?

lucasgonze commented 11 months ago

Thanks for your comment, @mchehab. The binary is by a third party. They have a program that statically links libatopology.

perexg commented 11 months ago

There is snd_tplg_version() function which returns a static string. So you can dump the appropriate ELF section (objdump) to check the used version and it may be present in the statically linked program. But if not used, linker may strip it.

Something like:

$ objdump -sj .rodata libatopology.so.2.0.0 | colrm 1 44 | \
      tr -d '\n' | grep -o -E "1\\.[012]\\.[[:digit:]]+"
1.2.9

The topology code in alsa-lib follows LGPL 2.1.

What is your goal?

lucasgonze commented 11 months ago

Thanks for the tip, @perexg . My goal is to comply with the terms of the LGPL, which require source code to be made available. To do that I have to find the source.

perexg commented 7 months ago

The question seems handled. Reopen in other case.