diff options
author | Paul Barker <paul@paulbarker.me.uk> | 2013-08-05 22:31:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-13 23:06:02 +0100 |
commit | 3aabe00df69f1a2aa7eff97e042ed0ce15613f0f (patch) | |
tree | fc181511fa5188355bff31e57057bc928d7d86e7 /meta/recipes-devtools | |
parent | 7590f6926de6dcee05a5b71ef61b8a09972daac5 (diff) | |
download | poky-3aabe00df69f1a2aa7eff97e042ed0ce15613f0f.tar.gz |
opkg: Fix possible installation of GPLv3 header
opkg is GPLv2+ licensed but it has optional support for sha256 checksums which
was GPLv3+ licensed. This code is not built unless '--enable-sha256' is passed
to the configure script, the default is equivalent to '--disable-sha256'.
However, the header 'sha256.h', which is GPLv3+ licensed, is in the list of
header files to be installed and thus could end up in the libopkg-dev package.
As this header is installed to '/usr/include/libopkg' it is very unlikely that
it will ever be used. However, if you're uncomfortable with GPLv3 code going
anywhere near your target filesystem you won't want this to happen.
The simplest solution is to replace the sha256 implementation in opkg with the
implementation from coreutils-6.9 which is licensed under GPLv2+. This is
committed to the opkg subversion repository as r652/r653.
The only intervening commit between r650 (previous SRCREV) and this is r651,
which integrates 'obsolete_automake_macros.patch' into the opkg sources. Thus
this patch isn't needed in oe-core anymore.
(Note: Before 873689bbabba25e7be5c12317c04519a7bc8d0ef, this header is only
installed if opkg is built in its source tree (ie. ${B}=${S}). After that commit
the header will always be installed)
(From OE-Core rev: 3c6a8a39d820f14f9eb3df3d719cef2c469769da)
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg/obsolete_automake_macros.patch | 15 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_svn.bb | 6 |
2 files changed, 2 insertions, 19 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/obsolete_automake_macros.patch b/meta/recipes-devtools/opkg/opkg/obsolete_automake_macros.patch deleted file mode 100644 index 1f9833a430..0000000000 --- a/meta/recipes-devtools/opkg/opkg/obsolete_automake_macros.patch +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> | ||
4 | diff -Nurd opkg/configure.ac opkg/configure.ac | ||
5 | --- opkg/configure.ac 2013-02-01 23:01:57.419774077 +0200 | ||
6 | +++ opkg/configure.ac 2013-02-01 23:02:25.643773458 +0200 | ||
7 | @@ -7,7 +7,7 @@ | ||
8 | AC_CONFIG_MACRO_DIR([shave]) | ||
9 | |||
10 | AM_INIT_AUTOMAKE | ||
11 | -AM_CONFIG_HEADER(libopkg/config.h) | ||
12 | +AC_CONFIG_HEADERS(libopkg/config.h) | ||
13 | |||
14 | AC_CANONICAL_HOST | ||
15 | AC_GNU_SOURCE | ||
diff --git a/meta/recipes-devtools/opkg/opkg_svn.bb b/meta/recipes-devtools/opkg/opkg_svn.bb index 3a47b9502d..032578d23d 100644 --- a/meta/recipes-devtools/opkg/opkg_svn.bb +++ b/meta/recipes-devtools/opkg/opkg_svn.bb | |||
@@ -1,12 +1,10 @@ | |||
1 | require opkg.inc | 1 | require opkg.inc |
2 | 2 | ||
3 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;protocol=http \ | 3 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;protocol=http" |
4 | file://obsolete_automake_macros.patch \ | ||
5 | " | ||
6 | 4 | ||
7 | S = "${WORKDIR}/trunk" | 5 | S = "${WORKDIR}/trunk" |
8 | 6 | ||
9 | SRCREV = "650" | 7 | SRCREV = "653" |
10 | PV = "0.1.8+svnr${SRCPV}" | 8 | PV = "0.1.8+svnr${SRCPV}" |
11 | 9 | ||
12 | PR = "${INC_PR}.0" | 10 | PR = "${INC_PR}.0" |