Q:   How to build a "not yet supported" arch with gbs ?
A(short):   You can't. 

A(long):    GBS uses existing binary rpm packages to construct a chroot 
environment to build in. So for a "not yet supported" arch, there _is_ no 
repository to get the needed packages from.
You could 'somehow' compile all needed packages by hand and then add a local 
repository to use gbs then. But well - the work was then done outside of gbs.

Best,
JS


On Friday 03 May 2013 12:27:29 Amitesh Singh wrote:
> Hi Li,
> Thanks for the reply. I have created myarch in .../base/ folder and run
> "createrepo ." but gbs still throws error that myarch is not supported.I
> dig more into gbs code and it has a check for  supported archs which is
> defined in "/usr/lib/python2.7/dist-packages/gitbuildsys/cmd_build.py" 
> (variable name: SUPPORTEDARCHS). I added 'myarch' there and at some places
> as well.
> 
>  gbs -v build -A myarch -D /var/tmp/ami-gbs/tizen2.0.confinfo: generate
> repositories ...debug: running command: linux32 depanneur --arch=myarch
> --repository=/home/ami/tizen_repo/base/
> --repository=/home/ami/tizen_repo/ivi/ --dist=tizen2.0
> --configdir=/var/tmp/ami-gbs --path=/home/ami/tizen/tizen/tools/depanneur
> --threads=1 --packaging-dir=packaging --upstream-branch=upstreamerror:
> myarch not supporterror: Traceback (most recent call last):  File
> "/usr/bin/gbs", line 519, in <module>    sys.exit(main(sys.argv))  File
> "/usr/bin/gbs", line 513, in main    return module.main(args)  File
> "/usr/lib/python2.7/dist-packages/gitbuildsys/cmd_build.py", line 311, in
> main    raise GbsError('rpmbuild fails')GbsError: <gbs>rpmbuild fails
> 
> My local repo:$:~/tizen_repo/base$ lsi586  i686  myarch  noarch  repodata
> Thanks Amitesh
> 
> 
> From: hao.h...@intel.com
> To: amitesh.si...@outlook.com; general@lists.tizen.org; i...@lists.tizen.org
> Subject: RE: [Tizen General] How to build a 'not yet supported' arch with
> gbs? Date: Fri, 3 May 2013 06:49:15 +0000
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Supposedly the build arch is decided by repo on ~/.gbs.conf
> For example,
> 
> http://download.tizen.org/snapshots/2.0/common/tizen-2.0_20130218.10/repos/b
> ase/, it has ia32/i586, armv7l, so it can be built with i586 or armv7l
> 
> 
> 
> From: general-boun...@lists.tizen.org
> [mailto:general-boun...@lists.tizen.org] On Behalf Of Amitesh Singh
> 
> Sent: Friday, May 03, 2013 2:42 PM
> 
> To: general@lists.tizen.org; i...@lists.tizen.org
> 
> Subject: [Tizen General] How to build a 'not yet supported' arch with gbs?
> 
> 
> 
> 
> 
> Hi All,
> 
> 
> 
> 
> 
> How can I build a custom target arch with gbs? Lets say I want to build a
> arch name "myarch" with gbs with "gbs buld -A myarch".
> 
> 
> gbs uses depanneur for package building.
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks
> 
> 
> Amitesh
-- 

Dipl.-Ing.
Jan-Simon Möller

jansimon.moel...@gmx.de
_______________________________________________
General mailing list
General@lists.tizen.org
https://lists.tizen.org/listinfo/general

Reply via email to