Skip to contentSkip to conversation

core: recipes: fix some native tools dependencies

PATCH Superseded Sumit Garg 3 participants 9 messages Jan 17, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Sumit Garg

author
#0 lore raw

PATCH 1/1 core: recipes: fix some native tools dependencies

Some native tools dependency issues were seen while building with external GCC tool-set rather than source GCC tool-set. While building with source tool-set these dependencies were implicitly met which is not the case with external tool-set. So explicitly state these native tools dependencies.

---
 meta/classes/autotools.bbclass                     | 2 +-
 meta/recipes-extended/man-db/man-db_2.9.0.bb       | 2 +-
 meta/recipes-graphics/xorg-app/xorg-app-common.inc | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/classes/autotools.bbclass +1 -1
index 3d22ad0..4c71be2 100644
@@ -10,7 +10,7 @@ def autotools_dep_prepend(d):
     deps += 'autoconf-native automake-native '
 
     if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
-        deps += 'libtool-native '
+        deps += 'libtool-native xz-native '
         if not bb.data.inherits_class('native', d) \
                         and not bb.data.inherits_class('nativesdk', d) \
                         and not bb.data.inherits_class('cross', d) \
meta/recipes-extended/man-db/man-db_2.9.0.bb +1 -1
index 5b017e8..3cbb0de 100644
@@ -10,7 +10,7 @@ SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/man-db/man-db-${PV}.tar.xz \
 SRC_URI[md5sum] = "897576a19ecbef376a916485608cd790"
 SRC_URI[sha256sum] = "5d4aacd9e8876d6a3203a889860c3524c293c38f04111a3350deab8a6cd3e261"
 
-DEPENDS = "libpipeline gdbm groff-native base-passwd"
+DEPENDS = "libpipeline gdbm groff-native base-passwd flex-native"
 RDEPENDS_${PN} += "base-passwd"
 
 # | /usr/src/debug/man-db/2.8.0-r0/man-db-2.8.0/src/whatis.c:939: undefined reference to `_nl_msg_cat_cntr'
meta/recipes-graphics/xorg-app/xorg-app-common.inc +1 -1
index 101b3df..2938da0 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.x.org/"
 BUGTRACKER = "https://bugs.freedesktop.org"
 SECTION = "x11/apps"
 LICENSE = "MIT-X"
-DEPENDS = "util-macros-native virtual/libx11"
+DEPENDS = "util-macros-native virtual/libx11 gettext-native"
 
 # depends on virtual/libx11
 REQUIRED_DISTRO_FEATURES = "x11"
Signature · 1 line
2.7.4
#1 lore raw

meta/recipes-graphics/xorg-app/xorg-app-common.inc HOMEPAGE = "http://www.x.org/" · line 7

Quoted 10 lines · Sumit Garg
meta/recipes-graphics/xorg-app/xorg-app-common.inc +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.x.org/"
 BUGTRACKER = "https://bugs.freedesktop.org"
 SECTION = "x11/apps"
 LICENSE = "MIT-X"
-DEPENDS = "util-macros-native virtual/libx11"
+DEPENDS = "util-macros-native virtual/libx11 gettext-native"
 

Would 'inherit gettext' do the trick here? Depending on full gettext is undesired as it is slow to build; we ship a minimal gettext to mitigate that.

author
#2 lore raw
Quoted 4 lines · Alexander Kanavin
Quoted 2 lines · Sumit Garg
Quoted 11 lines

meta/recipes-graphics/xorg-app/xorg-app-common.inc HOMEPAGE = "http://www.x.org/" · line 6

Quoted 8 lines
meta/recipes-graphics/xorg-app/xorg-app-common.inc +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.x.org/"
 BUGTRACKER = "https://bugs.freedesktop.org"
 SECTION = "x11/apps"
 LICENSE = "MIT-X"
-DEPENDS = "util-macros-native virtual/libx11"
+DEPENDS = "util-macros-native virtual/libx11 gettext-native"

Would 'inherit gettext' do the trick here? Depending on full gettext is undesired as it is slow to build; we ship a minimal gettext to mitigate that.

Yes 'inherit gettext' does the trick. Will use it instead.

-Sumit

#3 lore raw
In reply to Sumit Garg
Quoted 18 lines · Sumit Garg

Some native tools dependency issues were seen while building with external GCC tool-set rather than source GCC tool-set. While building with source tool-set these dependencies were implicitly met which is not the case with external tool-set. So explicitly state these native tools dependencies.

