office-gobmx/readlicense_oo
Michael Stahl 79084665f0 python3: bundle libffi for GNU/Linux builds
CPython commit f40d4ddff3c800b3c956a5e8820aabe3aa87cddd "Closes #27979:
Remove bundled copy of libffi" causes a bit of a problem because it
turns out that libffi isn't all that stable; there's libffi.so.5 on
CentOS 6, libffi.so.6 on CentOS 7 and libffi.so.7 on
lo_daily_update_gandalf tinderbox.

So we have to bundle it in LO; it's only used on GNU/Linux currently.

CPython commit 32119e10b792ad7ee4e5f951a2d89ddbaf111cc5 "bpo-35947:
Update Windows to the current version of libffi (GH-11797)" also removes
the libffi for MSVC, so in a future python upgrade we will have to build
libffi for MSVC too.

The libffi fork for MacOSX is still in CPython git master.

(regression from b10be5d484)

Change-Id: Ibc20cf8cd3614cf9941b6970662bd930496776b2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86493
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
2020-01-09 17:56:19 +01:00
..
docs
license python3: bundle libffi for GNU/Linux builds 2020-01-09 17:56:19 +01:00
CustomTarget_license.mk
CustomTarget_readme.mk
Makefile
Module_readlicense_oo.mk
Package_files.mk
Package_license.mk
Package_readlicense_oo_readmes.mk
README

Contains the stock libreoffice licensing blurb, as distributed in the install
directory, and also potentially at run-time.

Generating licence files
------------------------

License files are generated from a single source file (license/license.xml).
Output file formats are plain text and html.

- The plain text and the html format is generated with xslt. There are two
  separate xsl files for plain text and html.

Conditional text
----------------

The contents of the license file depends on the build configuration. Several
externals may or may not be shipped with LibreOffice. Therefore, we need to pass
information about build configuration to the xslt processor.

Variables used for conditional text:

- BUILD_TYPE: A space separated list of libraries/externals. If an external is
  present in that list, then the related license text should be included.

- MPL_SUBSET: If the variable is defined, then GPL and LGPL license text will not
  be included, because none of the built-in code need it.

- OS: The target platform. E.g. MSVC Runtime is packaged and used only on Windows.

- WITH_THEMES: A space separated list of icon sets that are used in the build.

Conditional text are surrounded by and extra <div> tag. The class attribute of
that <div> tag decides which parameter values are taken into consideration.