I randomly picked a couple of packages: wget, ecore and libX11, and built them all successfully.
When I checked ~/GBS-ROOT/local/scratch.i586.0/etc/passwd, it had an entry for only one user (abuild). I edited the file to add an entry for the root, and after doing that, I could chroot with the -r option. But this is not going to be the way, I suppose... Best, Vijay Zanvar On Tue, Nov 20, 2012 at 2:23 PM, Zhang, Qiang Z <[email protected]>wrote: > Please tell me the package you build now, this issue should be related > to package.**** > > ** ** > > Thanks**** > > Qiang**** > > ** ** > > *From:* Vijay Zanvar [mailto:[email protected]] > *Sent:* Tuesday, November 20, 2012 4:50 PM > > *To:* Zhang, Qiang Z > *Cc:* [email protected]; [email protected] > *Subject:* Re: [Tizen General] chroot problem**** > > ** ** > > > Building a package has never been a problem. Once build is successfule, I > would like to execute:**** > > **** > > $ gbs chroot -r ~/GBS-ROOT/local/scratch.i586.0/**** > > **** > > But with -r option, as I said, I get "su: user root does not exist" > error. Is it a bug? Do I have to do something before chrooting?**** > > Best,**** > > Vijay Zanvar**** > > ** ** > > On Tue, Nov 20, 2012 at 2:11 PM, Zhang, Qiang Z <[email protected]> > wrote:**** > > **** > > **** > > *From:* Vijay Zanvar [mailto:[email protected]] > *Sent:* Tuesday, November 20, 2012 2:52 PM > *To:* Zhang, Qiang Z > *Cc:* [email protected]; [email protected] > *Subject:* Re: [Tizen General] chroot problem**** > > **** > > *[Qiang] Could you please tell me which repo is used in your gbs.conf and > which package you want to build? This should be caused by special repo.*** > ** > > [Vijay] I am using "releases" repo**** > > [repo.tizen_latest] > #Build against repo's URL > url = http://download.tizen.org/releases/daily/2.0alpha/common/latest/**** > > **** > > But note that I have setup a local repository and the machine is not > connected to a network, and therefore I have this in gbs.conf:**** > > **** > > [repo.tizen_base]**** > > #Build against repo's URL > #url = http://download.tizen.org/releases/daily/2.0alpha/common/latest/*** > * > > url = /home/user/custom-repo/releases/daily/2.0alpha/common/latest**** > > **** > > *[Qiang] which package you want to build?***** > > **** > > Best,**** > > Vijay Zanvar**** > > > > **** > > On Mon, Nov 19, 2012 at 1:37 PM, Zhang, Qiang Z <[email protected]> > wrote:**** > > **** > > **** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Vijay Zanvar > *Sent:* Monday, November 19, 2012 2:38 PM > *To:* [email protected]; [email protected] > *Subject:* [Tizen General] chroot problem**** > > **** > > I am facing following problmes with gbs chroot:**** > > 1) user root does not exist**** > > $ gbs chroot -r ~/GBS-ROOT/local/scratch.i586.0/ > info: chroot /home/vijaykz/GBS-ROOT/local/scratch.i586.0 > su: user root does not exist**** > > *[Qiang] Could you please tell me which repo is used in your gbs.conf and > which package you want to build? This should be caused by special repo.*** > ** > > > with the -r option, gbs chroot fails since the etc/passwd has only one > user (abuild).**** > > 2) The second problem is that chroot created by "gbs build" does not have > essential commands like, apt-get, wget or zypper. > https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-chrootexplains > about installing required packages inside the chrooted environment > using zypper. However, the chroot is not preinstalled with zypper or > apt-get! **** > > *[Qiang] You can use --extra-packs to install extra package you want, > like:***** > > *$ gbs build --extra-packs=zypper,vim,wget …***** > > *Tizen is RPM based system, so apt-get is not available.***** > > * ***** > > 3) How do I setup network access inside the chroot? (I have copied host > machine's /etc/resolv.conf to chroot.)**** > > *[Qiang] From our testing, /etc/resolv.conf is enough for network access. > Any other issue?***** > > **** > > Best,**** > > Vijay Zanvar**** > > **** > > **** > > **** > > ** ** >
_______________________________________________ General mailing list [email protected] https://lists.tizen.org/listinfo/general
