package_ipk: add License field to control file
PATCH 1/2 package_ipk: add License field to control file
From: Koen Kooi <[email protected]>
Port of oe.dev Revision e35d1ffad1553f259b084578992f15d10f590f98
--- meta/classes/package_ipk.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/package_ipk.bbclass +1 -0
@@ -263,6 +263,7 @@ python do_package_ipk () { fields.append(["Section: %s\n", ['SECTION']]) fields.append(["Priority: %s\n", ['PRIORITY']]) fields.append(["Maintainer: %s\n", ['MAINTAINER']]) + fields.append(["License: %s\n", ['LICENSE']]) fields.append(["Architecture: %s\n", ['PACKAGE_ARCH']]) fields.append(["OE: %s\n", ['PN']]) fields.append(["Homepage: %s\n", ['HOMEPAGE']])
Signature · 1 line
1.7.4.1
PATCH 2/2 opkg-utils: Print out License field
--- .../opkg-utils/opkg-utils/add-license-field.patch | 39 ++++++++++++++++++++ meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb | 3 +- 2 files changed, 41 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch
meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch new file +39 -0
@@ -0,0 +1,39 @@ +Add knowledge about License field in ipk headers + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> + +Index: opkg-utils/opkg.py +=================================================================== +--- opkg-utils.orig/opkg.py 2010-11-01 04:52:35.000000000 -0700 ++++ opkg-utils/opkg.py 2011-07-13 15:18:03.900037344 -0700 +@@ -145,6 +145,7 @@ + self.priority = None + self.tags = None + self.fn = fn ++ self.license = None + + if fn: + # see if it is deb format +@@ -319,6 +320,12 @@ + def get_section(self, section): + return self.section + ++ def set_license(self, license): ++ self.license = license ++ ++ def get_license(self, license): ++ return self.license ++ + def get_file_list(self): + if not self.fn: + return [] +@@ -425,6 +432,7 @@ + if self.description: out = out + "Description: %s\n" % (self.description) + if self.oe: out = out + "OE: %s\n" % (self.oe) + if self.homepage: out = out + "HomePage: %s\n" % (self.homepage) ++ if self.license: out = out + "License: %s\n" % (self.license) + if self.priority: out = out + "Priority: %s\n" % (self.priority) + if self.tags: out = out + "Tags: %s\n" % (self.tags) + out = out + "\n"
meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb +2 -1
@@ -8,11 +8,12 @@ RDEPENDS_${PN} = "python" RDEPENDS_${PN}_virtclass-native = "" SRCREV = "4747" PV = "0.1.8+svnr${SRCPV}" -PR = "r3" +PR = "r4" SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \ file://index-ignore-filenotfound.patch \ file://mtime-int.patch \ + file://add-license-field.patch \ " S = "${WORKDIR}/opkg-utils"
Signature · 1 line
1.7.4.1
While we're at it, how about this one as well:
------>8----------------
commit 6ae45bbf2b5ca9e4fd7e8b04e461f0bf120dd44d
Author: Koen Kooi <[email protected]> Date: Tue Dec 21 18:06:06 2010 +0000
package ipk bbclass: store build branch and revision in ipkg metadata
The ipkg metadata will look like this now:
koen@dominion:/OE/angstrom-dev/deploy/glibc$ dpkg-deb -I ipk/am3517-evm/matrix-gui_1.3-r19.0.6_am3517-evm.ipk
new debian package, version 2.0.
size 24112 bytes: control archive= 540 bytes.
629 bytes, 13 lines control
Package: matrix-gui
Version: 1.3-r19.0.6
Description: Matrix GUI for Qt X11
Section: multimedia
Priority: optional
Maintainer: Angstrom Developers <[email protected]>
License: BSD
Architecture: am3517-evm
OE: matrix-gui
Homepage: https://gforge.ti.com/gf/project/matrix_gui/
Build: org.openembedded.dev/f35ab2d
Depends: matrix-gui-common, libpng12-0, libfreetype6, libz1, libgthread-2.0-0, libqtwebkit4, libphonon4, libqtdbus4, libqtxml4, libqtgui4, libqtnetwork4, libqtcore4, libglib-2.0-0, libc6, libstdc++
Source: svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd=''
koen@dominion:/OE/angstrom-dev/deploy/glibc$
------8<----------------
Having some info on the oe-core revision (and branch) would be usefull.
Op 14 jul 2011, om 08:31 heeft Khem Raj het volgende geschreven:
Quoted 25 lines
From: Koen Kooi <[email protected]>
Port of oe.dev Revision
e35d1ffad1553f259b084578992f15d10f590f98Signed-off-by Koen Kooi <[email protected]>Signed-off-by Khem Raj <[email protected]>---
meta/classes/package_ipk.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/package_ipk.bbclass +1
-0@@ -263,6 +263,7 @@ python do_package_ipk () { fields.append(["Section: %s\n", ['SECTION']]) fields.append(["Priority: %s\n", ['PRIORITY']]) fields.append(["Maintainer: %s\n", ['MAINTAINER']]) + fields.append(["License: %s\n", ['LICENSE']]) fields.append(["Architecture: %s\n", ['PACKAGE_ARCH']]) fields.append(["OE: %s\n", ['PN']]) fields.append(["Homepage: %s\n", ['HOMEPAGE']])Signature · 1 line
1.7.4.1
Richard Purdie
AppliedRe: [PATCH 2/2] opkg-utils: Print out License field
In reply to Khem RajQuoted 6 lines · Khem Raj
Signed-off-by Khem Raj <[email protected]>--- .../opkg-utils/opkg-utils/add-license-field.patch | 39 ++++++++++++++++++++ meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb | 3 +- 2 files changed, 41 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/add-license-field.patch
Merged to master (along with patch 1/2), thanks.
Richard