All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-04-11 21:46 [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org Apelete Seketeli
@ 2012-04-11 12:55 ` Martin Jansa
  2012-04-12 20:44   ` Apelete Seketeli
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2012-04-11 12:55 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Kristoffer Ericson

[-- Attachment #1: Type: text/plain, Size: 10195 bytes --]

On Wed, Apr 11, 2012 at 11:46:32PM +0200, Apelete Seketeli wrote:
> This updates SRC_URI as the svn.openmoko.org repository is now down.
> All the changes of this patch were picked from oe-core and brought
> over.
> 
> Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
> ---
>  .../opkg-utils/opkg-utils/add-license-field.patch  |   39 +++++++++++++++++
>  .../opkg-utils/arfile_header_split.patch           |   10 +++++
>  .../opkg-utils/index-ignore-filenotfound.patch     |   19 ++++++++
>  recipes/opkg-utils/opkg-utils/mtime-int.patch      |    3 ++
>  recipes/opkg-utils/opkg-utils/shebang.patch        |   46 ++++++++++++++++++++
>  recipes/opkg-utils/opkg-utils_git.bb               |   31 +++++++++++++
>  recipes/opkg-utils/opkg-utils_svn.bb               |   27 ------------
>  7 files changed, 148 insertions(+), 27 deletions(-)
>  create mode 100644 recipes/opkg-utils/opkg-utils/add-license-field.patch
>  create mode 100644 recipes/opkg-utils/opkg-utils/shebang.patch
>  create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
>  delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb

All those patches were sent as git patches for git.yoctoproject.org.. so 
you can ping yocto ML to apply them sooner then after 1.2 release to make this patch
a bit smaller :).

See
https://lists.yoctoproject.org/pipermail/yocto/2012-March/007851.html

Cheers,

> 
> diff --git a/recipes/opkg-utils/opkg-utils/add-license-field.patch b/recipes/opkg-utils/opkg-utils/add-license-field.patch
> new file mode 100644
> index 0000000..0d33459
> --- /dev/null
> +++ b/recipes/opkg-utils/opkg-utils/add-license-field.patch
> @@ -0,0 +1,39 @@
> +Add knowledge about License field in ipk headers
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +
> +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"
> diff --git a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
> index 4640367..b679f8b 100644
> --- a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
> +++ b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
> @@ -1,3 +1,13 @@
> +From: Scott Anderson <o2e@saaworld.com>
> +Subject: ipkg-utils: Make arfile.py handle six digit UIDs
> +    
> +    Essentially, the problem is that arfile.py is splitting the ar header with
> +    white-space instead of fixed-width fields, so two fields would get treated
> +    as a single field.  This makes things better than before as it now honors
> +    the fixed field widths.
> +    
> +Upstream-Status: Pending (there is no upstream after openmoko imploded)
> +
>  --- ipkg-utils/arfile.py.orig	2010-09-29 13:38:15.000000000 -0700
>  +++ ipkg-utils/arfile.py	2010-10-01 16:06:00.000000000 -0700
>  @@ -74,7 +74,12 @@
> diff --git a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
> index e4a5481..f0f0fcf 100644
> --- a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
> +++ b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
> @@ -5,6 +5,8 @@ error out.
>  
>  RP - 26/8/09
>  
> +Upstream-Status: Inappropriate [embedded specific]
> +
>  Index: opkg-utils/opkg-make-index
>  ===================================================================
>  --- opkg-utils.orig/opkg-make-index	2009-08-26 17:21:26.000000000 +0100
> @@ -52,3 +54,20 @@ Index: opkg-utils/opkg-make-index
>   if packages_filename:
>        sys.stdout.close()
>        sys.stdout = old_stdout
> +@@ -197,7 +197,15 @@
> + names = packages.packages.keys()
> + names.sort()
> + for name in names:
> +-     for fn in packages[name].get_file_list():
> ++     try:
> ++          fnlist = packages[name].get_file_list()
> ++     except OSError, e:
> ++          sys.stderr.write("Package %s disappeared on us!\n" % (name))
> ++          continue
> ++     except IOError, e:
> ++          sys.stderr.write("Package %s disappeared on us!\n" % (name))
> ++          continue
> ++     for fn in fnlist:
> +           (h,t) = os.path.split(fn)
> +           if not t: continue
> +           if not files.has_key(t): files[t] = name+':'+fn
> diff --git a/recipes/opkg-utils/opkg-utils/mtime-int.patch b/recipes/opkg-utils/opkg-utils/mtime-int.patch
> index efec3c0..483a62a 100644
> --- a/recipes/opkg-utils/opkg-utils/mtime-int.patch
> +++ b/recipes/opkg-utils/opkg-utils/mtime-int.patch
> @@ -12,6 +12,9 @@ gain by this change.
>  
>  Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
>  
> +Upstream-Status: Pending
> +(Contacting the original author, no response yet.)
> +
>  Index: opkg-utils/opkg-make-index
>  ===================================================================
>  --- opkg-utils.orig/opkg-make-index
> diff --git a/recipes/opkg-utils/opkg-utils/shebang.patch b/recipes/opkg-utils/opkg-utils/shebang.patch
> new file mode 100644
> index 0000000..f6a2ef9
> --- /dev/null
> +++ b/recipes/opkg-utils/opkg-utils/shebang.patch
> @@ -0,0 +1,46 @@
> +Use python via the PATH, rather than hardcoding /usr/bin/python
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Christopher Larson <kergoth@gmail.com>
> +
> +--- opkg-utils.orig/opkg-list-fields
> ++++ opkg-utils/opkg-list-fields
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, opkg
> + 
> +--- opkg-utils.orig/opkg-make-index
> ++++ opkg-utils/opkg-make-index
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, os, posixpath
> + from glob import glob
> +--- opkg-utils.orig/opkg-show-deps
> ++++ opkg-utils/opkg-show-deps
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, os, posixpath
> + from glob import glob
> +--- opkg-utils.orig/opkg-unbuild
> ++++ opkg-utils/opkg-unbuild
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/python
> ++#!/usr/bin/env python
> + 
> + import sys, os, re
> + 
> +--- opkg-utils.orig/opkg-update-index
> ++++ opkg-utils/opkg-update-index
> +@@ -1,4 +1,4 @@
> +-#!/usr/bin/env python2.1
> ++#!/usr/bin/env python
> + 
> + import sys, os
> + from glob import glob
> diff --git a/recipes/opkg-utils/opkg-utils_git.bb b/recipes/opkg-utils/opkg-utils_git.bb
> new file mode 100644
> index 0000000..d2dfda6
> --- /dev/null
> +++ b/recipes/opkg-utils/opkg-utils_git.bb
> @@ -0,0 +1,31 @@
> +DESCRIPTION = "OPKG Package Manager Utilities"
> +SECTION = "base"
> +HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
> +                    file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
> +RDEPENDS_${PN} = "python"
> +RDEPENDS_${PN}_virtclass-native = ""
> +SRCREV = "002d29bc605d7c2d02e4cf20a43c5277c15f5597"
> +PV = "0.1.8+git${SRCPV}"
> +PR = "r0"
> +
> +SRC_URI = "git://git.yoctoproject.org/opkg-utils;protocol=git \
> +           file://index-ignore-filenotfound.patch \
> +           file://mtime-int.patch \
> +           file://add-license-field.patch \
> +           file://arfile_header_split.patch \
> +           file://shebang.patch \
> +           "
> +
> +S = "${WORKDIR}/git"
> +
> +# Avoid circular dependencies from package_ipk.bbclass
> +PACKAGES_virtclass-native = ""
> +
> +do_install() {
> +	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
> +}
> +
> +BBCLASSEXTEND = "native"
> +TARGET_CC_ARCH += "${LDFLAGS}"
> diff --git a/recipes/opkg-utils/opkg-utils_svn.bb b/recipes/opkg-utils/opkg-utils_svn.bb
> deleted file mode 100644
> index 3ddafdb..0000000
> --- a/recipes/opkg-utils/opkg-utils_svn.bb
> +++ /dev/null
> @@ -1,27 +0,0 @@
> -DESCRIPTION = "OPKG Package Manager Utilities"
> -SECTION = "base"
> -HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
> -PRIORITY = "optional"
> -LICENSE = "GPLv2"
> -RDEPENDS_${PN} = "python"
> -RDEPENDS_${PN}_virtclass-native = ""
> -SRCREV = "4747"
> -PV = "0.1.8+svnr${SRCPV}"
> -PR = "r7"
> -
> -SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
> -           file://index-ignore-filenotfound.patch \
> -           file://arfile_header_split.patch \
> -           file://mtime-int.patch"
> -
> -S = "${WORKDIR}/opkg-utils"
> -
> -# Avoid circular dependencies from package_ipk.bbclass
> -PACKAGES_virtclass-native = ""
> -
> -do_install() {
> -        oe_runmake PREFIX=${prefix} DESTDIR=${D} install
> -}
> -
> -BBCLASSEXTEND = "native"
> -TARGET_CC_ARCH += "${LDFLAGS}"
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
@ 2012-04-11 21:46 Apelete Seketeli
  2012-04-11 12:55 ` Martin Jansa
  0 siblings, 1 reply; 9+ messages in thread
From: Apelete Seketeli @ 2012-04-11 21:46 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Kristoffer Ericson

This updates SRC_URI as the svn.openmoko.org repository is now down.
All the changes of this patch were picked from oe-core and brought
over.

Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
---
 .../opkg-utils/opkg-utils/add-license-field.patch  |   39 +++++++++++++++++
 .../opkg-utils/arfile_header_split.patch           |   10 +++++
 .../opkg-utils/index-ignore-filenotfound.patch     |   19 ++++++++
 recipes/opkg-utils/opkg-utils/mtime-int.patch      |    3 ++
 recipes/opkg-utils/opkg-utils/shebang.patch        |   46 ++++++++++++++++++++
 recipes/opkg-utils/opkg-utils_git.bb               |   31 +++++++++++++
 recipes/opkg-utils/opkg-utils_svn.bb               |   27 ------------
 7 files changed, 148 insertions(+), 27 deletions(-)
 create mode 100644 recipes/opkg-utils/opkg-utils/add-license-field.patch
 create mode 100644 recipes/opkg-utils/opkg-utils/shebang.patch
 create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
 delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb

diff --git a/recipes/opkg-utils/opkg-utils/add-license-field.patch b/recipes/opkg-utils/opkg-utils/add-license-field.patch
new file mode 100644
index 0000000..0d33459
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils/add-license-field.patch
@@ -0,0 +1,39 @@
+Add knowledge about License field in ipk headers
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+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"
diff --git a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
index 4640367..b679f8b 100644
--- a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
+++ b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
@@ -1,3 +1,13 @@
+From: Scott Anderson <o2e@saaworld.com>
+Subject: ipkg-utils: Make arfile.py handle six digit UIDs
+    
+    Essentially, the problem is that arfile.py is splitting the ar header with
+    white-space instead of fixed-width fields, so two fields would get treated
+    as a single field.  This makes things better than before as it now honors
+    the fixed field widths.
+    
+Upstream-Status: Pending (there is no upstream after openmoko imploded)
+
 --- ipkg-utils/arfile.py.orig	2010-09-29 13:38:15.000000000 -0700
 +++ ipkg-utils/arfile.py	2010-10-01 16:06:00.000000000 -0700
 @@ -74,7 +74,12 @@
diff --git a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
index e4a5481..f0f0fcf 100644
--- a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
+++ b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
@@ -5,6 +5,8 @@ error out.
 
 RP - 26/8/09
 
+Upstream-Status: Inappropriate [embedded specific]
+
 Index: opkg-utils/opkg-make-index
 ===================================================================
 --- opkg-utils.orig/opkg-make-index	2009-08-26 17:21:26.000000000 +0100
@@ -52,3 +54,20 @@ Index: opkg-utils/opkg-make-index
  if packages_filename:
       sys.stdout.close()
       sys.stdout = old_stdout
+@@ -197,7 +197,15 @@
+ names = packages.packages.keys()
+ names.sort()
+ for name in names:
+-     for fn in packages[name].get_file_list():
++     try:
++          fnlist = packages[name].get_file_list()
++     except OSError, e:
++          sys.stderr.write("Package %s disappeared on us!\n" % (name))
++          continue
++     except IOError, e:
++          sys.stderr.write("Package %s disappeared on us!\n" % (name))
++          continue
++     for fn in fnlist:
+           (h,t) = os.path.split(fn)
+           if not t: continue
+           if not files.has_key(t): files[t] = name+':'+fn
diff --git a/recipes/opkg-utils/opkg-utils/mtime-int.patch b/recipes/opkg-utils/opkg-utils/mtime-int.patch
index efec3c0..483a62a 100644
--- a/recipes/opkg-utils/opkg-utils/mtime-int.patch
+++ b/recipes/opkg-utils/opkg-utils/mtime-int.patch
@@ -12,6 +12,9 @@ gain by this change.
 
 Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
 
+Upstream-Status: Pending
+(Contacting the original author, no response yet.)
+
 Index: opkg-utils/opkg-make-index
 ===================================================================
 --- opkg-utils.orig/opkg-make-index
diff --git a/recipes/opkg-utils/opkg-utils/shebang.patch b/recipes/opkg-utils/opkg-utils/shebang.patch
new file mode 100644
index 0000000..f6a2ef9
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils/shebang.patch
@@ -0,0 +1,46 @@
+Use python via the PATH, rather than hardcoding /usr/bin/python
+
+Upstream-Status: Pending
+
+Signed-off-by: Christopher Larson <kergoth@gmail.com>
+
+--- opkg-utils.orig/opkg-list-fields
++++ opkg-utils/opkg-list-fields
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, opkg
+ 
+--- opkg-utils.orig/opkg-make-index
++++ opkg-utils/opkg-make-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-show-deps
++++ opkg-utils/opkg-show-deps
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-unbuild
++++ opkg-utils/opkg-unbuild
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, re
+ 
+--- opkg-utils.orig/opkg-update-index
++++ opkg-utils/opkg-update-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.1
++#!/usr/bin/env python
+ 
+ import sys, os
+ from glob import glob
diff --git a/recipes/opkg-utils/opkg-utils_git.bb b/recipes/opkg-utils/opkg-utils_git.bb
new file mode 100644
index 0000000..d2dfda6
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils_git.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "OPKG Package Manager Utilities"
+SECTION = "base"
+HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
+                    file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
+RDEPENDS_${PN} = "python"
+RDEPENDS_${PN}_virtclass-native = ""
+SRCREV = "002d29bc605d7c2d02e4cf20a43c5277c15f5597"
+PV = "0.1.8+git${SRCPV}"
+PR = "r0"
+
+SRC_URI = "git://git.yoctoproject.org/opkg-utils;protocol=git \
+           file://index-ignore-filenotfound.patch \
+           file://mtime-int.patch \
+           file://add-license-field.patch \
+           file://arfile_header_split.patch \
+           file://shebang.patch \
+           "
+
+S = "${WORKDIR}/git"
+
+# Avoid circular dependencies from package_ipk.bbclass
+PACKAGES_virtclass-native = ""
+
+do_install() {
+	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
+
+BBCLASSEXTEND = "native"
+TARGET_CC_ARCH += "${LDFLAGS}"
diff --git a/recipes/opkg-utils/opkg-utils_svn.bb b/recipes/opkg-utils/opkg-utils_svn.bb
deleted file mode 100644
index 3ddafdb..0000000
--- a/recipes/opkg-utils/opkg-utils_svn.bb
+++ /dev/null
@@ -1,27 +0,0 @@
-DESCRIPTION = "OPKG Package Manager Utilities"
-SECTION = "base"
-HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
-PRIORITY = "optional"
-LICENSE = "GPLv2"
-RDEPENDS_${PN} = "python"
-RDEPENDS_${PN}_virtclass-native = ""
-SRCREV = "4747"
-PV = "0.1.8+svnr${SRCPV}"
-PR = "r7"
-
-SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
-           file://index-ignore-filenotfound.patch \
-           file://arfile_header_split.patch \
-           file://mtime-int.patch"
-
-S = "${WORKDIR}/opkg-utils"
-
-# Avoid circular dependencies from package_ipk.bbclass
-PACKAGES_virtclass-native = ""
-
-do_install() {
-        oe_runmake PREFIX=${prefix} DESTDIR=${D} install
-}
-
-BBCLASSEXTEND = "native"
-TARGET_CC_ARCH += "${LDFLAGS}"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-04-11 12:55 ` Martin Jansa
@ 2012-04-12 20:44   ` Apelete Seketeli
  2012-04-12 21:01     ` Martin Jansa
  0 siblings, 1 reply; 9+ messages in thread
From: Apelete Seketeli @ 2012-04-12 20:44 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Kristoffer Ericson, Martin Jansa

Le 11-Apr-12, Martin Jansa a écrit:
> On Wed, Apr 11, 2012 at 11:46:32PM +0200, Apelete Seketeli wrote:
> > This updates SRC_URI as the svn.openmoko.org repository is now down.
> > All the changes of this patch were picked from oe-core and brought
> > over.
> > 
> > Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
> > ---
> >  .../opkg-utils/opkg-utils/add-license-field.patch  |   39 +++++++++++++++++
> >  .../opkg-utils/arfile_header_split.patch           |   10 +++++
> >  .../opkg-utils/index-ignore-filenotfound.patch     |   19 ++++++++
> >  recipes/opkg-utils/opkg-utils/mtime-int.patch      |    3 ++
> >  recipes/opkg-utils/opkg-utils/shebang.patch        |   46 ++++++++++++++++++++
> >  recipes/opkg-utils/opkg-utils_git.bb               |   31 +++++++++++++
> >  recipes/opkg-utils/opkg-utils_svn.bb               |   27 ------------
> >  7 files changed, 148 insertions(+), 27 deletions(-)
> >  create mode 100644 recipes/opkg-utils/opkg-utils/add-license-field.patch
> >  create mode 100644 recipes/opkg-utils/opkg-utils/shebang.patch
> >  create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
> >  delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb
> 
> All those patches were sent as git patches for git.yoctoproject.org.. so 
> you can ping yocto ML to apply them sooner then after 1.2 release to make this patch
> a bit smaller :).
> 
> See
> https://lists.yoctoproject.org/pipermail/yocto/2012-March/007851.html

