Skip to contentSkip to conversation

uninative-tarball: fix dependency on patchelf

PATCH Superseded Tyler Hall 2 participants 4 messages Mar 24, 2015 – Mar 25, 2015

lore
Share & tools
lore

Tyler Hall

author
#0 lore raw

PATCH 1/1 uninative-tarball: fix dependency on patchelf

DEPENDS doesn't actually add the dependency on patchelf-native to the populate_sdk task. SDK_DEPENDS does this, but move the append to after inheriting the base class so it does not get overwritten.

Without this, uninative-tarball fails to build in a clean workspace on a system without patchelf.

CC Richard Purdie <[email protected]>
CC Randy Witt <[email protected]>
---
 meta/recipes-core/meta/uninative-tarball.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/meta/uninative-tarball.bb +2 -1
index 53435f2..62bdde8 100644
@@ -11,7 +11,6 @@ TOOLCHAIN_HOST_TASK = "\
     "
 
 INHIBIT_DEFAULT_DEPS = "1"
-DEPENDS += "patchelf-native"
 
 TOOLCHAIN_OUTPUTNAME ?= "${BUILD_ARCH}-nativesdk-libc"
 
@@ -25,6 +24,8 @@ inherit populate_sdk
 deltask install
 deltask package
 
+SDK_DEPENDS += "patchelf-native"
+
 SDK_PACKAGING_FUNC = ""
 
 fakeroot create_sdk_files() {
Signature · 1 line
2.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 28 lines · Tyler Hall

DEPENDS doesn't actually add the dependency on patchelf-native to the populate_sdk task. SDK_DEPENDS does this, but move the append to after inheriting the base class so it does not get overwritten.

Without this, uninative-tarball fails to build in a clean workspace on a system without patchelf.

CC Richard Purdie <[email protected]>
CC Randy Witt <[email protected]>
---
  meta/recipes-core/meta/uninative-tarball.bb | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/meta/uninative-tarball.bb +0 -1
index 53435f2..62bdde8 100644
@@ -11,7 +11,6 @@ TOOLCHAIN_HOST_TASK = "\
      "
 
  INHIBIT_DEFAULT_DEPS = "1"
-DEPENDS += "patchelf-native"
 
  TOOLCHAIN_OUTPUTNAME ?= "${BUILD_ARCH}-nativesdk-libc"
 

meta/recipes-core/meta/uninative-tarball.bb inherit populate_sdk · line 31

Quoted 8 lines
meta/recipes-core/meta/uninative-tarball.bb +2 -0
@@ -25,6 +24,8 @@ inherit populate_sdk
  deltask install
  deltask package
 
+SDK_DEPENDS += "patchelf-native"
+
  SDK_PACKAGING_FUNC = ""
 
  fakeroot create_sdk_files() {

This patch is the same as what I had queued up. The only thing is to put the yocto bug number 7467 in the commit message.

author
#2 lore raw

PATCH v2 1/1 uninative-tarball: fix dependency on patchelf

In reply to Tyler Hall

DEPENDS doesn't actually add the dependency on patchelf-native to the populate_sdk task. SDK_DEPENDS does this, but move the append to after inheriting the base class so it does not get overwritten.

Without this, uninative-tarball fails to build in a clean workspace on a system without patchelf.

[Yocto #7467]

---
 meta/recipes-core/meta/uninative-tarball.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/meta/uninative-tarball.bb +2 -1
index 53435f2..62bdde8 100644
@@ -11,7 +11,6 @@ TOOLCHAIN_HOST_TASK = "\
     "
 
 INHIBIT_DEFAULT_DEPS = "1"
-DEPENDS += "patchelf-native"
 
 TOOLCHAIN_OUTPUTNAME ?= "${BUILD_ARCH}-nativesdk-libc"
 
@@ -25,6 +24,8 @@ inherit populate_sdk
 deltask install
 deltask package
 
+SDK_DEPENDS += "patchelf-native"
+
 SDK_PACKAGING_FUNC = ""
 
 fakeroot create_sdk_files() {
Signature · 1 line
2.3.1
author
#3 lore raw

Randy, Richard,

Disregard. Looks like we raced with each other. Thanks for applying v1.

-Tyler