tools/depanneur.git
11 years agoAdd --packagind-dir option release-0.2 0.2
Markus Lehtonen [Fri, 2 Nov 2012 07:10:27 +0000 (09:10 +0200)]
Add --packagind-dir option

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agochange ccache option as bool type
Zhang Qiang [Wed, 31 Oct 2012 07:36:50 +0000 (15:36 +0800)]
change ccache option as bool type

Change-Id: Ia21883b0d6817b3c3e2ebd367bc466913c56685f

11 years agobump up to version 0.2
Zhang Qiang [Thu, 25 Oct 2012 01:49:56 +0000 (09:49 +0800)]
bump up to version 0.2

Change-Id: I7c16247721283e80e9df8d8f70d2166e54ca8788

11 years agofix typo: lossing ';'
Zhang Qiang [Thu, 25 Oct 2012 01:43:49 +0000 (09:43 +0800)]
fix typo: lossing ';'

Change-Id: Ic852db81e3f0ed43574e6b0b8eae4cfe222d6098

11 years agodepend on tizen-build-2012.10.10
Zhang Qiang [Wed, 24 Oct 2012 06:52:10 +0000 (14:52 +0800)]
depend on tizen-build-2012.10.10

From now on, our owned build will provide 'tizen-build-%{version}',
which can be used to distinguish upstream version, and let depanneur
to depend on our own build.

Change-Id: I7a2e066a6115841bd3b1280176b7126f97375665

11 years agoCheck circle and exit if circle exists, fix#457
Zhang Qiang [Thu, 18 Oct 2012 07:28:50 +0000 (15:28 +0800)]
Check circle and exit if circle exists, fix#457

* split expand_deps into two functions, one is for generating %repo
  and the other is calling Build::readdeps to get build deps
* generate pkgddeps, which is the direct dependency dict, and this
  structure can be used to check dependency circle
* use global $config, and don't need parse everytime

Note: only direct dependency can be used while checking circle.

Change-Id: I47e8374876e043b70b8e50ecf441bf3852d9a30a

11 years agoBuild spec files in ARGV
Huang Hao [Wed, 17 Oct 2012 10:47:19 +0000 (18:47 +0800)]
Build spec files in ARGV