Sorry for the giant patch, I wasn't sure if I should split it since
the patch files in the commit are needed for the recipe to work.

Concerning the patches sent to the yocto ML, we may have a
misunderstanding here.
This patch I sent is picked from oe-core and I would like someone to
review it and ultimately apply it to *oe-classic* (I need it for the
jlime distribution, which is only available in oe-classic for now).
It seemed to me that the yocto project is based on oe-core, so I don't
understand why I should get in touch with them to get some part of the
changes applied on their side (of oe-core, if I am not mistaken).

I probably missed some point you were trying to make, could you tell
me how to get this into oe-classic ?

Regards.
-- 
        Apelete



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-04-12 20:44   ` Apelete Seketeli
@ 2012-04-12 21:01     ` Martin Jansa
  2012-05-02 21:00       ` Apelete Seketeli
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2012-04-12 21:01 UTC (permalink / raw)
  To: Apelete Seketeli; +Cc: Kristoffer Ericson, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2876 bytes --]

On Thu, Apr 12, 2012 at 10:44:17PM +0200, Apelete Seketeli wrote:
> Le 11-Apr-12, Martin Jansa a écrit:
> > On Wed, Apr 11, 2012 at 11:46:32PM +0200, Apelete Seketeli wrote:
> > > This updates SRC_URI as the svn.openmoko.org repository is now down.
> > > All the changes of this patch were picked from oe-core and brought
> > > over.
> > > 
> > > Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
> > > ---
> > >  .../opkg-utils/opkg-utils/add-license-field.patch  |   39 +++++++++++++++++
> > >  .../opkg-utils/arfile_header_split.patch           |   10 +++++
> > >  .../opkg-utils/index-ignore-filenotfound.patch     |   19 ++++++++
> > >  recipes/opkg-utils/opkg-utils/mtime-int.patch      |    3 ++
> > >  recipes/opkg-utils/opkg-utils/shebang.patch        |   46 ++++++++++++++++++++
> > >  recipes/opkg-utils/opkg-utils_git.bb               |   31 +++++++++++++
> > >  recipes/opkg-utils/opkg-utils_svn.bb               |   27 ------------
> > >  7 files changed, 148 insertions(+), 27 deletions(-)
> > >  create mode 100644 recipes/opkg-utils/opkg-utils/add-license-field.patch
> > >  create mode 100644 recipes/opkg-utils/opkg-utils/shebang.patch
> > >  create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
> > >  delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb
> > 
> > All those patches were sent as git patches for git.yoctoproject.org.. so 
> > you can ping yocto ML to apply them sooner then after 1.2 release to make this patch
> > a bit smaller :).
> > 
> > See
> > https://lists.yoctoproject.org/pipermail/yocto/2012-March/007851.html
> 
> Sorry for the giant patch, I wasn't sure if I should split it since
> the patch files in the commit are needed for the recipe to work.
> 
> Concerning the patches sent to the yocto ML, we may have a
> misunderstanding here.
> This patch I sent is picked from oe-core and I would like someone to
> review it and ultimately apply it to *oe-classic* (I need it for the
> jlime distribution, which is only available in oe-classic for now).
> It seemed to me that the yocto project is based on oe-core, so I don't
> understand why I should get in touch with them to get some part of the
> changes applied on their side (of oe-core, if I am not mistaken).

To get those changes applied in 
http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/

so that you would just use newer SRCREV with all those patches already
applied in upstream git repo without any local patches needed (the same
change - removal of local patches in favor of newer SRCREV will happen
in oe-core too after it's applied in opkg-utils repo).

> I probably missed some point you were trying to make, could you tell
> me how to get this into oe-classic ?

I know this was for oe-classic.. hope it's clearer now..

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-04-12 21:01     ` Martin Jansa
@ 2012-05-02 21:00       ` Apelete Seketeli
  2012-05-09 19:16         ` Apelete Seketeli
  0 siblings, 1 reply; 9+ messages in thread
