Hi Yogesh,

I guess you would need to run git fetch and git checkout tizen_2.0 on each git 
working tree. At least, the following steps are okay on my environment.

mkdir toolchains
pushd toolchains
gbs clone review.tizen.org:/toolchains/m4
# m4 was chosen according to your build fail log.
# N.B. gbs clone doesn’t take the third parameter to specify path as git clone.
cd m4
git checkout tizen_2.0
popd
gbs build -A armv7l
# No problem with url=…20130219.4 with fresh buildroot.

I didn’t run it with fully cloned environment. It might be ulimit issue. Edit 
ulimits.conf and run ulimit -n  and/or ulimit -n in the case but I’m totally 
not sure.

I hope it would help.

Best regards,

Uichi

--
TAKAHASHI Uichiro
Email: [email protected]  Tel: +81 44 874 2286 Ext: 7103 8753
The only limitation is my imagination

From: Yogesh Gaur [mailto:[email protected]]
Sent: Tuesday, March 19, 2013 7:33 PM
To: Takahashi, Uichiro/高橋 宇一郎; Wang, Ning W
Cc: [email protected]
Subject: Re: [Tizen General] How to start with Tizen 2.0 release source code?

Thanks Uichi.

Hello Ning,

I did change in .gbs.conf file as being mentioned by you i.e. 
"url=http://download.tizen.org/releases/2.0/tizen-2.0_20130219.4/”

Removed my previous GBS_ROOT folder and started fresh build
$ gbs build 
--exclude=libgcc-x86,grep-MACRO,make-MACRO,rpm-build-x86,make-x86,grep-x86,vconf,perl-libwww-perl
 -A armv7l --keep-packs

After configuration my build stops with below error, can you please help me to 
solve this:

            info: *** [1/776] building m4-1.4.14-1 armv7l tizen2.0 (worker: 0) 
***
            Out of memory!
            error: <gbs>rpmbuild fails

When I was using "url = 
http://download.tizen.org/releases/daily/2.0alpha/common/latest/ ", then I 
haven't faced this issue and around 300 packages from total of 776 packages 
gets build fine.

--
Regards,
Yogesh Gaur.
On Tue, Mar 19, 2013 at 5:03 AM, Takahashi, Uichiro 
<[email protected]<mailto:[email protected]>> wrote:
Hello Yogesh,

Thanks for sharing the instruction. I didn’t know that the 27GB space is needed…

As for .gbs.conf, I think the url line should be 
“url=http://download.tizen.org/releases/2.0/tizen-2.0_20130219.4/” as Ning 
mentioned.

# gbs build -A armv7l on the root of the source will be failed due to unused 
projects (especially for i586 architecture only projects) but it’s another 
story.

Best regards,

Uichi

--
TAKAHASHI Uichiro
Email: [email protected]<mailto:[email protected]>  Tel: +81 44 874 2286 
Ext: 7103 8753
The only limitation is my imagination

From: Yogesh Gaur 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Monday, March 18, 2013 5:59 PM
To: Takahashi, Uichiro/高橋 宇一郎
Cc: Wang, Ning W; [email protected]<mailto:[email protected]>
Subject: Re: [Tizen General] How to start with Tizen 2.0 release source code?

Hello Uichi,

Please find below steps for downloading the complete source code and start 
building for Arm architecture.

Source Code Download

1> Created account in Tizen Gerrit, https://review.tizen.org/gerrit/.

2> Follow steps being mentioned at site, 
https://source.tizen.org/documentation/developer-guide/environment-setup

     to generate ssh key and upload the same on Gerrit account.

     Make sure port 29418 is open in your system.

3> ssh tizen

        to make sure that setup is connected to tizen repo

4> Create one script to download packages or all source code from tizen repo.

     git clone 
ssh://<username>@review.tizen.org:29418/framework/api/app-manager<http://review.tizen.org:29418/framework/api/app-manager>
     framework/api/app-manager
This would download complete Mongolia source code, which is around 27GB in size.

