Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] opkg-utils: bump SRCREV
@ 2012-06-19  7:42 Martin Jansa
  2012-06-19  7:42 ` [PATCH 2/2] kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst Martin Jansa
  2012-06-21  2:40 ` [PATCH 1/2] opkg-utils: bump SRCREV Saul Wold
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Jansa @ 2012-06-19  7:42 UTC (permalink / raw)
  To: openembedded-core

* there are 2 small fixes
  python-2.6 compatibility
  missing C option for opkg-build

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../opkg-utils/opkg-utils/shr.patch                |   26 ++++++++++++++++++++
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    2 +-
 2 files changed, 27 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch

diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
new file mode 100644
index 0000000..29de962
--- /dev/null
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
@@ -0,0 +1,26 @@
+diff --git a/opkg-build b/opkg-build
+index 012afd3..485897a 100755
+--- a/opkg-build
++++ b/opkg-build
+@@ -160,7 +160,7 @@ outer=ar
+ noclean=0
+ opkext=0
+ usage="Usage: $0 [-c] [-C] [-O] [-o owner] [-g group] <pkg_directory> [<destination_directory>]"
+-while getopts "cg:ho:vO" opt; do
++while getopts "cCg:ho:vO" opt; do
+     case $opt in
+ 	o ) owner=$OPTARG
+ 	    ogargs="--owner=$owner"
+diff --git a/opkg-make-index b/opkg-make-index
+index 22393e8..1c3a8e1 100755
+--- a/opkg-make-index
++++ b/opkg-make-index
+@@ -186,7 +186,7 @@ if packages_filename:
+      gzip_filename = ("%s.gz" % packages_filename)
+      tmp_gzip_filename = ("%s.%d" % (gzip_filename, os.getpid()))
+      gzip_cmd = "gzip -9c < %s > %s" % (tmp_packages_filename, tmp_gzip_filename)
+-     rc = subprocess.check_output(gzip_cmd, shell=True)
++     subprocess.call(gzip_cmd, shell=True)
+      os.rename(tmp_packages_filename, packages_filename)
+      os.rename(tmp_gzip_filename, gzip_filename)
+ 
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 1996c75..b193ba4 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -6,7 +6,7 @@ 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"
+SRCREV = "423ecd36b4782327c16f516885d1248249c7724a"
 PV = "0.1.8+git${SRCPV}"
 PR = "r1"
 
-- 
1.7.8.6




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

* [PATCH 2/2] kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst
  2012-06-19  7:42 [PATCH 1/2] opkg-utils: bump SRCREV Martin Jansa
@ 2012-06-19  7:42 ` Martin Jansa
  2012-06-21  2:40 ` [PATCH 1/2] opkg-utils: bump SRCREV Saul Wold
  1 sibling, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2012-06-19  7:42 UTC (permalink / raw)
  To: openembedded-core

* without this, kernel upgrades where KERNEL_VERSION is changed
  e.g. 3.4.2 -> 3.4.3 generate .dep for running 3.4.2 and after reboot user ends
  up without any module loaded to make it worse after reboot nothing is upgraded
  to trigger another kernel(-module) postinst to generate .dep for now running 3.4.3

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/kernel.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 116e10b..a455164 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -271,13 +271,13 @@ fi
 if [ -n "$D" ]; then
 	depmod -a -b $D -F ${STAGING_KERNEL_DIR}/System.map-${KERNEL_VERSION} ${KERNEL_VERSION}
 else
-	depmod -a
+	depmod -a ${KERNEL_VERSION}
 fi
 }
 
 pkg_postinst_modules () {
 if [ -z "$D" ]; then
-	depmod -a
+	depmod -a ${KERNEL_VERSION}
 	update-modules || true
 fi
 }
-- 
1.7.8.6




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

* Re: [PATCH 1/2] opkg-utils: bump SRCREV
  2012-06-19  7:42 [PATCH 1/2] opkg-utils: bump SRCREV Martin Jansa
  2012-06-19  7:42 ` [PATCH 2/2] kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst Martin Jansa
@ 2012-06-21  2:40 ` Saul Wold
  2012-06-21  5:51   ` Martin Jansa
  2012-06-21  5:53   ` [PATCHv2] " Martin Jansa
  1 sibling, 2 replies; 6+ messages in thread