From: Apelete Seketeli @ 2012-05-02 21:00 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Kristoffer Ericson, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2059 bytes --]

Le 12-Apr-12, Martin Jansa a écrit:
> On Thu, Apr 12, 2012 at 10:44:17PM +0200, Apelete Seketeli wrote:
> > Le 11-Apr-12, Martin Jansa a écrit:
> > > On Wed, Apr 11, 2012 at 11:46:32PM +0200, Apelete Seketeli wrote:
> > > > This updates SRC_URI as the svn.openmoko.org repository is now down.
> > > > All the changes of this patch were picked from oe-core and brought
> > > > over.
> > > > 
> > > > Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
> > > > ---
> > > >  .../opkg-utils/opkg-utils/add-license-field.patch  |   39 +++++++++++++++++
> > > >  .../opkg-utils/arfile_header_split.patch           |   10 +++++
> > > >  .../opkg-utils/index-ignore-filenotfound.patch     |   19 ++++++++
> > > >  recipes/opkg-utils/opkg-utils/mtime-int.patch      |    3 ++
> > > >  recipes/opkg-utils/opkg-utils/shebang.patch        |   46 ++++++++++++++++++++
> > > >  recipes/opkg-utils/opkg-utils_git.bb               |   31 +++++++++++++
> > > >  recipes/opkg-utils/opkg-utils_svn.bb               |   27 ------------
> > > >  7 files changed, 148 insertions(+), 27 deletions(-)
> > > >  create mode 100644 recipes/opkg-utils/opkg-utils/add-license-field.patch
> > > >  create mode 100644 recipes/opkg-utils/opkg-utils/shebang.patch
> > > >  create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
> > > >  delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb
> > > 
> > > All those patches were sent as git patches for git.yoctoproject.org.. so 
> > > you can ping yocto ML to apply them sooner then after 1.2 release to make this patch
> > > a bit smaller :).
> > > 
> > > See
> > > https://lists.yoctoproject.org/pipermail/yocto/2012-March/007851.html

