Re: [Tizen General] About "Building Packages Locally with GBS"

2016-10-29 Thread Scott Zhang
After fix the build.conf for setup buildroot to include "cpp" and
"util-linux-su" in , looks now it compiles 350/735 without any error.  So
looks finally I have my build environment right.
Conclusion for build :
1. edit .gbs.conf,
remove default "prebuilt/toolchains-x86_64" repo.
It has far old package comparing to latest Base and ONLY have binary
package without -devel packages, by compiling ourselves, everything need
-devel packages so this is totally useless.

1.1 find the correct Base repository
1.2 find the correct Common repository
For the moment, I am pretty sure "Base" it the toolchain repo. which should
be replaced prevoius prebuilt/toolchain repo.

there are many Base repostory, like "tizen","snapshots","live"."devel". In
the confusing download.tizen.com, I was thinking the devel should be the
lastest and most unstable build, but not ,snapshot is.
So ONLY use Base and Common repo from snapshot.

by edit .gbs.conf, in [profile.tizen3.0_common], only need Base and Common,
don't use exisitng prebuilt.:
And for build.conf, use the one below, comment out the default one.
buildconf=${work_dir}/scm/meta/build-config/build-x86_64-wayland.conf

[repo.tizen3.0_x86_64.base]
url=/home/marship/tizen_repo/base/

[repo.tizen3.0_x86_64.common]
url=/home/marship/tizen_repo/common/

[profile.tizen3.0_common]
repos=repo.tizen3.0_x86_64.common,repo.tizen3.0_x86_64.base
exclude_packages=libtool,gettext,texinfo

# For wayland x86_64
buildconf=${work_dir}/scm/meta/build-config/build-x86_64-wayland.conf


2. Now as we have upgrade the Base-toolchain to latest, the buildroot
required packages need changed too. we need to edit
${work_dir}/scm/meta/build-config/build-x86_64-wayland.conf to reflect the
changes.
If you don't, you will find, like "gcc" can run "cc1". no "su" in
buildroot. can't find "#include " complains error.
My changes were to fix the error I get.
So
0. I comment out "ligcc_s1" because last base doesn't have this package
anymore.
L374
#Preinstall: libgcc_s1


1. I added util-linux-su becuase now util-linux doesn't install 'su' comand.
L385
Preinstall: util-linux util-linux-su


2. I appended "cpp" which provides "cc1"
L391
Required: binutils gcc glibc rpm-build libtool cpp

3. I added " libstdc++-devel" which provides "stream" headers
L406
# FIXME: TO REMOVE (? comes from IVI)
Support: gcc-c++ libstdc++-devel

After finish all these, I do
gbs build -A x86_64 --threads 36 --clean --clean-repo

The build goes smoothly.

And one big note about speed up compile, the document is very correct by
mount BUILD-ROOT as tmpfs, which greatly speed up the build. So absolutely
should do that before compile.

Next I can start learning the platform.

Special Thanks to Pawel. Without your help I can't go this further.
Thanks again.


On Sat, Oct 29, 2016 at 11:24 PM, Scott Zhang 
wrote:

> OK. I find in latest Base, the "su" command is in "
> util-linux-su-2.28-1.1.x86_64.rpm
> 
> ".
>
> On Sat, Oct 29, 2016 at 5:08 PM, Scott Zhang 
> wrote:
>
>> I think this is a bug report.
>> I have looked into the build.conf file.
>> The prebuilt's rpm is too old. The latest tizen-base actually is the
>> "Base". But the problem is the util-linux file being included in the
>> lastest base, which DOESN't have the "su" do command. I have to check with
>> the prebuilt version 2.24. devel repo version 2.25 and latest 2.28. Only
>> latest doesn't have "su" command. I think I have to revert back to old base
>> repo.
>> [marship@localhost t]$ rpm -qlp ../util-linux-2.24.2-7.5.x86_64.rpm
>> |grep su
>> /etc/default/su
>> /etc/pam.d/su
>> /etc/pam.d/su-l
>> /usr/bin/su
>> /usr/sbin/sulogin
>> [marship@localhost t]$ rpm -qlp util-linux-2.25.2-2.4.x86_64.rpm |grep su
>> /etc/default/su
>> /etc/pam.d/su
>> /etc/pam.d/su-l
>> /usr/bin/su
>> /usr/sbin/sulogin
>> [marship@localhost t]$ rpm -qlp util-linux-2.28-8.1.x86_64.rpm |grep su
>> /etc/pam.d/su
>> /etc/pam.d/su-l
>> /usr/sbin/sulogin
>>
>>
>> On Sat, Oct 29, 2016 at 4:43 PM, Scott Zhang 
>> wrote:
>>
>>> Dear pawel.
>>>I have added the base+common into the local repo. Now more packages
>>> built, but the same problem with there are OLD packages in
>>> prebuilt/toolchains-x86_64 which existing within base repo too. Looks base
>>> contains higher version and -devel files. Then for some package, the lower
>>> version of package were installed and conflicts reported. Usually I will
>>> remove the conflicts packages from prebuilt/ and createrepo . to rebuild
>>> the repbuilt directory. But now, some package reports gcc/libdw conflicts
>>> so I have to remove gcc from prebuilt.
>>>My question is what exactlly "prebuilt/toolchains-x86_64"  are? An
>>> older version of Base repo without -devel packages? How can I make it to
>>> newer version?
>>>Thanks.
>>>
>>> On Sat, Oct 29, 2016 at 1:51 AM, Paweł 