Build
For building ARM architecture, modify config setting

      $ vim ~/.gbs.conf

     #Build against repo's URL

     #url = http://download.tizen.org/releases/daily/trunk/ivi/latest/          
           //Comment out the original repo url
     url = http://download.tizen.org/releases/daily/2.0alpha/common/latest/     
  // Use this URL
$ gbs build -A armv7l

--
Regards,
Yogesh Gaur.
On Mon, Mar 18, 2013 at 2:02 PM, Takahashi, Uichiro 
<[email protected]<mailto:[email protected]>> wrote:
Hello Wang,

Thank you very much for sharing the information. It's much easier than what I 
did. Excellent! I've started to run repo init and sync as you mentioned. It'd 
take some time to finish.

In the meantime, let me clarify something bellow.

What I wanted to know is a branch name for Tizen 2.0 release, I think. The repo 
init command can take "-b branch_name" option, "-b android-4.1.1_r6" for 
Android 4.1.1 release for instance. Do you know the branch name for Tizen 2.0 
release? Please note that I would like to clone what Tizen 2.0 released rather 
than HEAD.

I'm not sure which version is official one but I could see 
tizen-2.0_20130218.10 and
tizen-2.0_20130219.4 releases under http://download.tizen.org/releases/2.0/. So 
that my question would be "How to checkout source code for all of repositories 
of, say, tizen-2.0_20130219.4 release?".

Again, any kind of suggestions would be appreciated.

Best regards,

Uichi

--
TAKAHASHI Uichiro
Email: [email protected]<mailto:[email protected]>  Tel: +81 44 874 2286 
Ext: 7103 8753
The only limitation is my imagination


-----Original Message-----
From: Wang, Ning W [mailto:[email protected]<mailto:[email protected]>]
Sent: Monday, March 18, 2013 4:25 PM
To: Takahashi, Uichiro/高橋 宇一郎; 
[email protected]<mailto:[email protected]>
Subject: RE: How to start with Tizen 2.0 release source code?

You can download all source code by using manifest tool with repo init and repo 
sync like:
$ repo init -u 
git://gitorious.org/tizen-toys/tizen-manifest<http://gitorious.org/tizen-toys/tizen-manifest>
$ repo sync

-----Original Message-----
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Takahashi, Uichiro
Sent: Monday, March 18, 2013 3:17 PM
To: [email protected]<mailto:[email protected]>
Subject: [Tizen General] How to start with Tizen 2.0 release source code?

Hi all,

Could anyone let me know how to reproduce all of source code that is released 
as a Tizen 2.0 magnolia, please? Is there any suitable branch name for the 
release or any proper way to get the code?

I've run "gbs clone" or "git clone" for projects listed in gerrit (*1). 
However, not all repository have tizen_2.0 branch, which seems a branch for 
Tizen 2.0 release. Some have 2.0, some has only 2.0alpha, some have no suitable 
branch for magnolia, some have even no master branch, btw. Furthermore, I've 
also thought about running "gbs import" for all source rpm packages as a 
workaround (*2) but it will make my life harder when to make a patch against 
HEAD and run gbs remotebuild or submit. Therefore, I would like to understand 
how to git checkout properly for tizen 2.0 (magnolia) release.

Please note that the reason why I would like to reproduce all of source code 
for Tizen 2.0 release is that I would like to start with stable code rather 
than HEAD. With your help, I think I will be able to prepare source code for 
2.0 release and be able to switch to HEAD if needed.

Any kind of suggestion and/or information would be appreciated. Thanks in 
advance.

Best regards,

Uichi

*1: ssh -p 29418 review.tizen.org<http://review.tizen.org> gerrit ls-projects 
--all
*2: 
http://download.tizen.org/releases/2.0/tizen-2.0_20130219.4/repos/main/source/ 
and 
http://download.tizen.org/releases/2.0/tizen-2.0_20130219.4/repos/base/source/. 
I understood that gbs import not for the purpose.

--
TAKAHASHI Uichiro
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
https://lists.tizen.org/listinfo/general
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
https://lists.tizen.org/listinfo/general


_______________________________________________
General mailing list
[email protected]
https://lists.tizen.org/listinfo/general

Reply via email to