* If specify spec files in ARGV, build them
* If not, find spec files in $package_path and build
* If --buildall is on, build both of them
* In this way to support building one spec file(Fix #386)

Change-Id: Ide633e81e29b436bae61f03d8e7f8587a8a54b8c

11 years agoUpdate dependency to use build-2012-10.10
Zhang Qiang [Thu, 18 Oct 2012 07:06:54 +0000 (15:06 +0800)]
Update dependency to use build-2012-10.10

Change-Id: I41344215acd2c6bd92d6cf7c1de244db87dcf7ad

11 years agoreturn directly if specified specfile is not in a git project
Zhang Qiang [Wed, 17 Oct 2012 07:59:59 +0000 (15:59 +0800)]
return directly if specified specfile is not in a git project

Also change the msg type from debug to warning.

Change-Id: Ib147d051289842df355e0fc16ff1b461f8594251

11 years agoCheck return value of 'gbs export'
Huang Hao [Wed, 17 Oct 2012 08:04:46 +0000 (16:04 +0800)]
Check return value of 'gbs export'

* Fix #403. Exit with no-zero if any error occurs.
* Show error summary at the end. There are three types of errors:
    exporting error, dependency error and rmpbuild error.

Change-Id: I42128c327266f6b4f215ed708fd8caf18452d829

11 years agoIncremantal build on dir that contains only one packages
Huang Hao [Tue, 16 Oct 2012 10:36:37 +0000 (18:36 +0800)]
Incremantal build on dir that contains only one packages

* Fix #400
* Record project base path of packages in %to_build, this base
    path will be used for mount command in incremental building
* Project base path can only be found in git style packages

Change-Id: I3412a6005d1f80c8b01544f705041e26d5150b1c

11 years agoOnly import getpw() when using User::pwent
Huang Hao [Wed, 17 Oct 2012 07:20:51 +0000 (15:20 +0800)]
Only import getpw() when using User::pwent

Otherwise this module will overrite default function getpwuid()

Change-Id: I2bb07069204c8cc6f6b6b2f0644e8e14f68ae02e

11 years agorun sudo -v outof scheduler in main thread
Zhang Qiang [Tue, 16 Oct 2012 23:38:39 +0000 (07:38 +0800)]
run sudo -v outof scheduler in main thread

This also can fix an endless running error if sudo -v timeout in
sub threads

Change-Id: I3c23328279971784651281dfa57927dfd6787b3d

11 years agoextend ~ in env variable
Yigang Wen [Fri, 12 Oct 2012 07:27:59 +0000 (15:27 +0800)]
extend ~ in env variable

extend ~ of $ENV{'TIZEN_BUILD_ROOT'} for #485

11 years agoRevert "Remove trailing slash for proxy env."
Anas Nashif [Tue, 16 Oct 2012 13:31:14 +0000 (06:31 -0700)]
Revert "Remove trailing slash for proxy env."

Sorry, but proxy settings and handling is not part of depanneur, fix it where it occurs.

This reverts commit c5c7b796ad5d67c6bf5fb0e9e7d1c7d7443ae4e7

11 years agoadd alarm to execute "sudo -v" periodly
Yigang Wen [Fri, 12 Oct 2012 09:43:10 +0000 (17:43 +0800)]
add alarm to execute "sudo -v" periodly

Avoid inputing twice password when building a package last long
time, in main thread add alarm to execute "sudo -v" periodly.
fix #460

11 years ago"^C" problem when multithreads stop at "sudo -v"
Yigang Wen [Tue, 16 Oct 2012 08:41:42 +0000 (16:41 +0800)]
"^C" problem when multithreads stop at "sudo -v"

when multithreads stop at "sudo -v", you need input ^C more than
one time to terminate depanneur. The reason is main thread blocked
by "lock($DETACHING)" and it can't response to ^C immediately. So
use another lock variable "$SUDOV_LOCK" for "sudo -v".

11 years agoAdd --debug parameter to gbs export if debug on
Huang Hao [Tue, 16 Oct 2012 02:09:03 +0000 (10:09 +0800)]
Add --debug parameter to gbs export if debug on

Fix #402

Change-Id: I6b3e3d117b03a687e0d3408f3db5de5ae63555c6

11 years agoMore clear and readable info for final error report
Zhang Qiang [Fri, 12 Oct 2012 22:19:39 +0000 (06:19 +0800)]
More clear and readable info for final error report

for build error packages, build log is printed, and for
expansion error packages, details expansion errors are
printed. fix #462.

Change-Id: Ie6b03dec2f61baf7494d48a0af5bbc2b5c0a3f2f

11 years agoUnify color of debug message in gbs, gbp and depanneur.
Huang Hao [Fri, 12 Oct 2012 10:35:59 +0000 (18:35 +0800)]
Unify color of debug message in gbs, gbp and depanneur.

Fix #450.

Change-Id: Ic51970c7b656e843154f3310b31094129a4edb5c

11 years agoRemove trailing slash for proxy env.
Huang Hao [Fri, 12 Oct 2012 08:02:04 +0000 (16:02 +0800)]
Remove trailing slash for proxy env.

Fix #467.

Change-Id: I3dd6957593b3b9645f08dc936afe439ee0acebd9

11 years agoSupport multi spec files in single package.
Huang Hao [Wed, 10 Oct 2012 10:26:09 +0000 (18:26 +0800)]
Support multi spec files in single package.

fix #438.

* get all spec files in fill_packs_from_git()
* split codes that deal with reversion cache codes into three
    functions read_cache(), write_cache() and clean_cache()
* split exporting codes into gbs_export()
* split codes that query git reversion into query_git_commit_rev()
* add a debug message for my_system call
* comment a debug message of checking dependence, it print out
    every second and overwhelm other useful debug message.

Change-Id: I5b295015818d9953b34386e65c74c1b204ede120

11 years agoAdd function worker_thread to cleanup thread status in one place.
Huang Hao [Wed, 10 Oct 2012 05:14:00 +0000 (13:14 +0800)]
Add function worker_thread to cleanup thread status in one place.

The exit condition in main thread loop is to check whether all
tasks had been completed, so any thread should update @done var
when it's about to exit, otherwise main thread would wait it
forever.

Add a function worker_thread which take the jobs of calling detach,
update @running, @done, $dirty, @errors according to value returned
from build_package which focus really on building package.

Change-Id: I2d5bba3265f15b48a853155d9b607edc39800256

11 years agofixed error messages
Anas Nashif [Thu, 11 Oct 2012 16:04:02 +0000 (09:04 -0700)]
fixed error messages

11 years agouse bsd_glob instead of glob in func build_package
Yigang Wen [Thu, 11 Oct 2012 06:07:57 +0000 (14:07 +0800)]
use bsd_glob instead of glob in func build_package

On openSuse 12.2 with perl 5.16 there is 'Segmentation fault'
caused by multithreads while running a depanneur

11 years agoCheck if getlogin fails use getpwuid($<) instead.
Zhang Qiang [Thu, 27 Sep 2012 08:13:30 +0000 (16:13 +0800)]
Check if getlogin fails use getpwuid($<) instead.

getlogin may return empty string in active directory authentication
system, in this case getpwuid($<) is used instead.

Change-Id: I2bfe65caf0518e4eb187fee5c817355988b78bb5

11 years agoUse '/' as VIRTUAL_ENV if VIRTUAL_ENV not set in %ENV
Zhang Qiang [Thu, 27 Sep 2012 05:10:34 +0000 (13:10 +0800)]
Use '/' as VIRTUAL_ENV if VIRTUAL_ENV not set in %ENV

Change-Id: I81c7e3993e533c8168541a8dedfd610b70f88e69

11 years agoSet ENV variable in main thread.
Huang Hao [Thu, 27 Sep 2012 04:14:28 +0000 (12:14 +0800)]
Set ENV variable in main thread.

Change-Id: If968325d996cd991db01887073d4d20af90450e2

11 years agoDon't call exit() in thread.
Huang Hao [Wed, 26 Sep 2012 09:37:28 +0000 (17:37 +0800)]
Don't call exit() in thread.

11 years agofix perlcritic's warning
Huang Hao [Tue, 25 Sep 2012 08:05:22 +0000 (16:05 +0800)]
fix perlcritic's warning

eliminate warning of serverity 5 reported by perlcritic

- code after "use strict"
- default value for $ENV{VIRTUAL_ENV}
- use lexical file handler instead of bareword file handler
- use three-arguments of open
- use "return" instead of "return undef", the latter could evalute
    to one-element list (undef) in list context

11 years agoUse absolute path for --path.
Huang Hao [Tue, 25 Sep 2012 03:14:44 +0000 (11:14 +0800)]
Use absolute path for --path.

- fix bug: can't find spec file if --path is a relative path
- remove tailing white spaces
- remove useless variables in git_wanted
- remove useless $config argument when calling fill_packs_from_git
- remove useless sub wanted

11 years agoAdd missing i386 to the x86 arch_list
Markus Lehtonen [Tue, 25 Sep 2012 11:14:43 +0000 (14:14 +0300)]
Add missing i386 to the x86 arch_list

Otherwise some builds with deps to .i386 rpms may fail.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoRemove prototypes of subroutine.
Huang Hao [Mon, 24 Sep 2012 05:38:44 +0000 (13:38 +0800)]
Remove prototypes of subroutine.

Prototype of sub may lead to confusion and is not recommended.

11 years agoLock $dirty to fix for Issue#388
jdong7 [Fri, 21 Sep 2012 02:54:18 +0000 (10:54 +0800)]
Lock $dirty to fix for Issue#388

Change-Id: Ic01d2469c5d50d07dd2988e004711822371b7b9f

11 years agoreport error if building multiple packages for incremental build release-0.1 0.1
Zhang Qiang [Fri, 21 Sep 2012 08:25:57 +0000 (16:25 +0800)]
report error if building multiple packages for incremental build

Change-Id: I759d302f46400f6aba7d4c3445dcb9847885adaa

11 years agoshow full build log path for incremental build
Zhang Qiang [Fri, 21 Sep 2012 07:05:51 +0000 (15:05 +0800)]
show full build log path for incremental build

for incremental build mode, this patch is necessary, as if buildlog
is redirectted to /dev/null, some user don't know where's the log,
and the build results.

Change-Id: I738193275bc5ecc5cd42b9fb0c8df2a879ac2530

11 years ago--clean option should not be used for incremental build mode
Zhang Qiang [Fri, 21 Sep 2012 06:34:18 +0000 (14:34 +0800)]
--clean option should not be used for incremental build mode

If --clean option used for incremental build, all source code will be
removed.

Change-Id: Ie1caa94f57c1a2285d6ecc7c076c2011f91bc559

11 years agoexit thread if killed in the middle of creating build root
Zhang Qiang [Thu, 20 Sep 2012 13:20:05 +0000 (21:20 +0800)]
exit thread if killed in the middle of creating build root

Change-Id: Ia1ada20f3a521ed4d78b08e18c871c83a4e159f8

11 years agoSupport local plain RPM packages dir
Zhang Qiang [Thu, 20 Sep 2012 03:30:37 +0000 (11:30 +0800)]
Support local plain RPM packages dir

Change-Id: I30d71f8a23aacbf97d2322f5f3b0d7b5283abc13

11 years agoRemove old source rpm packages to build again
Zhang Qiang [Wed, 19 Sep 2012 23:22:43 +0000 (07:22 +0800)]
Remove old source rpm packages to build again

Once gbs export execute, that means source code changes, so we need
remove exists src.rpm to make depanneur build these packages again.

Without this patch, user have to specify --overwrite even if source
code changed.

Change-Id: I0222833049216b086d1041ce3285acec4fbdcf04

11 years agoAdd three extra options for gbs export while generating tarball
Zhang Qiang [Wed, 19 Sep 2012 05:19:57 +0000 (13:19 +0800)]
Add three extra options for gbs export while generating tarball

* -upstream-branch: default is 'upstream'
* --upstream-tag: Upstream tag format, e.g. 'v${upstreamversion}'
* --squash-patches-until: When generating patches, squash patches
  up to given commit-ish into one monolithic diff file. Format is
  the commit-ish optionally followed by a colon and diff filename
  base.

Change-Id: I95c2baa19cf0ba65cb0c4d7cf995efe777933995

11 years agoUse lower case letter to be consistent with gbs
Zhang Qiang [Tue, 18 Sep 2012 12:54:22 +0000 (20:54 +0800)]
Use lower case letter to be consistent with gbs

Change-Id: I3e0f20bafda060e7840b055a39e150b5bc82205d

11 years agoKill threads correctly if press Ctrl+c instead of real passwd
Zhang Qiang [Tue, 18 Sep 2012 11:59:02 +0000 (19:59 +0800)]
Kill threads correctly if press Ctrl+c instead of real passwd

Change-Id: Ib4f366f5beb0a0c90e6475ef491e89ea6852c84b

11 years agowrite export cache after gbs export succeeded, fix#362
Zhang Qiang [Mon, 17 Sep 2012 06:21:32 +0000 (14:21 +0800)]
write export cache after gbs export succeeded, fix#362

This patch can avoid inconsistance of source cache file and source code

Change-Id: I8129f93ea161b0909cafeb9195df5b1b850ab687

11 years agoCtrl + C refinements
Zhang Qiang [Sun, 16 Sep 2012 21:55:23 +0000 (05:55 +0800)]
Ctrl + C refinements

1. Change signal handlers while starting building packages
2. rewrite system(), as standard library of system ignore INT signal
   which result in Ctrl+C can't be catched once system called.

Change-Id: I4ef7c4e1b308d387d8c3bf43f1549145d27c200d

11 years agomore check about specfile
Zhang Qiang [Sun, 16 Sep 2012 06:02:32 +0000 (14:02 +0800)]
more check about specfile

Change-Id: I8f2aafc7fdf8976613af2d3d46cc1ba5cf62dba0

11 years agoconsider local RPMs generated using local source code
Zhang Qiang [Sat, 15 Sep 2012 13:32:04 +0000 (21:32 +0800)]
consider local RPMs generated using local source code

generate RPM order data for local RPMs of local source packages,
which would be merged with order data generate from repos configed
from repos.

Change-Id: I73799d558a2cdf3c6c3ed1657eacf2dc032b98ef

11 years agoonly update packages dependency with expansion error
Zhang Qiang [Sat, 15 Sep 2012 08:46:05 +0000 (16:46 +0800)]
only update packages dependency with expansion error

only packages with expansion error are needed to parse if local repo
has new RPM generated, which can speed up pkgdeps refresh process.

Change-Id: I9c1dc3bf59f399caaaab65f2c1d65bf106183c34

11 years agoCheck the existance of RPMs and log before copying
Zhang Qiang [Fri, 14 Sep 2012 13:17:49 +0000 (21:17 +0800)]
Check the existance of RPMs and log before copying

remove 'die ...' in threads, or build threads will exit abnormal,
and make whole build status inconsistent.

Change-Id: I4063551cc40787d37093208100322ffe2637c09e

11 years agoHandle the temporarily expansion error.
Junfeng Dong [Fri, 14 Sep 2012 05:43:15 +0000 (13:43 +0800)]
Handle the temporarily expansion error.

Two kinds of expansion errors:
 1. Real error: can't be resolved by both remote repo and local source.
 2. Temporary error: will be satified by local source.

Change-Id: I7279648fdac73644fbbe92c2440af5c9f52d4585

11 years agorevert 341064: move buildlog to avoid copying by mistake.
Junfeng Dong [Fri, 14 Sep 2012 05:50:55 +0000 (13:50 +0800)]
revert 341064: move buildlog to avoid copying by mistake.
delete the build log after build finishes.

Change-Id: Idf34316d3461315dd5cff3a82dd7739cd8c1f991

11 years agoAdd packaging files
Zhang Qiang [Tue, 11 Sep 2012 06:07:54 +0000 (14:07 +0800)]
Add packaging files

$ cd packaging
$ make all

Change-Id: I804e7376f1ce740a241565ce16eda376a63b11f4

11 years agomove buildlog to avoid copying by mistake in next build
Zhang Qiang [Thu, 13 Sep 2012 13:12:19 +0000 (21:12 +0800)]
move buildlog to avoid copying by mistake in next build

For example:
run depannur to build ail succeeded, and the build log left in that
build root, next time run ail again, depanneur request root passwd
and user cancelled by Ctrl + C, then the build log for previous build
will be copied to fail dir by mistake.

Change-Id: Iff50f4a1378ba135c6763fc6f279bc689a6928ef

11 years agocheck and use scratch.incremental first
Zhang Qiang [Thu, 13 Sep 2012 08:55:01 +0000 (16:55 +0800)]
check and use scratch.incremental first

Without this patch, if scratch.incremental already exsit and
scratch.{arch}.0 exists too, depanneur still need to create new
scrach.incremental buildroot

Change-Id: I26855f36eada3216c9f7ea75efe2967b93ad1301

11 years agocall sudo -v with lock protect
Zhang Qiang [Thu, 13 Sep 2012 12:59:47 +0000 (20:59 +0800)]
call sudo -v with lock protect

Without this multiple thread workers may request passwd at the same
time, then depanneur will destroy current terminal or system.

Change-Id: I784a9474d8c182e4429085962f41b0f81149b890

11 years agoUse remote RPM to build if its dependency has expansion error
Zhang Qiang [Thu, 13 Sep 2012 12:46:49 +0000 (20:46 +0800)]
Use remote RPM to build if its dependency has expansion error

Without this patch, if one packages has expansion error, all packages
depend on it will be reportted as expansion error, even if it can be
built from remote repo.

Change-Id: I040467899e61c433896fcd640a4a225c78781d3a

11 years agoAdd missing $dist dir while reporting error log
Zhang Qiang [Wed, 12 Sep 2012 04:41:14 +0000 (12:41 +0800)]
Add missing $dist dir while reporting error log

Change-Id: Ibc75c9b7780ff1c680dea4c4b0c96d7a41cadced

11 years agoresolve deps before running scheduler #336
Zhang Qiang [Tue, 11 Sep 2012 07:59:50 +0000 (15:59 +0800)]
resolve deps before running scheduler #336

This is refinement about current scheduler to speed up resolve
dependency. Generate %pkgdeps, which is a map with key as pkgname,
and value is a list of dependencies. %pkgdeps can be used directly
by scheduler and don't need parse spec file everytime.

This patch also update %pkgdeps once local repo has been updated.

This also can fix #336, #337.

Change-Id: I6289a8df14d8cb027c6f6494efb4f45910d24fe2

11 years agoerror handle: return directly if specfile parse error, #335
Zhang Qiang [Tue, 11 Sep 2012 07:33:52 +0000 (15:33 +0800)]
error handle: return directly if specfile parse error, #335

Change-Id: Ic043076c25864ff5301db17f5e5475051c145fc4

11 years agoAdd --ccache option to speedup build using ccahe
Zhang Qiang [Tue, 11 Sep 2012 04:42:11 +0000 (12:42 +0800)]
Add --ccache option to speedup build using ccahe

Change-Id: I91f4cab5c13b715632b419b388063bacc92edbf0

11 years agoRefine scheduler to keep max threads running #269
Zhang Qiang [Sat, 8 Sep 2012 09:26:47 +0000 (17:26 +0800)]
Refine scheduler to keep max threads running #269

If there're free build threads idle, calculating new ready packages to
be built immediately. Don't need wait all candidate packages built finished.

Change-Id: Idc4c03f038de6215744024abdf5aa22ea3663e21

11 years agosort workers use the first idle thread to build packages
Zhang Qiang [Mon, 10 Sep 2012 22:44:35 +0000 (06:44 +0800)]
sort workers use the first idle thread to build packages

sort workers using keys to use the build worker with smallest
id. Without this patch build worker use order is 1,3,0,2,...
but it should be 0,1,2,3,...

This is necessary to make gbs back compatible while building single
package.

Change-Id: Ief248542194d697535387753a13200b426b8fcb6

11 years agoIgnore exclude packages in parsing phrase
Zhang Qiang [Sat, 8 Sep 2012 05:44:40 +0000 (13:44 +0800)]
Ignore exclude packages in parsing phrase

skip exclude packages while parsing packs, and don't need care about
exclude packages in build scheduler, and make scheduler more clear.

Change-Id: I02be218bf0c329d6953feea5b61759dd5e0c2a3d

11 years agoadd --extra-packs option to add install additinal packs to build root
Zhang Qiang [Mon, 10 Sep 2012 13:00:18 +0000 (21:00 +0800)]
add --extra-packs option to add install additinal packs to build root

This is very usefull for developer to create full build env, including
many dev tools, such as vim,zypper,gdb, ect.

Change-Id: Ie4032e9525bc3f1b91cda2921103008bbff40119

11 years agoremove export cache if gbs export fails
Zhang Qiang [Mon, 10 Sep 2012 06:32:22 +0000 (14:32 +0800)]
remove export cache if gbs export fails

Change-Id: I48264a6bac288c5de3ca3e4a548f14e0ad532338

11 years agoAdd --clean option if build root is not ready
Zhang Qiang [Fri, 7 Sep 2012 11:37:45 +0000 (19:37 +0800)]
Add --clean option if build root is not ready

Change-Id: Ibf2347a1f7ddb8d6f713014f17428ad1e93fe8a1

11 years agoreturn 0, instead of 1 while incremental build finished
Zhang Qiang [Wed, 5 Sep 2012 02:44:33 +0000 (10:44 +0800)]
return 0, instead of 1 while incremental build finished

Change-Id: I05bffaad99293f5b0ece63aac0c1b9e20e2f4418

11 years agoremove --turbo option
Zhang Qiang [Thu, 30 Aug 2012 09:44:24 +0000 (17:44 +0800)]
remove --turbo option

download repodata code has been move out of scheduler loop and
createrepomddeps can reuse local repodata cache, so this option is
useless now.

Change-Id: I194c8329acd3016953c9e7aa4bc25ded39299d96

11 years agoGive error and exit if no packages found
Zhang Qiang [Thu, 30 Aug 2012 09:34:15 +0000 (17:34 +0800)]
Give error and exit if no packages found

Change-Id: I084324a5b202dd6688cf932c121edcfacdbece92

11 years agoshare cached repodata between depanneur and build, #291
Zhang Qiang [Thu, 30 Aug 2012 01:55:39 +0000 (09:55 +0800)]
share cached repodata between depanneur and build, #291

Change-Id: If6a114faaa3e9eeacc4e0b2c40db5b9b1506a0e9

11 years agoFixed typo
Anas Nashif [Wed, 29 Aug 2012 16:18:15 +0000 (09:18 -0700)]
Fixed typo

Change-Id: If770918f2de99959a9e416d01ba8c2bce032b9c5

11 years agoadd --include-all and --commit option for gbs export use.
Zhang Qiang [Wed, 29 Aug 2012 07:32:25 +0000 (15:32 +0800)]
add --include-all and --commit option for gbs export use.

generally --include-all and --commit options are used to build
single package. if build multiple packages, --commit is not available.

Change-Id: I7b13257f458bedc6b3313bb70fb0ab7d644f7d8c

11 years agoAdjust the output information to make it unified with gbs
Zhang Qiang [Wed, 29 Aug 2012 07:28:34 +0000 (15:28 +0800)]
Adjust the output information to make it unified with gbs

Feature#287

Change-Id: Iff17ff59112c8ad3bc0af41070146fd035a5fcb9

11 years agomore code optimizations
Zhang Qiang [Wed, 29 Aug 2012 07:19:16 +0000 (15:19 +0800)]
more code optimizations

1) move creating repo cache code out from scheduler loop, and repo
cache should be generated before using it, or --binary will fail
to find repo cache file.
2) move finding skipped list packages out of sched loop

