All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mtools uninative fix
@ 2016-03-05  5:06 Randy Witt
  2016-03-05  5:06 ` [PATCH 1/2] uninative.bbclass: Set UNINATIVE_LIBDIR if uninative is enabled Randy Witt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Randy Witt @ 2016-03-05  5:06 UTC (permalink / raw)
  To: openembedded-core

These patchset is against master next to fix previous uninative patches. They
most likely will not apply cleanly to master.

The following changes since commit dd359830ad267f9763e9c35493b2846fd2269234:

  poky: Enable uninative (2016-03-04 17:15:56 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib b82b129692a4eb3c216901cd57d0fc51b0715a9a
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=b82b129692a4eb3c216901cd57d0fc51b0715a9a

Randy Witt (2):
  uninative.bbclass: Set UNINATIVE_LIBDIR if uninative is enabled
  mtools: Make sure mcopy works when using uninative

 meta/classes/uninative.bbclass                | 5 ++++-
 meta/recipes-devtools/mtools/mtools_4.0.18.bb | 8 +++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

-- 
2.5.0



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

* [PATCH 1/2] uninative.bbclass: Set UNINATIVE_LIBDIR if uninative is enabled
  2016-03-05  5:06 [PATCH 0/2] mtools uninative fix Randy Witt
@ 2016-03-05  5:06 ` Randy Witt
  2016-03-05  5:06 ` [PATCH 2/2] mtools: Make sure mcopy works when using uninative Randy Witt
  2016-03-05  9:43 ` [PATCH 0/2] mtools uninative fix Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Randy Witt @ 2016-03-05  5:06 UTC (permalink / raw)
  To: openembedded-core

Set a variable so other metadata can easily tell where uninative is
located.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
---
 meta/classes/uninative.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass
index 7f242de..99dee20 100644
--- a/meta/classes/uninative.bbclass
+++ b/meta/classes/uninative.bbclass
@@ -80,9 +80,12 @@ python uninative_event_enable() {
     loader = d.getVar("UNINATIVE_LOADER", True)
     if os.path.exists(loader):
         bb.debug(2, "Enabling uninative")
+
+        uninative_dir = "${STAGING_DIR}-uninative/${BUILD_ARCH}-linux"
+        d.setVar("UNINATIVE_LIBDIR", "%s${libdir_native}" % uninative_dir)
         d.setVar("NATIVELSBSTRING", "universal")
         d.appendVar("SSTATEPOSTUNPACKFUNCS", " uninative_changeinterp")
-        d.prependVar("PATH", "${STAGING_DIR}-uninative/${BUILD_ARCH}-linux${bindir_native}:")
+        d.prependVar("PATH", "%s${bindir_native}:" % uninative_dir)
 }
 
 python uninative_changeinterp () {
-- 
2.5.0



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

* [PATCH 2/2] mtools: Make sure mcopy works when using uninative
  2016-03-05  5:06 [PATCH 0/2] mtools uninative fix Randy Witt
  2016-03-05  5:06 ` [PATCH 1/2] uninative.bbclass: Set UNINATIVE_LIBDIR if uninative is enabled Randy Witt
@ 2016-03-05  5:06 ` Randy Witt
  2016-03-05  9:43 ` [PATCH 0/2] mtools uninative fix Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Randy Witt @ 2016-03-05  5:06 UTC (permalink / raw)
  To: openembedded-core

uninative changes the location of the IBM850 codepage used by mcopy. So
make sure to set GCONV_PATH to the correct location when using
uninative.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
---
 meta/recipes-devtools/mtools/mtools_4.0.18.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/mtools/mtools_4.0.18.bb b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
index 479fd32..691539b 100644
--- a/meta/recipes-devtools/mtools/mtools_4.0.18.bb
+++ b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
@@ -50,6 +50,12 @@ do_install_prepend () {
 }
 
 do_install_append_class-native () {
-    create_wrapper ${D}${bindir}/mcopy \
+    if  [ "${UNINATIVE_LIBDIR}x" != "x" ]; then
+        GCONV_PATH=${UNINATIVE_LIBDIR}/gconv
+    else
         GCONV_PATH=${libdir}/gconv
+    fi
+
+    create_wrapper ${D}${bindir}/mcopy \
+        GCONV_PATH=$GCONV_PATH
 }
-- 
2.5.0



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

* Re: [PATCH 0/2] mtools uninative fix
  2016-03-05  5:06 [PATCH 0/2] mtools uninative fix Randy Witt
  2016-03-05  5:06 ` [PATCH 1/2] uninative.bbclass: Set UNINATIVE_LIBDIR if uninative is enabled Randy Witt
  2016-03-05  5:06 ` [PATCH 2/2] mtools: Make sure mcopy works when using uninative Randy Witt
@ 2016-03-05  9:43 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2016-03-05  9:43 UTC (permalink / raw)
  To: Randy Witt, openembedded-core

On Fri, 2016-03-04 at 21:06 -0800, Randy Witt wrote:
> These patchset is against master next to fix previous uninative
> patches. They
> most likely will not apply cleanly to master.

Thanks for this. There were a couple of issues, I worried what would
happen in the non-uninative case since GCONV_PATH is set
unconditionally. This also didn't update both mtools recipes.

I'm testing a different version of this idea which I've just sent out
but its based on this idea.

Cheers,

Richard


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

end of thread, other threads:[~2016-03-05  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-05  5:06 [PATCH 0/2] mtools uninative fix Randy Witt
2016-03-05  5:06 ` [PATCH 1/2] uninative.bbclass: Set UNINATIVE_LIBDIR if uninative is enabled Randy Witt
2016-03-05  5:06 ` [PATCH 2/2] mtools: Make sure mcopy works when using uninative Randy Witt
2016-03-05  9:43 ` [PATCH 0/2] mtools uninative fix Richard Purdie

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.