Okay, I finally got some time to works on this.
I asked on the yocto ML to get the original patches applied, and they
actually got applied (thanks to Richard Purdie).

Please find attached the patch to get the changes into oe-classic. I
don't know if I should create a new thread to submit it, I would
gladly do so if asked to.

Regards.
-- 
        Apelete

[-- Attachment #2: 0001-opkg-utils-Update-SRC_URI-to-git.yoctoproject.org.patch --]
[-- Type: text/x-diff, Size: 7852 bytes --]

From 3df2107d7477f6709cfeaf918f8ff8d4eb67d43e Mon Sep 17 00:00:00 2001
From: Apelete Seketeli <apelete@seketeli.net>
Date: Wed, 2 May 2012 22:38:00 +0200
Subject: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org

This updates SRC_URI as the svn.openmoko.org repository is now down.
The changes of this patch were picked from oe-core and brought over.

Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
---
 .../opkg-utils/arfile_header_split.patch           |   17 ------
 .../opkg-utils/index-ignore-filenotfound.patch     |   54 --------------------
 recipes/opkg-utils/opkg-utils/mtime-int.patch      |   27 ----------
 recipes/opkg-utils/opkg-utils_git.bb               |   26 ++++++++++
 recipes/opkg-utils/opkg-utils_svn.bb               |   27 ----------
 5 files changed, 26 insertions(+), 125 deletions(-)
 delete mode 100644 recipes/opkg-utils/opkg-utils/arfile_header_split.patch
 delete mode 100644 recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
 delete mode 100644 recipes/opkg-utils/opkg-utils/mtime-int.patch
 create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
 delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb

diff --git a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
deleted file mode 100644
index 4640367..0000000
--- a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- ipkg-utils/arfile.py.orig	2010-09-29 13:38:15.000000000 -0700
-+++ ipkg-utils/arfile.py	2010-10-01 16:06:00.000000000 -0700
-@@ -74,7 +74,12 @@
-             if l == "\n":
-                 l = self.f.readline()
-                 if not l: break
-             l = l.replace('`', '')
--            descriptor = l.split()
-+            # Field lengths from /usr/include/ar.h:
-+            ar_field_lens = [ 16, 12, 6, 6, 8, 10, 2 ]
-+            descriptor = []
-+            for field_len in ar_field_lens:
-+                descriptor.append(l[:field_len].strip())
-+                l = l[field_len:]
- #            print descriptor
-             size = int(descriptor[5])
-             memberName = descriptor[0][:-1]
diff --git a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
deleted file mode 100644
index e4a5481..0000000
--- a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-If we're building an image and some package rebuilds while this is happening
-some package can be removed/added to the ipk deploy directory. The image will
-not depend on this package so we can safely ignore these cases rather than 
-error out.
-
-RP - 26/8/09
-
-Index: opkg-utils/opkg-make-index
-===================================================================
---- opkg-utils.orig/opkg-make-index	2009-08-26 17:21:26.000000000 +0100
-+++ opkg-utils/opkg-make-index	2009-08-27 16:11:22.000000000 +0100
-@@ -96,6 +96,7 @@
- files=glob(pkg_dir + '/*.ipk') + glob(pkg_dir + '/*.deb')
- files.sort()
- for filename in files:
-+  try:
-      basename = os.path.basename(filename)
-      pkg = None
-      fnameStat = os.stat(filename)
-@@ -130,6 +131,12 @@
-                to_morgue(basename)
-           if opt_s:
-                print filename
-+  except OSError:
-+      sys.stderr.write("Package %s disappeared on us!\n" % (filename))
-+      continue
-+  except IOError:
-+      sys.stderr.write("Package %s disappeared on us!\n" % (filename))
-+      continue
- 
- pkgsStampsFile = open(stamplist_filename, "w")
- for f in pkgsStamps.keys():
-@@ -148,6 +155,7 @@
- names = packages.packages.keys()
- names.sort()
- for name in names:
-+  try:
-      pkg = packages.packages[name]
-      if locales_dir and pkg.depends:
-          depends = string.split(pkg.depends, ',')
-@@ -165,6 +173,13 @@
-      if (verbose):
-           sys.stderr.write("Writing info for package %s\n" % (pkg.package,))
-      print pkg
-+  except OSError:
-+      sys.stderr.write("Package %s disappeared on us!\n" % (name))
-+      continue
-+  except IOError:
-+      sys.stderr.write("Package %s disappeared on us!\n" % (name))
-+      continue
-+
- if packages_filename:
-      sys.stdout.close()
-      sys.stdout = old_stdout
diff --git a/recipes/opkg-utils/opkg-utils/mtime-int.patch b/recipes/opkg-utils/opkg-utils/mtime-int.patch
deleted file mode 100644
index efec3c0..0000000
--- a/recipes/opkg-utils/opkg-utils/mtime-int.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Convert mtime to int before comparing it
-
-The st_mtime attribute (which is a float) is compared against a value
-from the timestamp database, which was stored as an integer there.
-
-When working on a filesystem with precise timestamps the comparision
-will fail nearly everytime hence.
-
-Although it might be possible to enhance the database to store the
-fractional part too, this will complicate things more than we would
-gain by this change.
-
-Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
-
-Index: opkg-utils/opkg-make-index
-===================================================================
---- opkg-utils.orig/opkg-make-index
-+++ opkg-utils/opkg-make-index
-@@ -100,7 +100,7 @@ for filename in files:
-      pkg = None
-      fnameStat = os.stat(filename)
-      if old_pkg_hash.has_key(basename):
--          if pkgsStamps.has_key(basename) and fnameStat.st_mtime == pkgsStamps[basename]:
-+          if pkgsStamps.has_key(basename) and int(fnameStat.st_mtime) == pkgsStamps[basename]:
-             if (verbose):
-                sys.stderr.write("Found %s in Packages\n" % (filename,))
-             pkg = old_pkg_hash[basename]
diff --git a/recipes/opkg-utils/opkg-utils_git.bb b/recipes/opkg-utils/opkg-utils_git.bb
new file mode 100644
index 0000000..1996c75
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils_git.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "OPKG Package Manager Utilities"
+SECTION = "base"
+HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
+                    file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
+RDEPENDS_${PN} = "python"
+RDEPENDS_${PN}_virtclass-native = ""
+SRCREV = "44df9dd3dc411ca1255cb4b23bde7eb71aed4778"
+PV = "0.1.8+git${SRCPV}"
+PR = "r1"
+
+SRC_URI = "git://git.yoctoproject.org/opkg-utils;protocol=git \
+           "
+
+S = "${WORKDIR}/git"
+
+# Avoid circular dependencies from package_ipk.bbclass
+PACKAGES_virtclass-native = ""
+
+do_install() {
+	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
+
+BBCLASSEXTEND = "native"
+TARGET_CC_ARCH += "${LDFLAGS}"
diff --git a/recipes/opkg-utils/opkg-utils_svn.bb b/recipes/opkg-utils/opkg-utils_svn.bb
deleted file mode 100644
index 3ddafdb..0000000
--- a/recipes/opkg-utils/opkg-utils_svn.bb
+++ /dev/null
@@ -1,27 +0,0 @@
-DESCRIPTION = "OPKG Package Manager Utilities"
-SECTION = "base"
-HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
-PRIORITY = "optional"
-LICENSE = "GPLv2"
-RDEPENDS_${PN} = "python"
-RDEPENDS_${PN}_virtclass-native = ""
-SRCREV = "4747"
-PV = "0.1.8+svnr${SRCPV}"
-PR = "r7"
-
-SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
-           file://index-ignore-filenotfound.patch \
-           file://arfile_header_split.patch \
-           file://mtime-int.patch"
-
-S = "${WORKDIR}/opkg-utils"
-
-# Avoid circular dependencies from package_ipk.bbclass
-PACKAGES_virtclass-native = ""
-
-do_install() {
-        oe_runmake PREFIX=${prefix} DESTDIR=${D} install
-}
-
-BBCLASSEXTEND = "native"
-TARGET_CC_ARCH += "${LDFLAGS}"
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-05-02 21:00       ` Apelete Seketeli
@ 2012-05-09 19:16         ` Apelete Seketeli
  2012-05-09 21:00           ` Martin Jansa
  0 siblings, 1 reply; 9+ messages in thread
From: Apelete Seketeli @ 2012-05-09 19:16 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Kristoffer Ericson, Martin Jansa

Hi,

Le 02-May-12, Apelete Seketeli a écrit:
> 
> Okay, I finally got some time to works on this.
> I asked on the yocto ML to get the original patches applied, and they
> actually got applied (thanks to Richard Purdie).
> 
> Please find attached the patch to get the changes into oe-classic. I
> don't know if I should create a new thread to submit it, I would
> gladly do so if asked to.

The patch has just been applied in oe-classic, thanks to Kristoffer
Ericson.

http://cgit.openembedded.org/openembedded/commit/?id=1ff63aa26e3088ba2d30e491d74a31caf25c3d83

I am new to the list, so I am not used to the process, but would you
please tell me what the rule for the author and committer field is ?
I would have naively expect to see my name there.

Regards.
-- 
        Apelete



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-05-09 19:16         ` Apelete Seketeli
@ 2012-05-09 21:00           ` Martin Jansa
  2012-05-09 21:52             ` Apelete Seketeli
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Jansa @ 2012-05-09 21:00 UTC (permalink / raw)
  To: Apelete Seketeli; +Cc: Kristoffer Ericson, openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

On Wed, May 09, 2012 at 09:16:56PM +0200, Apelete Seketeli wrote:
> Hi,
> 
> Le 02-May-12, Apelete Seketeli a écrit:
> > 
> > Okay, I finally got some time to works on this.
> > I asked on the yocto ML to get the original patches applied, and they
> > actually got applied (thanks to Richard Purdie).
> > 
> > Please find attached the patch to get the changes into oe-classic. I
> > don't know if I should create a new thread to submit it, I would
> > gladly do so if asked to.
> 
> The patch has just been applied in oe-classic, thanks to Kristoffer
> Ericson.
> 
> http://cgit.openembedded.org/openembedded/commit/?id=1ff63aa26e3088ba2d30e491d74a31caf25c3d83
> 
> I am new to the list, so I am not used to the process, but would you
> please tell me what the rule for the author and committer field is ?
> I would have naively expect to see my name there.

You did it almost right and Kristoffer's name should be only in committer 
field and yours in author.

Next time when sending new version use PATCHv2 prefix and don't send
your patch in reply as inline. If you download mbox version from
patchwork
http://patchwork.openembedded.org/patch/26863/
you'll see that e.g. my reply to you get's included in commit message of
such patch which doesn't belong there and committer needs to use 
git commit --amend  -s
to strip unwanted text..

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
  2012-05-09 21:00           ` Martin Jansa
@ 2012-05-09 21:52             ` Apelete Seketeli
  0 siblings, 0 replies; 9+ messages in thread
From: Apelete Seketeli @ 2012-05-09 21:52 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Kristoffer Ericson, openembedded-devel

Le 09-May-12, Martin Jansa a écrit:
> On Wed, May 09, 2012 at 09:16:56PM +0200, Apelete Seketeli wrote:
> > Hi,
> > 
> > Le 02-May-12, Apelete Seketeli a écrit:
> > > 
> > > Okay, I finally got some time to works on this.
> > > I asked on the yocto ML to get the original patches applied, and they
> > > actually got applied (thanks to Richard Purdie).
> > > 
> > > Please find attached the patch to get the changes into oe-classic. I
> > > don't know if I should create a new thread to submit it, I would
> > > gladly do so if asked to.
> > 
> > The patch has just been applied in oe-classic, thanks to Kristoffer
> > Ericson.
> > 
> > http://cgit.openembedded.org/openembedded/commit/?id=1ff63aa26e3088ba2d30e491d74a31caf25c3d83
> > 
> > I am new to the list, so I am not used to the process, but would you
> > please tell me what the rule for the author and committer field is ?
> > I would have naively expect to see my name there.
> 
> You did it almost right and Kristoffer's name should be only in committer 
> field and yours in author.
> 
> Next time when sending new version use PATCHv2 prefix and don't send
> your patch in reply as inline. If you download mbox version from
> patchwork
> http://patchwork.openembedded.org/patch/26863/
> you'll see that e.g. my reply to you get's included in commit message of
> such patch which doesn't belong there and committer needs to use 
> git commit --amend  -s
> to strip unwanted text..

Thanks for the detailed explanation. I get your point, I will follow
these instructions next time and submit the patch as a separate mail
in a thread.

Cheers.
-- 
        Apelete



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org
@ 2012-04-11 21:39 Apelete Seketeli
  0 siblings, 0 replies; 9+ messages in thread
From: Apelete Seketeli @ 2012-04-11 21:39 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Kristoffer Ericson

This updates SRC_URI as the svn.openmoko.org repository is now down.
All the changes of this patch were picked from oe-core and brought
over.

Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
---
 .../opkg-utils/opkg-utils/add-license-field.patch  |   39 +++++++++++++++++
 .../opkg-utils/arfile_header_split.patch           |   10 +++++
 .../opkg-utils/index-ignore-filenotfound.patch     |   19 ++++++++
 recipes/opkg-utils/opkg-utils/mtime-int.patch      |    3 ++
 recipes/opkg-utils/opkg-utils/shebang.patch        |   46 ++++++++++++++++++++
 recipes/opkg-utils/opkg-utils_git.bb               |   31 +++++++++++++
 recipes/opkg-utils/opkg-utils_svn.bb               |   27 ------------
 7 files changed, 148 insertions(+), 27 deletions(-)
 create mode 100644 recipes/opkg-utils/opkg-utils/add-license-field.patch
 create mode 100644 recipes/opkg-utils/opkg-utils/shebang.patch
 create mode 100644 recipes/opkg-utils/opkg-utils_git.bb
 delete mode 100644 recipes/opkg-utils/opkg-utils_svn.bb

diff --git a/recipes/opkg-utils/opkg-utils/add-license-field.patch b/recipes/opkg-utils/opkg-utils/add-license-field.patch
new file mode 100644
index 0000000..0d33459
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils/add-license-field.patch
@@ -0,0 +1,39 @@
+Add knowledge about License field in ipk headers
+
+Upstream-Status: Pending
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+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"
diff --git a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
index 4640367..b679f8b 100644
--- a/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
+++ b/recipes/opkg-utils/opkg-utils/arfile_header_split.patch
@@ -1,3 +1,13 @@
+From: Scott Anderson <o2e@saaworld.com>
+Subject: ipkg-utils: Make arfile.py handle six digit UIDs
+    
+    Essentially, the problem is that arfile.py is splitting the ar header with
+    white-space instead of fixed-width fields, so two fields would get treated
+    as a single field.  This makes things better than before as it now honors
+    the fixed field widths.
+    
+Upstream-Status: Pending (there is no upstream after openmoko imploded)
+
 --- ipkg-utils/arfile.py.orig	2010-09-29 13:38:15.000000000 -0700
 +++ ipkg-utils/arfile.py	2010-10-01 16:06:00.000000000 -0700
 @@ -74,7 +74,12 @@
diff --git a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
index e4a5481..f0f0fcf 100644
--- a/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
+++ b/recipes/opkg-utils/opkg-utils/index-ignore-filenotfound.patch
@@ -5,6 +5,8 @@ error out.
 
 RP - 26/8/09
 
+Upstream-Status: Inappropriate [embedded specific]
+
 Index: opkg-utils/opkg-make-index
 ===================================================================
 --- opkg-utils.orig/opkg-make-index	2009-08-26 17:21:26.000000000 +0100
@@ -52,3 +54,20 @@ Index: opkg-utils/opkg-make-index
  if packages_filename:
       sys.stdout.close()
       sys.stdout = old_stdout
+@@ -197,7 +197,15 @@
+ names = packages.packages.keys()
+ names.sort()
+ for name in names:
+-     for fn in packages[name].get_file_list():
++     try:
++          fnlist = packages[name].get_file_list()
++     except OSError, e:
++          sys.stderr.write("Package %s disappeared on us!\n" % (name))
++          continue
++     except IOError, e:
++          sys.stderr.write("Package %s disappeared on us!\n" % (name))
++          continue
++     for fn in fnlist:
+           (h,t) = os.path.split(fn)
+           if not t: continue
+           if not files.has_key(t): files[t] = name+':'+fn
diff --git a/recipes/opkg-utils/opkg-utils/mtime-int.patch b/recipes/opkg-utils/opkg-utils/mtime-int.patch
index efec3c0..483a62a 100644
--- a/recipes/opkg-utils/opkg-utils/mtime-int.patch
+++ b/recipes/opkg-utils/opkg-utils/mtime-int.patch
@@ -12,6 +12,9 @@ gain by this change.
 
 Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
 
+Upstream-Status: Pending
+(Contacting the original author, no response yet.)
+
 Index: opkg-utils/opkg-make-index
 ===================================================================
 --- opkg-utils.orig/opkg-make-index
diff --git a/recipes/opkg-utils/opkg-utils/shebang.patch b/recipes/opkg-utils/opkg-utils/shebang.patch
new file mode 100644
index 0000000..f6a2ef9
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils/shebang.patch
@@ -0,0 +1,46 @@
+Use python via the PATH, rather than hardcoding /usr/bin/python
+
+Upstream-Status: Pending
+
+Signed-off-by: Christopher Larson <kergoth@gmail.com>
+
+--- opkg-utils.orig/opkg-list-fields
++++ opkg-utils/opkg-list-fields
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, opkg
+ 
+--- opkg-utils.orig/opkg-make-index
++++ opkg-utils/opkg-make-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-show-deps
++++ opkg-utils/opkg-show-deps
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-unbuild
++++ opkg-utils/opkg-unbuild
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, re
+ 
+--- opkg-utils.orig/opkg-update-index
++++ opkg-utils/opkg-update-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.1
++#!/usr/bin/env python
+ 
+ import sys, os
+ from glob import glob
diff --git a/recipes/opkg-utils/opkg-utils_git.bb b/recipes/opkg-utils/opkg-utils_git.bb
new file mode 100644
index 0000000..d2dfda6
--- /dev/null
+++ b/recipes/opkg-utils/opkg-utils_git.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "OPKG Package Manager Utilities"
+SECTION = "base"
+HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
+                    file://opkg.py;beginline=1;endline=18;md5=15917491ad6bf7acc666ca5f7cc1e083"
+RDEPENDS_${PN} = "python"
+RDEPENDS_${PN}_virtclass-native = ""
+SRCREV = "002d29bc605d7c2d02e4cf20a43c5277c15f5597"
+PV = "0.1.8+git${SRCPV}"
+PR = "r0"
+
+SRC_URI = "git://git.yoctoproject.org/opkg-utils;protocol=git \
+           file://index-ignore-filenotfound.patch \
+           file://mtime-int.patch \
+           file://add-license-field.patch \
+           file://arfile_header_split.patch \
+           file://shebang.patch \
+           "
+
+S = "${WORKDIR}/git"
+
+# Avoid circular dependencies from package_ipk.bbclass
+PACKAGES_virtclass-native = ""
+
+do_install() {
+	oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
+
+BBCLASSEXTEND = "native"
+TARGET_CC_ARCH += "${LDFLAGS}"
diff --git a/recipes/opkg-utils/opkg-utils_svn.bb b/recipes/opkg-utils/opkg-utils_svn.bb
deleted file mode 100644
index 3ddafdb..0000000
--- a/recipes/opkg-utils/opkg-utils_svn.bb
+++ /dev/null
@@ -1,27 +0,0 @@
-DESCRIPTION = "OPKG Package Manager Utilities"
-SECTION = "base"
-HOMEPAGE = "http://wiki.openmoko.org/wiki/Opkg"
-PRIORITY = "optional"
-LICENSE = "GPLv2"
-RDEPENDS_${PN} = "python"
-RDEPENDS_${PN}_virtclass-native = ""
-SRCREV = "4747"
-PV = "0.1.8+svnr${SRCPV}"
-PR = "r7"
-
-SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
-           file://index-ignore-filenotfound.patch \
-           file://arfile_header_split.patch \
-           file://mtime-int.patch"
-
-S = "${WORKDIR}/opkg-utils"
-
-# Avoid circular dependencies from package_ipk.bbclass
-PACKAGES_virtclass-native = ""
-
-do_install() {
-        oe_runmake PREFIX=${prefix} DESTDIR=${D} install
-}
-
-BBCLASSEXTEND = "native"
-TARGET_CC_ARCH += "${LDFLAGS}"
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-09 22:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 21:46 [PATCH] opkg-utils: Update SRC_URI to git.yoctoproject.org Apelete Seketeli
2012-04-11 12:55 ` Martin Jansa
2012-04-12 20:44   ` Apelete Seketeli
2012-04-12 21:01     ` Martin Jansa
2012-05-02 21:00       ` Apelete Seketeli
2012-05-09 19:16         ` Apelete Seketeli
2012-05-09 21:00           ` Martin Jansa
2012-05-09 21:52             ` Apelete Seketeli
  -- strict thread matches above, loose matches on Subject: below --
2012-04-11 21:39 Apelete Seketeli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.