Bug 9228 - libgomp license is misrepresented in gcc-runtime recipes
Summary: libgomp license is misrepresented in gcc-runtime recipes
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.2
Hardware: All Multiple
: Medium+ normal
Target Milestone: 2.1 M4
Assignee: Richard Purdie
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-08 12:18 UTC by Clemens Lang
Modified: 2016-05-05 14:36 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Lang 2016-03-08 12:18:28 UTC
Preconditions/Environment
-------------------------
Tested against jethro, still present in master. Bug introduced in http://git.openembedded.org/openembedded-core/commit/meta/recipes-devtools/gcc/gcc-runtime.inc?id=5db535a91edea439c14e75726acd23e64bb1e2ea.


Triggering Action/Cause
-----------------------
GPLv3 is set as incompatible license. This causes the gcc-runtime recipe to be built, but libgomp* to be excluded from packaging:

WARNING: QA Issue: libgomp has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: QA Issue: libgomp-dev has an incompatible license. Excluding from packaging. [incompatible-license]
WARNING: QA Issue: libgomp-staticdev has an incompatible license. Excluding from packaging. [incompatible-license]

However, the compiler still supports -fopenmp, so software that detects OpenMP support will try to use it and fail.


Expectation
-----------
libgomp shouldn't declare its license to be GPLv3, because it seems it is covered by the same GCC Runtime Exception as the rest of the GCC runtime libraries. For example, the libgomp.h header explicitly mentions the exception at https://github.com/gcc-mirror/gcc/blob/master/libgomp/libgomp.h#L17. Debian also thinks libgomp is covered by the runtime exception according to http://metadata.ftp-master.debian.org/changelogs/main/g/gcc-6/gcc-6_6-20160228-1_copyright.

It isn't clear to me how 5db535a91edea439c14e75726acd23e64bb1e2ea came to the conclusion that libgomp isn't covered by the runtime exception.

Actual Result
-------------
libgomp should not be excluded from packaging, making -fopenmp work.

Reproducibility
---------------
always
Comment 2 Bogdan Alexandru Voiculescu 2016-05-05 14:36:40 UTC
Verified on master f7b520878babbaa7527151f22c031ae160512753