Hi Radhika,

1. fatal: ref HEAD is not a symbolic ref
You don't have to worry about this message.
gbs checks reference of HEAD to export source codes to tmp dir. It runs
'git symbolic-ref HEAD' for this and it runs 'git archive --format=tar
--prefix=xxx HEAD | tar -C xf /tmp/where-gbs-chosen -'. if you didn't pass
specific branch for build into gbs, result of 'git symbolic-ref HEAD' won't
be used in this procedure.

F.Y.I - 'repo' tool doesn't set the branch as default. when you execute
'git branch -r' under your local git repository which downloaded using
repo, you may see the 'no branch'. There is 2 purpose of 'repo', one is
sync all git repositories to your local repository (Tizen have 1043
repositories for now). another one is to upload patch easily into Gerrit.
To upload your patch into Gerrit, you must create new branch in your
repository like this: 'repo start branch-name .' Since most user of 'repo'
just do 'repo sync' for first purpose, I guess that the 'repo' doesn't set
the branch to sync all patches without conflict.
If you don't want to see the message 'fatal: ref HEAD is not a symbolic
ref', do 'repo start my-build .'. But you need to run 'git checkout
m/master' to avoid merge conflict someday.


2. build error
I just debugged gbs and I found 1 weird problem of apps/home/menu-screen
git repository.
When gbs export code into /tmp/xxxyyyzz to build. the 'packaging' dir don't
be exported by 'git archive ....' cmd.
Since gbs need spec file (.spec) to run 'rpmbuild' but there's no spec
under tmp dir, gbs print out the python exception message what you've seen.
I guess this is a git problem.

Test like this under apps/home/menu-screen:
$ git archive --format=tar HEAD | tar t | grep \.spec

=> There's '.spec' file in local repository. but no spec file exported by
'git archive' command. It's weird

Check it again under another repositories. You can see the '.spec' file and
You may can build using gbs without problem under those directories.

Tizen git adminstrator, please check this issue.


Cheers,
JC


2012/12/19 Radhika Praveen <[email protected]>

> Trying to build full TIZEN code.
>
> This is how I downloaded the full code:
>
> $ repo init -u git://gitorious.org/tizen-toys/tizen-manifest
> $ repo sync
>
> Then gave this build command as am building for arm:
>
> gbs build -A armv7l -R 
> http://download.tizen.org/snapshots/trunk/common/latest/repos/base/armv7l/packages/
>  -R 
> http://download.tizen.org/snapshots/trunk/common/latest/repos/main/armv7l/packages/
>
> But I am getting build error as below:
>
> info: start export source from:
> /home/radhika.snarayana/tizen_all/apps/home/menu-screen ...
> fatal: ref HEAD is not a symbolic ref
> error: Failed determine spec file (Unable to read spec file: [Errno 2] No
> such file or directory:
> '/var/tmp/gbp_xXKUio/buildpackage-rpm_hGYvhs/dump_tree_NuAEjB/packaging/org.tizen.menu-screen.spec')
> error: Failed to export packaging files from git tree
>
> --> Is the procedure am following to get the code and build is correct?
> --> Can I build a single git project alone without giving a full build
> before that?
>
> Thank you.
>
> Regards
> Radhika
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> https://lists.tizen.org/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general

Reply via email to