]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
gnutls: remove gettext patch for non-GPLv3
authorSaul Wold <sgw@linux.intel.com>
Wed, 4 Jan 2012 22:27:18 +0000 (14:27 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Jan 2012 11:27:26 +0000 (11:27 +0000)
GPLv2 version of gnutls does not need the gettext 0.18 patch
since it still uses the over version of gettext that is also
GPLv2.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-support/gnutls/gnutls_2.12.14.bb

index 045ba69d1bc79e2bc112d8e64d0eb07c361430b5..21fd187285fcbe4ac7a4d6cb5ecb0ee81a2b78ac 100644 (file)
@@ -1,10 +1,17 @@
 require gnutls.inc
 
-PR = "${INC_PR}.3"
+PR = "${INC_PR}.4"
 
 SRC_URI += "file://gnutls-openssl.patch \
-            file://configure-fix.patch \
-            file://fix-gettext-version.patch"
+            file://configure-fix.patch"
+
+python() {
+    if not ((d.getVar("INCOMPATIBLE_LICENSE", True) or "").find("GPLv3") != -1):
+        # if GPLv3 add patch
+        src_uri = (d.getVar("SRC_URI", False) or "").split()
+        src_uri.append("file://fix-gettext-version.patch")
+        d.setVar("SRC_URI", " ".join(src_uri))
+}
 
 SRC_URI[md5sum] = "555687a7ffefba0bd9de1e71cb61402c"
 SRC_URI[sha256sum] = "5ee72ba6de7a23cf315792561954451e022dac8730149ca95f93c61e95be2ce3"