[OE-core] [PATCH 2/3] ffmpeg: Fix the license description

Andreas Oberritter obi at opendreambox.org
Tue Feb 21 09:53:47 UTC 2017


On Tue, 21 Feb 2017 01:21:35 +0000
"Burton, Ross" <ross.burton at intel.com> wrote:

> On 16 February 2017 at 10:34, Andreas Oberritter <obi at opendreambox.org>
> wrote:
> 
> > +LICENSE = "BSD & GPLv2+ & LGPLv2.1+ & MIT"
> > +LICENSE_${PN} = "GPLv2+"
> > +LICENSE_libavcodec = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libavdevice = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libavfilter = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libavformat = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libavresample = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libavutil = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libpostproc = "GPLv2+"
> > +LICENSE_libswresample = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> > +LICENSE_libswscale = "${@bb.utils.contains('PACKAGECONFIG', 'gpl',
> > 'GPLv2+', 'LGPLv2.1+', d)}"
> >  
> 
> Using a script to extract the pkgdata information, I see this license
> information in the runtime libraries.
> 
> libswscale-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libswresample-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libpostproc-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libavutil-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libavformat-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libavfilter-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libavdevice-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libavcodec-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> libswscale: GPLv2+
> libswresample: GPLv2+
> libpostproc: GPLv2+
> libavutil: GPLv2+
> libavformat: GPLv2+
> libavfilter: GPLv2+
> libavdevice: GPLv2+
> libavcodec: GPLv2+
> ffmpeg-dbg: BSD & GPLv2+ & LGPLv2.1+ & MIT
> ffmpeg-staticdev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> ffmpeg-dev: BSD & GPLv2+ & LGPLv2.1+ & MIT
> ffmpeg-doc: BSD & GPLv2+ & LGPLv2.1+ & MIT
> ffmpeg-locale: BSD & GPLv2+ & LGPLv2.1+ & MIT
> ffmpeg: GPLv2+
> 
> It looks like the BSD/LGPL/MIT license statements don't end up in any
> packages which actually contain binaries.  Is this correct?

Yes, because LICENSE describes the source licenses, whereas LICENSE_.* describes
licenses of binary packages [1].

The binary packages contain combined work. Quoted from FFmpeg's docs (LICENSE.md):

„Most files in FFmpeg are under the GNU Lesser General Public License version 2.1
or later (LGPL v2.1+). Read the file `COPYING.LGPLv2.1` for details. Some other
files have MIT/X11/BSD-style licenses. In combination the LGPL v2.1+ applies to
FFmpeg.“

If you disable the 'gpl' PACKAGECONFIG knob, the binary packages will get the LGPLv2+
license tag (except for libpostproc), and slightly reduced functionality.

Regards,
Andreas

[1]: http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-LICENSE



More information about the Openembedded-core mailing list