From: Saul Wold @ 2012-06-21  2:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Martin Jansa

On 06/19/2012 12:42 AM, Martin Jansa wrote:
> * there are 2 small fixes
>    python-2.6 compatibility
>    missing C option for opkg-build
>
> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
> ---
>   .../opkg-utils/opkg-utils/shr.patch                |   26 ++++++++++++++++++++
>   meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    2 +-
>   2 files changed, 27 insertions(+), 1 deletions(-)
>   create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
>
> diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
> new file mode 100644
> index 0000000..29de962
> --- /dev/null
> +++ b/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch

Martin,

No Upstream-Status or Signed-off-by

Please fix this

Thanks
	Sau!

> @@ -0,0 +1,26 @@
> +diff --git a/opkg-build b/opkg-build
> +index 012afd3..485897a 100755
> +--- a/opkg-build
> ++++ b/opkg-build
> +@@ -160,7 +160,7 @@ outer=ar
> + noclean=0
> + opkext=0
> + usage="Usage: $0 [-c] [-C] [-O] [-o owner] [-g group]<pkg_directory>  [<destination_directory>]"
> +-while getopts "cg:ho:vO" opt; do
> ++while getopts "cCg:ho:vO" opt; do
> +     case $opt in
> + 	o ) owner=$OPTARG
> + 	    ogargs="--owner=$owner"
> +diff --git a/opkg-make-index b/opkg-make-index
> +index 22393e8..1c3a8e1 100755
> +--- a/opkg-make-index
> ++++ b/opkg-make-index
> +@@ -186,7 +186,7 @@ if packages_filename:
> +      gzip_filename = ("%s.gz" % packages_filename)
> +      tmp_gzip_filename = ("%s.%d" % (gzip_filename, os.getpid()))
> +      gzip_cmd = "gzip -9c<  %s>  %s" % (tmp_packages_filename, tmp_gzip_filename)
> +-     rc = subprocess.check_output(gzip_cmd, shell=True)
> ++     subprocess.call(gzip_cmd, shell=True)
> +      os.rename(tmp_packages_filename, packages_filename)
> +      os.rename(tmp_gzip_filename, gzip_filename)
> +
> diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> index 1996c75..b193ba4 100644
> --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> @@ -6,7 +6,7 @@ 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"
> +SRCREV = "423ecd36b4782327c16f516885d1248249c7724a"
>   PV = "0.1.8+git${SRCPV}"
>   PR = "r1"
>



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

