Skip to contentSkip to conversation

archiver: preserve sysroot paths in configured mode

PATCH In review Ross Burton 3 participants 4 messages Jun 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 archiver: preserve sysroot paths in configured mode

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 ]

---
 meta/classes/archiver.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/archiver.bbclass +4 -0
index 82f0b16..18c5b96 100644
@@ -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...')
Signature · 1 line
2.8.1
#1 lore raw
Quoted 6 lines · Ross Burton

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

#2 lore raw
Quoted 7 lines · Mikko Ylinen

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

#3 lore raw
Quoted 8 lines · Ross

On 6 June 2017 at 16:42, Mikko Ylinen <[email protected]> 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"

Quoted 7 lines

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

Quoted 7 lines

Ross

Signature · 4 lines
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core