---
 meta/classes/autotools.bbclass                     | 2 +-
 meta/recipes-extended/man-db/man-db_2.9.0.bb       | 2 +-
 meta/recipes-graphics/xorg-app/xorg-app-common.inc | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/classes/autotools.bbclass +0 -0
index 3d22ad0..4c71be2 100644

meta/classes/autotools.bbclass def autotools_dep_prepend(d): · line 16

Quoted 8 lines
meta/classes/autotools.bbclass +1 -1
@@ -10,7 +10,7 @@ def autotools_dep_prepend(d):
     deps += 'autoconf-native automake-native '
 
     if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
-        deps += 'libtool-native '
+        deps += 'libtool-native xz-native '
         if not bb.data.inherits_class('native', d) \
                         and not bb.data.inherits_class('nativesdk', d) \
                         and not bb.data.inherits_class('cross', d) \

Where does autotools depend on xz? I don't really understand that dependency. What kind of failures was this causing?

Cheers,

Richard

author
#4 lore raw
Quoted 22 lines · Richard Purdie
Quoted 20 lines · Sumit Garg

Some native tools dependency issues were seen while building with external GCC tool-set rather than source GCC tool-set. While building with source tool-set these dependencies were implicitly met which is not the case with external tool-set. So explicitly state these native tools dependencies.

---
 meta/classes/autotools.bbclass                     | 2 +-
 meta/recipes-extended/man-db/man-db_2.9.0.bb       | 2 +-
 meta/recipes-graphics/xorg-app/xorg-app-common.inc | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
meta/classes/autotools.bbclass +0 -0
index 3d22ad0..4c71be2 100644
@@ -10,7 +10,7 @@ def autotools_dep_prepend(d):
     deps += 'autoconf-native automake-native '
 
Quoted 10 lines

meta/classes/autotools.bbclass def autotools_dep_prepend(d): · line 16

Quoted 6 lines
meta/classes/autotools.bbclass +1 -1
     if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
-        deps += 'libtool-native '
+        deps += 'libtool-native xz-native '
         if not bb.data.inherits_class('native', d) \
                         and not bb.data.inherits_class('nativesdk', d) \
                         and not bb.data.inherits_class('cross', d) \

Where does autotools depend on xz? I don't really understand that dependency. What kind of failures was this causing?

Here is one of the failures I observed:

| /home/sumit.garg/T2502/poky/build/tmp/work/aarch64-poky-linux/psmisc/23.2-r0/recipe-sysroot-native/usr/bin/autopoint:
485: /home/sumit.garg/T2502/poky/build/tmp/work/aarch64-poky-linux/psmisc/23.2-r0/recipe-sysroot-native/usr/bin/autopoint:
xz: not found

| tar: This does not look like a tar archive
| tar: gettext-0.19.3: Not found in archive
| tar: Exiting with failure status due to previous errors
| autopoint: *** infrastructure files for version 0.19.3 not found;
this is autopoint from GNU gettext-tools 0.19.8.1
| autopoint: *** Stop.
| autoreconf: autopoint failed with exit status: 1
| WARNING: exit code 1 from a shell command.

But looking at this failure again it seems like "autopoint" is provided by gettext rather than autotools. So yes, I think you are right and "xz-native" dependency should go in meta/classes/gettext.bbclass instead as follows:

meta/classes/gettext.bbclass +0 -0
index be2ef3b311..443c9c4cb0 100644
@@ -2,8 +2,8 @@ def gettext_dependencies(d):
     if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d,

'cross-canadian'):

         return ""
     if d.getVar('USE_NLS') == 'no':

- return "gettext-minimal-native"
- return "gettext-native"
+ return "gettext-minimal-native xz-native"
+ return "gettext-native xz-native"

def gettext_oeconf(d):

     if d.getVar('USE_NLS') == 'no':

-Sumit

Quoted 4 lines

Cheers,

Richard

#5 lore raw
Quoted 15 lines · Sumit Garg

But looking at this failure again it seems like "autopoint" is provided by gettext rather than autotools. So yes, I think you are right and "xz-native" dependency should go in meta/classes/gettext.bbclass instead as follows:

meta/classes/gettext.bbclass +0 -0
index be2ef3b311..443c9c4cb0 100644
@@ -2,8 +2,8 @@ def gettext_dependencies(d):
     if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d,

'cross-canadian'):

         return ""
     if d.getVar('USE_NLS') == 'no':

meta/classes/gettext.bbclass