[Tizen General] Docuement for build.conf which configure the build root

2016-10-29 Thread Scott Zhang
Dear all.
Where is the document for build.conf?
I have read the .gbs.conf, and my problem now resides in the buildroot.
After changing the toolchain-base, which in different version the software
needed to be installed has a bit different. So I modified the
build-x86_64-wayland.conf.
first:
Preinstall: libcap
#Preinstall: libgcc_s1
Preinstall: libpopt sed tar zlib


remove ligbcc_s1

second:
the cpp pakcage is not installed in time.  so i append it to "required"

VMinstall: perl libmount libblkid libext2fs libuuid  grep libpcre util-linux

Required: binutils gcc glibc rpm-build libtool* cpp*

*And as I am doing these modified by GUESS. Is there a precise document
explains the verb?*
___
General mailing list
General@lists.tizen.org
https://lists.tizen.org/listinfo/general


Re: [Tizen General] About "Building Packages Locally with GBS"

2016-10-29 Thread Scott Zhang
I think this is a bug report.
I have looked into the build.conf file.
The prebuilt's rpm is too old. The latest tizen-base actually is the
"Base". But the problem is the util-linux file being included in the
lastest base, which DOESN't have the "su" do command. I have to check with
the prebuilt version 2.24. devel repo version 2.25 and latest 2.28. Only
latest doesn't have "su" command. I think I have to revert back to old base
repo.
[marship@localhost t]$ rpm -qlp ../util-linux-2.24.2-7.5.x86_64.rpm |grep su
/etc/default/su
/etc/pam.d/su
/etc/pam.d/su-l
/usr/bin/su
/usr/sbin/sulogin
[marship@localhost t]$ rpm -qlp util-linux-2.25.2-2.4.x86_64.rpm |grep su
/etc/default/su
/etc/pam.d/su
/etc/pam.d/su-l
/usr/bin/su
/usr/sbin/sulogin
[marship@localhost t]$ rpm -qlp util-linux-2.28-8.1.x86_64.rpm |grep su
/etc/pam.d/su
/etc/pam.d/su-l
/usr/sbin/sulogin


On Sat, Oct 29, 2016 at 4:43 PM, Scott Zhang  wrote:

> Dear pawel.
>I have added the base+common into the local repo. Now more packages
> built, but the same problem with there are OLD packages in
> prebuilt/toolchains-x86_64 which existing within base repo too. Looks base
> contains higher version and -devel files. Then for some package, the lower
> version of package were installed and conflicts reported. Usually I will
> remove the conflicts packages from prebuilt/ and createrepo . to rebuild
> the repbuilt directory. But now, some package reports gcc/libdw conflicts
> so I have to remove gcc from prebuilt.
>My question is what exactlly "prebuilt/toolchains-x86_64"  are? An
> older version of Base repo without -devel packages? How can I make it to
> newer version?
>Thanks.
>
> On Sat, Oct 29, 2016 at 1:51 AM, Paweł Wieczorek  > wrote:
>
>> I am glad I could help.
>>
>> Best regards,
>>
>> Paweł Wieczorek
>> Samsung R Institute Poland
>> Samsung electronicsp.wieczor...@samsung.com
>>
>> On 28/10/16 18:02, Scott Zhang wrote:
>>
>> You win Pawel.
>> The base repo still have packages devel repo doesn't have so I am
>> including the repo in now.
>>
>> Regards
>>
>> On Fri, Oct 28, 2016 at 1:48 AM, Scott Zhang 
>> wrote:
>>
>>> Thank. Pawel.
>>> Yes. I guess missing "Base" is a main cause.
>>> During the daytime dig of all urls, I found
>>> http://download.tizen.org/snapshots/devel/common/latest/rep
>>> os/x86_64-wayland/packages/ , Looks the "Devel" contains all the rpm
>>> build need, so I am making a little more progress today, few more packages
>>> build success. Due to the slow network speed of China, I am getting slow
>>> with remote repository. I will revert back to Base+Common if devel fails.
>>>
>>> Thank again.
>>>
>>> On Fri, Oct 28, 2016 at 12:37 AM, Paweł Wieczorek <
>>> p.wieczor...@samsung.com> wrote:
>>>
 Hi Scott,

 The issues you reported here and in "About Repo Sync get..." thread
 seem to be caused by the Tizen:Base repository (or rather by the lack of
 it).

 In order to get all the necessary source code, please refer to the
 following thread:

 https://lists.tizen.org/pipermail/dev/2016-June/007100.html

 Description of setting up proper GBS configuration can be found in
 following threads:

 https://lists.tizen.org/pipermail/dev/2016-May/007045.html
 https://lists.tizen.org/pipermail/dev/2016-June/007101.html
 https://lists.tizen.org/pipermail/dev/2016-September/007159.html

 Best regards,

 Paweł Wieczorek
 Samsung R Institute Poland
 Samsung electronicsp.wieczor...@samsung.com

 On 27/10/16 08:03, Scott Zhang wrote:

 I have read the link over 10 times and tried to understand and
 following each command. but still can't get project build without problem.
 Now I hangs on
 tpk-backend:
   nothing provides libgdbm.so.3()(64bit) needed by capi-system-info

 So many missings.

 I am using Centos7 to build tizen_common x86_64-wayland. Any
 suggestions?
 Thanks.

 https://source.tizen.org/documentation/developer-guide/getti
 ng-started-guide/building-packages-locally-gbs


 ___
 General mailing 
 listGeneral@lists.tizen.orghttps://lists.tizen.org/listinfo/general


