All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] archiver: preserve sysroot paths in configured mode
@ 2017-06-06 15:03 Ross Burton
  2017-06-06 15:42 ` Mikko Ylinen
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2017-06-06 15:03 UTC (permalink / raw)
  To: openembedded-core

do_ar_configured alters WORKDIR but also expects to be able to run do_configure,
so forcibly expand the paths to the sysroots as otherwise they'll point to a
non-existant directory in the temporary WORKDIR.

[ YOCTO #11584 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/archiver.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 82f0b16..18c5b96 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -222,6 +222,10 @@ python do_ar_patched() {
 python do_ar_configured() {
     import shutil
 
+    # Forcibly expand the sysroot paths as we're about to change WORKDIR
+    d.setVar('RECIPE_SYSROOT', d.getVar('RECIPE_SYSROOT'))
+    d.setVar('RECIPE_SYSROOT_NATIVE', d.getVar('RECIPE_SYSROOT_NATIVE'))
+
     ar_outdir = d.getVar('ARCHIVER_OUTDIR')
     if d.getVarFlag('ARCHIVER_MODE', 'src') == 'configured':
         bb.note('Archiving the configured source...')
-- 
2.8.1



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

* Re: [PATCH] archiver: preserve sysroot paths in configured mode
  2017-06-06 15:03 [PATCH] archiver: preserve sysroot paths in configured mode Ross Burton
@ 2017-06-06 15:42 ` Mikko Ylinen
  2017-06-06 15:58   ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Mikko Ylinen @ 2017-06-06 15:42 UTC (permalink / raw)
  To: openembedded-core



On 06/06/17 18:03, Ross Burton wrote:
> do_ar_configured alters WORKDIR but also expects to be able to run do_configure,
> so forcibly expand the paths to the sysroots as otherwise they'll point to a
> non-existant directory in the temporary WORKDIR.
>
> [ YOCTO #11584 ]
>

This patch is not enough because the problem is in do_unpack_and_patch which
is shared by most archiver modes. This patch fails, e.g., with "original 
+ diff"

https://patchwork.openembedded.org/series/7068/

-- Mikko





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

* Re: [PATCH] archiver: preserve sysroot paths in configured mode
  2017-06-06 15:42 ` Mikko Ylinen
@ 2017-06-06 15:58   ` Burton, Ross
  2017-06-06 16:10     ` Leonardo Sandoval
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2017-06-06 15:58 UTC (permalink / raw)
  To: Mikko Ylinen; +Cc: OE-core

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

On 6 June 2017 at 16:42, Mikko Ylinen <mikko.ylinen@linux.intel.com> wrote:

> This patch is not enough because the problem is in do_unpack_and_patch
> which
> is shared by most archiver modes. This patch fails, e.g., with "original +
> diff"
>
> https://patchwork.openembedded.org/series/7068/
>

Yes, I have yours in my branch too.  There's many ways that the archiver
can fail right now, clearly we need to exercise it a bit more in selftest.

Ross

[-- Attachment #2: Type: text/html, Size: 1067 bytes --]

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

* Re: [PATCH] archiver: preserve sysroot paths in configured mode
  2017-06-06 15:58   ` Burton, Ross
@ 2017-06-06 16:10     ` Leonardo Sandoval
  0 siblings, 0 replies; 4+ messages in thread
From: Leonardo Sandoval @ 2017-06-06 16:10 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Tue, 2017-06-06 at 16:58 +0100, Burton, Ross wrote:
> 
> On 6 June 2017 at 16:42, Mikko Ylinen <mikko.ylinen@linux.intel.com>
> wrote:
>         This patch is not enough because the problem is in
>         do_unpack_and_patch which
>         is shared by most archiver modes. This patch fails, e.g., with
>         "original + diff"
>         
>         https://patchwork.openembedded.org/series/7068/
>         
> 
> Yes, I have yours in my branch too.  There's many ways that the
> archiver can fail right now, clearly we need to exercise it a bit more
> in selftest.
> 
Right, and this bug tracks the progress

https://bugzilla.yoctoproject.org/show_bug.cgi?id=11422

> 
> Ross
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core




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

end of thread, other threads:[~2017-06-06 16:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 15:03 [PATCH] archiver: preserve sysroot paths in configured mode Ross Burton
2017-06-06 15:42 ` Mikko Ylinen
2017-06-06 15:58   ` Burton, Ross
2017-06-06 16:10     ` Leonardo Sandoval

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.