Bug 4385

Summary: bitbake remake-native fails at do_configure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Stoicescu Cornel <corneliux.stoicescu>
Component: devtools / tool chainAssignee: Petter <petter>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, meta.mr.watcher, meta.watcher, petter, richard.purdie, sgw
Version: 1.4   
Target Milestone: 1.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
log.do_configure none

Description Stoicescu Cornel 2013-04-22 13:49:11 UTC
Created attachment 1196 [details]
log.do_configure

dylan:789b2b7e0cca404ff8ba8ed5ba823d215e6ba5b4

1) bitbake remake-native

Notice ERROR: see attached log

ERROR: Task 5 (virtual:native:/home/cornel/SSD/poky/meta/recipes-devtools/remake/remake_git.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 68 tasks of which 42 didn't need to be rerun and 1 failed.
No currently running tasks (68 of 76)
Comment 1 Richard Purdie 2013-04-22 15:16:52 UTC
At a quick glance this looks like a missing gettext dependency
Comment 2 Petter 2013-07-17 18:24:48 UTC
The problem can easily be reproduced by doing:

(Tested on master:74e403705e25afec656b5e40921771a9c29bdc40)

1. Setup a new qemux86/64 project.
2. Run: bitbake remake-native

The bb-file for remake use 'autopoint' (from gettext). This will result in a failure in do_configure for all cases when gettext is not build from some other recipes before building 'remake-native'. So if you try this after executing for example 'core-image-minimal' it will work.

So to confirm Richard, at least a build-dependency to gettext is needed.

If no objections, I think this bug can be set in ACCEPTED and I can start working on this issue.
Comment 3 Saul Wold 2013-07-17 21:32:46 UTC
It's actually a little more complex since it seems that remake already is inheriting gettext, you may have to set it specifically for native.
Comment 4 Petter 2013-07-19 12:27:03 UTC
Since the problem is well described and possible to reproduce I will change status to ACCEPTED.
Comment 5 Petter 2013-07-19 17:18:41 UTC
(In reply to comment #3)
> It's actually a little more complex since it seems that remake already is
> inheriting gettext, you may have to set it specifically for native.

Yes, you are right. The problem seems to be that the behavior when inherit gettext differs if you are building native.

gettext.bbclass returns "gettext-minimal-native" for native. This is insufficient for remake-native, since it needs "gettext-native". One way to solve this is like you suggest, to add a dependency specifically for native. I have done some early tests using this method and it looks promising.
Comment 6 Petter 2013-07-20 07:58:36 UTC
Sent fix for review to openembedded-core@lists.openembedded.org

----

The following changes since commit 3dee534f1e25109e0bdb681de0746c336f4b8840:

  lib/oeqa: fix dependecy check (2013-07-16 10:04:17 +0100)

are available in the git repository at:

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

Petter Mabäcker (1):
  remake: fix insufficient gettext dependency

 meta/recipes-devtools/remake/remake_git.bb |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
1.7.9.5

----
Comment 8 Stoicescu Cornel 2013-08-23 12:55:10 UTC
Verified in 1.4.2_rc1 (d734ab491a30078d43dee5440c03acce2d251425)