Bug 1155

Summary: git-native compilations fails for a clean build
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Joshua Lock - Disabled <josh>
Component: meta-yoctoAssignee: Dexuan Cui <dexuan.cui>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: dexuan.cui, poky.bs.watcher, poky.watcher, richard.purdie
Version: unspecified   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Joshua Lock - Disabled 2011-06-09 16:37:53 UTC
Host is Fedora 15 i686 with master as of GMT Thu Jun 9 17:56:23 (1b53eef2769d1b5e4ff527ccabf9b700afc02220).

Building git-native results in the following compilation error:

ERROR: Logfile of failure stored in: /home/joshual/Projects/Yocto/poky/build/tmp/work/i686-linux/git-native-1.7.5.1-r1/temp/log.do_compile.8900
Log data follows:
| NOTE: make -j 2
| GIT_VERSION = 1.7.5.1
|     * new build flags or prefix
|     GEN common-cmds.h
|     CC hex.o
|     CC ident.o
|     CC levenshtein.o
|     CC list-objects.o
|     CC ll-merge.o
|     CC lockfile.o
|     CC log-tree.o
|     CC mailmap.o
|     CC match-trees.o
|     CC merge-file.o
|     CC merge-recursive.o
|     CC name-hash.o
|     CC notes.o
|     CC notes-cache.o
|     CC notes-merge.o
|     CC object.o
|     CC pack-check.o
|     CC pack-refs.o
|     CC pack-revindex.o
|     CC pack-write.o
|     CC pager.o
|     CC parse-options.o
|     CC patch-delta.o
|     CC patch-ids.o
|     CC path.o
|     CC pkt-line.o
|     CC preload-index.o
|     CC pretty.o
|     CC progress.o
|     CC quote.o
|     CC reachable.o
|     CC read-cache.o
|     CC reflog-walk.o
|     CC refs.o
|     CC remote.o
|     CC replace_object.o
|     CC rerere.o
|     CC resolve-undo.o
|     CC revision.o
|     CC run-command.o
|     CC server-info.o
|     CC setup.o
|     CC sha1-lookup.o
|     CC sha1_file.o
|     CC sha1_name.o
|     CC shallow.o
|     CC sideband.o
|     CC sigchain.o
|     CC strbuf.o
|     CC string-list.o
|     CC submodule.o
|     CC symlinks.o
|     CC tag.o
|     CC trace.o
|     CC transport.o
|     CC transport-helper.o
|     CC tree-diff.o
|     CC tree.o
|     CC tree-walk.o
|     CC unpack-trees.o
|     CC url.o
|     CC usage.o
|     CC userdiff.o
|     CC utf8.o
|     CC walker.o
|     CC wrapper.o
|     CC write_or_die.o
|     CC ws.o
|     CC wt-status.o
|     CC xdiff-interface.o
|     CC zlib.o
|     CC thread-utils.o
|     CC compat/fopen.o
|     CC compat/strlcpy.o
|     CC xdiff/xdiffi.o
|     CC xdiff/xprepare.o
|     CC xdiff/xutils.o
|     CC xdiff/xemit.o
|     CC xdiff/xmerge.o
|     CC xdiff/xpatience.o
|     CC fast-import.o
|     CC imap-send.o
|     CC shell.o
|     CC show-index.o
|     CC upload-pack.o
|     CC http-backend.o
|     CC http.o
|     CC http-walker.o
|     CC http-fetch.o
|     CC http-push.o
|     CC remote-curl.o
|     GEN git-am
|     GEN git-bisect
|     GEN git-difftool--helper
|     GEN git-filter-branch
|     GEN git-lost-found
|     GEN git-merge-octopus
|     GEN git-merge-one-file
|     GEN git-merge-resolve
|     GEN git-mergetool
|     GEN git-pull
|     GEN git-quiltimport
|     GEN git-rebase--interactive
|     GEN git-rebase
|     GEN git-repack
|     GEN git-request-pull
|     GEN git-stash
|     GEN git-submodule
|     GEN git-web--browse
|     SUBDIR perl
| /usr/bin/perl Makefile.PL PREFIX='/home/joshual/Projects/Yocto/poky/build/tmp/sysroots/i686-linux/usr' INSTALL_BASE=''
|     GEN git-remote-testgit
| Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 1.
| BEGIN failed--compilation aborted at Makefile.PL line 1.
| make[1]: *** [perl.mak] Error 2
| make: *** [perl/perl.mak] Error 2
| make: *** Waiting for unfinished jobs....
Comment 1 Joshua Lock - Disabled 2011-06-09 17:06:49 UTC
Oh, I see. This is because git-native DEPEND on perl-native-runtime. i.e. the host perl?

If so we need to add perl-ExtUtils-MakeMaker to the host package requirements.
Comment 2 Dexuan Cui 2011-06-10 00:32:56 UTC
(In reply to comment #1)
> Oh, I see. This is because git-native DEPEND on perl-native-runtime. i.e. the
> host perl?
Yes.

> If so we need to add perl-ExtUtils-MakeMaker to the host package requirements.

It might be inappropriate to "add perl-ExtUtils-MakeMaker to the host package requirements"?
Looks git should depend on perl-native?

I've made a patch http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/distro&id=79356a51507f1872199ba38262b749277633b4d4.
Please review it.
Comment 3 Dexuan Cui 2011-06-14 17:54:02 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Oh, I see. This is because git-native DEPEND on perl-native-runtime. i.e. the
> > host perl?
> Yes.
> > If so we need to add perl-ExtUtils-MakeMaker to the host package requirements.
> It might be inappropriate to "add perl-ExtUtils-MakeMaker to the host package
> requirements"?

> Looks git should depend on perl-native?
Finally we added the perl-native dependency to git-native and the patch has been in poky master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=218bcd597d4ba7b0a51f8e09bd7bff5e610676e4
Comment 4 Dexuan Cui 2011-06-14 17:56:49 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > Oh, I see. This is because git-native DEPEND on perl-native-runtime. i.e. the
> > > host perl?
> > Yes.
> > > If so we need to add perl-ExtUtils-MakeMaker to the host package requirements.
> > It might be inappropriate to "add perl-ExtUtils-MakeMaker to the host package
> > requirements"?
> > Looks git should depend on perl-native?
> Finally we added the perl-native dependency to git-native and the patch has
> been in poky master:
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=218bcd597d4ba7b0a51f8e09bd7bff5e610676e4

So let me mark it FIXED.
Comment 5 Joshua Lock - Disabled 2011-07-25 08:21:31 UTC
Verify fixed