Quoted 4 lines
meta/classes/gettext.bbclass +2 -2
-        return "gettext-minimal-native"
-    return "gettext-native"
+        return "gettext-minimal-native xz-native"
+    return "gettext-native xz-native"

I don't believe this is right either, at least not for the master branch. Autopoint is specifically excluded for all autotools-based recipes; psmisc used to be an exception to that, but no longer is with the latest master branch and latest gettext.

Alex

author
#6 lore raw
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Sumit Garg

But looking at this failure again it seems like "autopoint" is provided by gettext rather than autotools. So yes, I think you are right and "xz-native" dependency should go in meta/classes/gettext.bbclass instead as follows:

Quoted 17 lines

meta/classes/gettext.bbclass

Quoted 13 lines
meta/classes/gettext.bbclass +0 -0
index be2ef3b311..443c9c4cb0 100644
@@ -2,8 +2,8 @@ def gettext_dependencies(d):
     if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d,

'cross-canadian'):

         return ""
     if d.getVar('USE_NLS') == 'no':
meta/classes/gettext.bbclass +2 -2
-        return "gettext-minimal-native"
-    return "gettext-native"
+        return "gettext-minimal-native xz-native"
+    return "gettext-native xz-native"

I don't believe this is right either, at least not for the master branch. Autopoint is specifically excluded for all autotools-based recipes; psmisc used to be an exception to that, but no longer is with the latest master branch and latest gettext.

How would you like to handle it on stable branches for recipes (like psmisc) which depends on autopoint?

-Sumit

Quoted 1 line

Alex

#7 lore raw

You can send a patch for psmisc specifically for those stable branches, using [branch name] in the subject.

Alex

Quoted 38 lines · Sumit Garg
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Sumit Garg

But looking at this failure again it seems like "autopoint" is provided by gettext rather than autotools. So yes, I think you are right and "xz-native" dependency should go in meta/classes/gettext.bbclass instead as follows:

Quoted 16 lines

meta/classes/gettext.bbclass

Quoted 13 lines
meta/classes/gettext.bbclass +0 -0
index be2ef3b311..443c9c4cb0 100644
@@ -2,8 +2,8 @@ def gettext_dependencies(d):
     if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d,

'cross-canadian'):

         return ""
     if d.getVar('USE_NLS') == 'no':
meta/classes/gettext.bbclass +2 -2
-        return "gettext-minimal-native"
-    return "gettext-native"
+        return "gettext-minimal-native xz-native"
+    return "gettext-native xz-native"

I don't believe this is right either, at least not for the master

branch. Autopoint is specifically excluded for all autotools-based recipes; psmisc used to be an exception to that, but no longer is with the latest master branch and latest gettext.

Quoted 1 line

How would you like to handle it on stable branches for recipes (like psmisc) which depends on autopoint?

-Sumit

Quoted 1 line

Alex

author
#8 lore raw
Quoted 2 lines · Alexander Kanavin

You can send a patch for psmisc specifically for those stable branches, using [branch name] in the subject.

Ok will add "xz-native" dependency for psmisc recipe specifically for stable branches.

-Sumit

Quoted 38 lines

Alex

Quoted 34 lines · Sumit Garg
Quoted 8 lines · Alexander Kanavin
Quoted 6 lines · Sumit Garg

But looking at this failure again it seems like "autopoint" is provided by gettext rather than autotools. So yes, I think you are right and "xz-native" dependency should go in meta/classes/gettext.bbclass instead as follows:

Quoted 17 lines

meta/classes/gettext.bbclass

Quoted 13 lines
meta/classes/gettext.bbclass +0 -0
index be2ef3b311..443c9c4cb0 100644
@@ -2,8 +2,8 @@ def gettext_dependencies(d):
     if d.getVar('INHIBIT_DEFAULT_DEPS') and not oe.utils.inherits(d,

'cross-canadian'):

         return ""
     if d.getVar('USE_NLS') == 'no':
meta/classes/gettext.bbclass +2 -2
-        return "gettext-minimal-native"
-    return "gettext-native"
+        return "gettext-minimal-native xz-native"
+    return "gettext-native xz-native"

I don't believe this is right either, at least not for the master branch. Autopoint is specifically excluded for all autotools-based recipes; psmisc used to be an exception to that, but no longer is with the latest master branch and latest gettext.

How would you like to handle it on stable branches for recipes (like psmisc) which depends on autopoint?

-Sumit

Quoted 1 line

Alex