Patchwork [1/2] package_ipk: add License field to control file

login
register
mail settings
Submitter Khem Raj
Date July 14, 2011, 6:31 a.m.
Message ID <1310625080-30964-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/7587/
State New, archived
Headers show

Comments

Khem Raj - July 14, 2011, 6:31 a.m.
From: Koen Kooi <koen@openembedded.org>

Port of oe.dev Revision e35d1ffad1553f259b084578992f15d10f590f98

Signed-off-by: Koen Kooi <koen@openembedded.org>
Signed-off-by: Khem Raj <raj.khem@gmail.org>
---
 meta/classes/package_ipk.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Koen Kooi - July 14, 2011, 6:47 a.m.
While we're at it, how about this one as well:

------>8----------------
commit 6ae45bbf2b5ca9e4fd7e8b04e461f0bf120dd44d
Author: Koen Kooi <koen.kooi@gmail.com>
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 <angstrom-distro-devel@linuxtogo.org>
     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$
    
    Signed-off-by: Koen Kooi <koen@openembedded.org>
    Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
    Acked-by: Chase Maupin <chase.maupin@ti.com>
------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:

> From: Koen Kooi <koen@openembedded.org>
> 
> Port of oe.dev Revision e35d1ffad1553f259b084578992f15d10f590f98
> 
> Signed-off-by: Koen Kooi <koen@openembedded.org>
> Signed-off-by: Khem Raj <raj.khem@gmail.org>
> ---
> meta/classes/package_ipk.bbclass |    1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
> index 4317028..0c0f00d 100644
> --- a/meta/classes/package_ipk.bbclass
> +++ b/meta/classes/package_ipk.bbclass
> @@ -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']])
> -- 
> 1.7.4.1
>

Patch

diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index 4317028..0c0f00d 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -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']])