* Re: [PATCH 1/2] opkg-utils: bump SRCREV
  2012-06-21  2:40 ` [PATCH 1/2] opkg-utils: bump SRCREV Saul Wold
@ 2012-06-21  5:51   ` Martin Jansa
  2012-06-21  5:53   ` [PATCHv2] " Martin Jansa
  1 sibling, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2012-06-21  5:51 UTC (permalink / raw)
  To: Saul Wold; +Cc: Patches and discussions about the oe-core layer

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

On Wed, Jun 20, 2012 at 07:40:05PM -0700, Saul Wold wrote:
> On 06/19/2012 12:42 AM, Martin Jansa wrote:
> > * there are 2 small fixes
> >    python-2.6 compatibility
> >    missing C option for opkg-build
> >
> > Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
> > ---
> >   .../opkg-utils/opkg-utils/shr.patch                |   26 ++++++++++++++++++++
> >   meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    2 +-
> >   2 files changed, 27 insertions(+), 1 deletions(-)
> >   create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
> >
> > diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
> > new file mode 100644
> > index 0000000..29de962
> > --- /dev/null
> > +++ b/meta/recipes-devtools/opkg-utils/opkg-utils/shr.patch
> 
> Martin,
> 
> No Upstream-Status or Signed-off-by
> 
> Please fix this

Ah sorry, this file shouldn't be here at all, I was using it just to
apply those changes until they get applied in yocto opkg-utils repo and
then replaced it with SRCREV bump, but forgot to drop this file from
patch.. will send v2.

Thanks!

> 
> Thanks
> 	Sau!
> 
> > @@ -0,0 +1,26 @@
> > +diff --git a/opkg-build b/opkg-build
> > +index 012afd3..485897a 100755
> > +--- a/opkg-build
> > ++++ b/opkg-build
> > +@@ -160,7 +160,7 @@ outer=ar
> > + noclean=0
> > + opkext=0
> > + usage="Usage: $0 [-c] [-C] [-O] [-o owner] [-g group]<pkg_directory>  [<destination_directory>]"
> > +-while getopts "cg:ho:vO" opt; do
> > ++while getopts "cCg:ho:vO" opt; do
> > +     case $opt in
> > + 	o ) owner=$OPTARG
> > + 	    ogargs="--owner=$owner"
> > +diff --git a/opkg-make-index b/opkg-make-index
> > +index 22393e8..1c3a8e1 100755
> > +--- a/opkg-make-index
> > ++++ b/opkg-make-index
> > +@@ -186,7 +186,7 @@ if packages_filename:
> > +      gzip_filename = ("%s.gz" % packages_filename)
> > +      tmp_gzip_filename = ("%s.%d" % (gzip_filename, os.getpid()))
> > +      gzip_cmd = "gzip -9c<  %s>  %s" % (tmp_packages_filename, tmp_gzip_filename)
> > +-     rc = subprocess.check_output(gzip_cmd, shell=True)
> > ++     subprocess.call(gzip_cmd, shell=True)
> > +      os.rename(tmp_packages_filename, packages_filename)
> > +      os.rename(tmp_gzip_filename, gzip_filename)
> > +
> > diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> > index 1996c75..b193ba4 100644
> > --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> > +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> > @@ -6,7 +6,7 @@ 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"
> > +SRCREV = "423ecd36b4782327c16f516885d1248249c7724a"
> >   PV = "0.1.8+git${SRCPV}"
> >   PR = "r1"
> >

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

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

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

* [PATCHv2] opkg-utils: bump SRCREV
  2012-06-21  2:40 ` [PATCH 1/2] opkg-utils: bump SRCREV Saul Wold
  2012-06-21  5:51   ` Martin Jansa
@ 2012-06-21  5:53   ` Martin Jansa
  2012-06-22 17:58     ` Saul Wold
  1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2012-06-21  5:53 UTC (permalink / raw)
  To: openembedded-core

* there are 2 small fixes
  python-2.6 compatibility
  missing C option for opkg-build

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
index 1996c75..b193ba4 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
@@ -6,7 +6,7 @@ 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"
+SRCREV = "423ecd36b4782327c16f516885d1248249c7724a"
 PV = "0.1.8+git${SRCPV}"
 PR = "r1"
 
-- 
1.7.8.6




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

* Re: [PATCHv2] opkg-utils: bump SRCREV
  2012-06-21  5:53   ` [PATCHv2] " Martin Jansa
@ 2012-06-22 17:58     ` Saul Wold
  0 siblings, 0 replies; 6+ messages in thread
From: Saul Wold @ 2012-06-22 17:58 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Martin Jansa

On 06/20/2012 10:53 PM, Martin Jansa wrote:
> * there are 2 small fixes
>    python-2.6 compatibility
>    missing C option for opkg-build
>
> Signed-off-by: Martin Jansa<Martin.Jansa@gmail.com>
> ---
>   meta/recipes-devtools/opkg-utils/opkg-utils_git.bb |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> index 1996c75..b193ba4 100644
> --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
> @@ -6,7 +6,7 @@ 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"
> +SRCREV = "423ecd36b4782327c16f516885d1248249c7724a"
>   PV = "0.1.8+git${SRCPV}"
>   PR = "r1"
>

Merged this into OE-Core

Thanks
	Sau!



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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19  7:42 [PATCH 1/2] opkg-utils: bump SRCREV Martin Jansa
2012-06-19  7:42 ` [PATCH 2/2] kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinst Martin Jansa
2012-06-21  2:40 ` [PATCH 1/2] opkg-utils: bump SRCREV Saul Wold
2012-06-21  5:51   ` Martin Jansa
2012-06-21  5:53   ` [PATCHv2] " Martin Jansa
2012-06-22 17:58     ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox