Skip to contentSkip to conversation

freerdp: bump SRCREV and change license to Apache-2.0

PATCH New Otavio Salvador 1 participant 2 messages Feb 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 freerdp: bump SRCREV and change license to Apache-2.0

---
 recipes/freerdp/freerdp.inc    |    4 ++--
 recipes/freerdp/freerdp_git.bb |    8 +++-----
 2 files changed, 5 insertions(+), 7 deletions(-)
recipes/freerdp/freerdp.inc +2 -2
index 0b9c9ac..c75175e 100644
@@ -5,9 +5,9 @@ DESCRIPTION = "FreeRDP RDP client"
 HOMEPAGE = "http://freerdp.sourceforge.net"
 DEPENDS = "virtual/libx11 openssl libxcursor cups alsa-lib"
 SECTION = "x11/network"
-LICENSE = "GPL"
+LICENSE = "Apache-2.0"
 
-INC_PR = "r4"
+INC_PR = "r5"
 
 inherit pkgconfig autotools
 
recipes/freerdp/freerdp_git.bb +3 -5
index 37d0041..1ed2a19 100644
@@ -7,11 +7,9 @@ inherit gitpkgv
 
 PV = "gitr${SRCPV}"
 PKGV = "${GITPKGVTAG}"
+PR = "${INC_PR}.0"
 
-SRCREV = "aec5dd5807dbcd0989bb15124dcac157bb0412bc"
-PR = "${INC_PR}.4"
+SRCREV = "6f7eb2abb077d60a09eeb66a10ad97d102336d3c"
+SRC_URI = "git://freerdp.git.sourceforge.net/gitroot/freerdp/freerdp.git;protocol=git"
 
 S = "${WORKDIR}/git"
-
-
-SRC_URI = "git://freerdp.git.sourceforge.net/gitroot/freerdp/freerdp.git;protocol=git"
Signature · 1 line
1.7.2.3
#1 lore raw

PATCH 2/2 src_distribute.bbclass: distribute only SRC_DISTRIBUTE_LICENSES

A distro can require conf/licenses.conf or set SRC_DISTRIBUTE_LICENSES selecting which licenses are wanted to be distributed. In case it is empty or undefined we default to distribute all licenses to not break backward compatibility.

---
 classes/src_distribute.bbclass |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
classes/src_distribute.bbclass +4 -2
index 242d70c..f3d3cba 100644
@@ -16,6 +16,7 @@ python do_distribute_sources () {
 	dldir = os.path.realpath(d.getVar("DL_DIR", 1) or "")
 
 	licenses = (bb.data.getVar('LICENSE', d, 1) or "unknown").split()
+	distribute_licenses = (bb.data.getVar('SRC_DISTRIBUTE_LICENSES', d, 1) or "All").split()
 	urldatadict = bb.fetch.init(d.getVar("SRC_URI", True).split(), d, True)
 	src_uri = oe.data.typed_value("SRC_URI", d)
 	if not src_uri:
@@ -33,8 +34,9 @@ python do_distribute_sources () {
 		bb.data.setVar('SRC', os.path.abspath(local), d)
 		for license in licenses:
 			for entry in license.split("|"):
-				bb.data.setVar('LIC', entry, d)
-				bb.build.exec_func('SRC_DISTRIBUTECOMMAND', d)
+				if entry in distribute_licenses or "All" in distribute_licenses:
+					bb.data.setVar('LIC', entry, d)
+					bb.build.exec_func('SRC_DISTRIBUTECOMMAND', d)
 }
 
 addtask distribute_sources_all after do_distribute_sources
Signature · 1 line
1.7.2.3