>
___
General mailing list
General@lists.tizen.org
https://lists.tizen.org/listinfo/general


Re: [Tizen General] About "Building Packages Locally with GBS"

2016-10-29 Thread Scott Zhang
Dear pawel.
   I have added the base+common into the local repo. Now more packages
built, but the same problem with there are OLD packages in
prebuilt/toolchains-x86_64 which existing within base repo too. Looks base
contains higher version and -devel files. Then for some package, the lower
version of package were installed and conflicts reported. Usually I will
remove the conflicts packages from prebuilt/ and createrepo . to rebuild
the repbuilt directory. But now, some package reports gcc/libdw conflicts
so I have to remove gcc from prebuilt.
   My question is what exactlly "prebuilt/toolchains-x86_64"  are? An older
version of Base repo without -devel packages? How can I make it to newer
version?
   Thanks.

On Sat, Oct 29, 2016 at 1:51 AM, Paweł Wieczorek 
wrote:

> I am glad I could help.
>
> Best regards,
>
> Paweł Wieczorek
> Samsung R Institute Poland
> Samsung electronicsp.wieczor...@samsung.com
>
> On 28/10/16 18:02, Scott Zhang wrote:
>
> You win Pawel.
> The base repo still have packages devel repo doesn't have so I am
> including the repo in now.
>
> Regards
>
> On Fri, Oct 28, 2016 at 1:48 AM, Scott Zhang 
> wrote:
>
>> Thank. Pawel.
>> Yes. I guess missing "Base" is a main cause.
>> During the daytime dig of all urls, I found
>> http://download.tizen.org/snapshots/devel/common/latest/rep
>> os/x86_64-wayland/packages/ , Looks the "Devel" contains all the rpm
>> build need, so I am making a little more progress today, few more packages
>> build success. Due to the slow network speed of China, I am getting slow
>> with remote repository. I will revert back to Base+Common if devel fails.
>>
>> Thank again.
>>
>> On Fri, Oct 28, 2016 at 12:37 AM, Paweł Wieczorek <
>> p.wieczor...@samsung.com> wrote:
>>
>>> Hi Scott,
>>>
>>> The issues you reported here and in "About Repo Sync get..." thread seem
>>> to be caused by the Tizen:Base repository (or rather by the lack of it).
>>>
>>> In order to get all the necessary source code, please refer to the
>>> following thread:
>>>
>>> https://lists.tizen.org/pipermail/dev/2016-June/007100.html
>>>
>>> Description of setting up proper GBS configuration can be found in
>>> following threads:
>>>
>>> https://lists.tizen.org/pipermail/dev/2016-May/007045.html
>>> https://lists.tizen.org/pipermail/dev/2016-June/007101.html
>>> https://lists.tizen.org/pipermail/dev/2016-September/007159.html
>>>
>>> Best regards,
>>>
>>> Paweł Wieczorek
>>> Samsung R Institute Poland
>>> Samsung electronicsp.wieczor...@samsung.com
>>>
>>> On 27/10/16 08:03, Scott Zhang wrote:
>>>
>>> I have read the link over 10 times and tried to understand and following
>>> each command. but still can't get project build without problem. Now I
>>> hangs on
>>> tpk-backend:
>>>   nothing provides libgdbm.so.3()(64bit) needed by capi-system-info
>>>
>>> So many missings.
>>>
>>> I am using Centos7 to build tizen_common x86_64-wayland. Any
>>> suggestions?
>>> Thanks.
>>>
>>> https://source.tizen.org/documentation/developer-guide/getti
>>> ng-started-guide/building-packages-locally-gbs
>>>
>>>
>>> ___
>>> General mailing 
>>> listGeneral@lists.tizen.orghttps://lists.tizen.org/listinfo/general
>>>
>>>
___
General mailing list
General@lists.tizen.org
https://lists.tizen.org/listinfo/general