Change-Id: I5278d8183b5a635c41ac3176c1a09420c8617ff0

11 years agoMerge branch 'typo' into devel
Anas Nashif [Tue, 28 Aug 2012 18:14:04 +0000 (11:14 -0700)]
Merge branch 'typo' into devel

11 years agoadd --configdir option
Zhang Qiang [Tue, 28 Aug 2012 12:20:43 +0000 (20:20 +0800)]
add --configdir option

Change-Id: I8980723c68088640170264f92d6efbc2b6f9d79e

11 years agouse --repository instead of --rpms
Zhang Qiang [Fri, 24 Aug 2012 02:33:35 +0000 (10:33 +0800)]
use --repository instead of --rpms

always set local repo dir as the first repo, so that build can using
local packages as higher priority to create build root.

Change-Id: Idde5ef5fdb0fdbd16ac53724484eb136782778ad

11 years agoadd --repository option
Zhang Qiang [Mon, 27 Aug 2012 02:58:34 +0000 (10:58 +0800)]
add --repository option

If --repository specified, repos in conf would be skipped.

Change-Id: I527ebdc870d1c87397e581581d944f92ca65025a

11 years agofixed typos
Anas Nashif [Wed, 15 Aug 2012 04:42:02 +0000 (21:42 -0700)]
fixed typos

Change-Id: Ibaa5a087b2210aaed5da8e37adb9e38280b3d419

11 years agoremove unused file
Anas Nashif [Tue, 7 Aug 2012 16:18:55 +0000 (17:18 +0100)]
remove unused file

Change-Id: I0c94b971f38ef8214072a8681a547a1e84f2ff33

11 years agoadd debugging, touch repos
Anas Nashif [Tue, 7 Aug 2012 14:34:36 +0000 (15:34 +0100)]
add debugging, touch repos

Change-Id: I4ed0883810eead616638b774889aaa0fb99d6974

11 years agohandle exclusivearch correctly
Anas Nashif [Sun, 5 Aug 2012 17:46:58 +0000 (18:46 +0100)]
handle exclusivearch correctly

Change-Id: I0a6ecc51c6179f0cc6467550d0723a7d15ef7876

11 years agoconstruct build command using array
Anas Nashif [Sun, 5 Aug 2012 00:42:22 +0000 (01:42 +0100)]
construct build  command using array

- construct build command for various scenarios using array
- added turbu commad to skip repo parsing step,
  useful with incremental builds

Change-Id: I02ebf558b4088d393ac8c0c1ab97576fc0ad616e

11 years agoremove unused options, add help
Anas Nashif [Fri, 3 Aug 2012 00:56:24 +0000 (01:56 +0100)]
remove unused options, add help

Change-Id: I9ed337d3b1732303bf915c7cca9fb35987da6dfe

11 years agoremove unused options, add help
Anas Nashif [Fri, 3 Aug 2012 00:50:05 +0000 (01:50 +0100)]
remove unused options, add help

Change-Id: I73e2961ae358763f59669d3713e6c167827f2016

11 years agodo cross compiling for arm
Anas Nashif [Thu, 2 Aug 2012 09:36:28 +0000 (10:36 +0100)]
do cross compiling for arm

Change-Id: Ibeb843614e5f3ffc508b311d77880fbc0fb37256

11 years agofirst attempt to build arm packages
Anas Nashif [Thu, 2 Aug 2012 00:18:53 +0000 (01:18 +0100)]
first attempt to build arm packages

Change-Id: Ib2b190c711281b44744d6f7298f596d102f7a1cd

12 years agofixed mount path
Anas Nashif [Thu, 26 Jul 2012 21:34:28 +0000 (22:34 +0100)]
fixed mount path

Change-Id: Ie5f8504c908a8f14e7e1d86eb494558f51c894f1

12 years agofix deps for images
Anas Nashif [Wed, 25 Jul 2012 22:33:28 +0000 (23:33 +0100)]
fix deps for images

Change-Id: I1651d6ce0b53e46f4f7a7564e1d347aebe75846e

12 years agoremove external scripts
Anas Nashif [Wed, 25 Jul 2012 14:54:08 +0000 (15:54 +0100)]
remove external scripts

Change-Id: I406f5f6392b00d4c74bd21381561c6eb66452d01

12 years agomore optimizations
Anas Nashif [Wed, 25 Jul 2012 14:52:08 +0000 (15:52 +0100)]
more optimizations

Change-Id: Id616ffb9e30e92f82a91d0d57b8aada5053f8902

12 years agomore cleanup
Anas Nashif [Tue, 24 Jul 2012 17:15:47 +0000 (18:15 +0100)]
more cleanup

Change-Id: I5c6331040d6e2d80ff8e7d7a519c5ca456e71f4b

12 years agoand more cleanup
Anas Nashif [Tue, 24 Jul 2012 15:52:40 +0000 (16:52 +0100)]
and more cleanup

Change-Id: I80a2637458b240b3a3c65badd198b4675dc0e682

12 years agoimage dep calculation
Anas Nashif [Tue, 24 Jul 2012 03:49:01 +0000 (04:49 +0100)]
image dep calculation

Change-Id: I2e5b78e7118a2a2d55d33b56cf4a48c8475567ed

12 years agomove dep code into sub
Anas Nashif [Tue, 24 Jul 2012 02:31:24 +0000 (03:31 +0100)]
move dep code into sub

Change-Id: Ib9c812adb02bc0c0f09294391285931283b3593e

12 years agomore cleanup
Anas Nashif [Tue, 24 Jul 2012 02:10:14 +0000 (03:10 +0100)]
more cleanup

Change-Id: I935e19da8bcdca5ff0efe5cbd191822da2157f70

12 years agocleanup
Anas Nashif [Tue, 24 Jul 2012 01:31:48 +0000 (02:31 +0100)]
cleanup

Change-Id: I84cb61a4549f9e9f550e1efc3a57db86b13150d3

12 years agoremove hardcoded arches
Anas Nashif [Tue, 24 Jul 2012 00:47:57 +0000 (01:47 +0100)]
remove hardcoded arches

Change-Id: I6f3a8fa786d1e3241e1d7a1d2d78ce1444f4d3a5

12 years agoimplement incremental build
Anas Nashif [Mon, 23 Jul 2012 23:48:16 +0000 (00:48 +0100)]
implement incremental build

Change-Id: I87f8310a6f582e5d41de84e28a89d8aebabacc18

12 years agobuild with short-circuit
Anas Nashif [Mon, 23 Jul 2012 21:23:37 +0000 (22:23 +0100)]
build with short-circuit

Change-Id: I8fb1bbfa38f97626d3906e058c9f92beaa68a53f