Richard Purdie [Mon, 11 May 2009 21:29:24 +0000 (21:29 +0000)]
fetch/wget.py: Fix wget fetching of urls with parameters specified (from Poky)
Richard Purdie [Mon, 11 May 2009 21:27:24 +0000 (21:27 +0000)]
fetch/hg.py: Fix hg checkouts of specific revisions (from Poky)
Holger Hans Peter Freyther [Mon, 11 May 2009 04:13:35 +0000 (04:13 +0000)]
[bb] Fix the tests by setting a debug level at start
In preparation for python3.0 make sure our test cases are working
again.
Chris Larson [Fri, 17 Apr 2009 23:20:57 +0000 (23:20 +0000)]
Fix rdepends in graphviz graph generation.
Signed-off-by: Roman Khimov <roman@khimov.ru>
Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Fri, 17 Apr 2009 23:13:21 +0000 (23:13 +0000)]
bb.fetch.go: iterate over SRC_URI, not urldata.
urldata can contain urls other than just what's in SRC_URI. The urls of
mirrors, premirrors, stashes, etc can end up in there as well, and we don't
want bb.fetch.go to be fetching those things directly.
Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Fri, 17 Apr 2009 23:13:05 +0000 (23:13 +0000)]
bb.fetch.git: make empty host pass a file uri to git.
Signed-off-by: Tom Rini <trini@embeddedalley.com>
Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Fri, 17 Apr 2009 16:18:01 +0000 (16:18 +0000)]
bb.fetch: make try_mirror go through the dispatcher rather than using wget directly.
Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Wed, 8 Apr 2009 17:37:30 +0000 (17:37 +0000)]
Make the bbpath change for includes temporary rather than permanent.
We currently modify BBPATH so that an include/require looks in the current
working directory before it looks elsewhere. Modifying it permanently
doesn't gain anything, just polluting it with locations that don't need to
stay there.
Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Wed, 8 Apr 2009 17:36:52 +0000 (17:36 +0000)]
BBMASK: survive a non-existant path and don't keep the dir after globbing.
Signed-off-by: Chris Larson <clarson@mvista.com>
Chris Larson [Wed, 8 Apr 2009 17:36:39 +0000 (17:36 +0000)]
BBPKGS: act as a default that can be overridden via the cmdline.
Signed-off-by: Chris Larson <clarson@mvista.com>
Holger Hans Peter Freyther [Thu, 26 Feb 2009 17:12:06 +0000 (17:12 +0000)]
Clean up by Otavio Salvador
Richard Purdie [Sat, 3 Jan 2009 00:08:00 +0000 (00:08 +0000)]
cache.py: Fix whitespace damage
Richard Purdie [Sat, 3 Jan 2009 00:00:37 +0000 (00:00 +0000)]
cache.py: Simplfy logic (from Poky)
Richard Purdie [Fri, 2 Jan 2009 23:52:02 +0000 (23:52 +0000)]
BBHandler: Move handler finalisation code into a separate function
Richard Purdie [Fri, 2 Jan 2009 17:26:01 +0000 (17:26 +0000)]
utils.py: Add bb.utils.prune_suffix function
Holger Hans Peter Freyther [Sun, 14 Dec 2008 20:07:11 +0000 (20:07 +0000)]
Tag BitBake 1.8.12 (update versions, MANIFEST, ChangeLog)
Richard Purdie [Sat, 6 Dec 2008 12:43:35 +0000 (12:43 +0000)]
utils.py: Add empty_environment() function and call this from the cooker instead of hiding in data.py (from Poky)
Richard Purdie [Sat, 6 Dec 2008 12:37:35 +0000 (12:37 +0000)]
fetch/__init__.py: export more variables to the fetcher commands to allow ssh checkouts and checkouts through proxies to work better. Also allow user and pswd options in urls globally and improve proxy handling when using mirrors (from Poky)
Richard Purdie [Sat, 6 Dec 2008 12:31:30 +0000 (12:31 +0000)]
cooker.py: Update to improve handling of the trytaltconfigs option (from Poky)
Richard Purdie [Sat, 6 Dec 2008 12:29:00 +0000 (12:29 +0000)]
wget.py: Add support for HTTP_PROXY and HTTP_PROXY_IGNORE variables to the wget fetcher
Richard Purdie [Sat, 6 Dec 2008 12:27:37 +0000 (12:27 +0000)]
utils.py: Add clean_environment() function and call where appropriate (from Poky)
Richard Purdie [Sat, 6 Dec 2008 12:16:38 +0000 (12:16 +0000)]
BBHandler: Improve file not fuond error message
Richard Purdie [Sat, 6 Dec 2008 12:12:52 +0000 (12:12 +0000)]
git.py: Add username handling to the git fetcher (Robert Bragg from Poky)
Richard Purdie [Sat, 6 Dec 2008 12:09:11 +0000 (12:09 +0000)]
utils.py: Improve lock file function error handling (from Poky)
Richard Purdie [Sat, 6 Dec 2008 12:07:38 +0000 (12:07 +0000)]
providers.py: Fix typos and add some further debug which can occassionaly be useful for debugging problems
Richard Purdie [Sat, 6 Dec 2008 11:50:02 +0000 (11:50 +0000)]
Add tryaltconfigs option to control whether bitbake trys using alternative providers to fulfil failed dependencies. It defaults to off, changing the default since this behaviour confuses many users and isn't often useful (from Poky).
Richard Purdie [Sat, 6 Dec 2008 11:43:08 +0000 (11:43 +0000)]
When SRCREV autorevisioning for a recipe is in use, don't cache the recipe (from Poky)
Richard Purdie [Sat, 6 Dec 2008 11:32:59 +0000 (11:32 +0000)]
Add osc fetcher (from Joshua Lock in Poky)
Holger Hans Peter Freyther [Mon, 3 Nov 2008 12:55:17 +0000 (12:55 +0000)]
[svn] Add @rev to svn checkout command
Patch by borgcube@gmx.li
Svn tries to be smart about revisions. So, when you check out an older revision of a file it goes to the latest revision (HEAD) and tries to go back to the old file. In this case it was impossible, since the whole thing was moved outside of svn's scope, so svn can't find the file in the HEAD revision.
Svn treats this situation as an exception and provides the "peg-revision"-syntax for that. So where you would normally do
svn co -r1337 http://url/to/somewhere/module module
you would now have to do
svn co -r1337 http://url/to/somewhere/module@1337 module,
the @1337 telling svn to go start looking at revision 1337 instead of HEAD.
Marcin Juszkiewicz [Mon, 27 Oct 2008 13:40:28 +0000 (13:40 +0000)]
taskdata: improved error message when BitBake is called with not existing target
Marcin Juszkiewicz [Mon, 27 Oct 2008 13:39:47 +0000 (13:39 +0000)]
cache: not existing cache file is not out of date
Holger Hans Peter Freyther [Sun, 26 Oct 2008 16:49:02 +0000 (16:49 +0000)]
fetch/hg.py: Properly format the command if the user URI parameter is empty.
Richard Purdie [Mon, 20 Oct 2008 14:07:13 +0000 (14:07 +0000)]
runqueue.py: Fix nostamp flag handling (from Poky)
Holger Hans Peter Freyther [Mon, 13 Oct 2008 12:52:58 +0000 (12:52 +0000)]
[fetch] Always add PN to the _revision_key we get from the fetcher
This is extending r1101 to always append something to the
_revision_key of the fetcher. alphaone spotted that it was missing
for the latest_revision case.
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:18:14 +0000 (22:18 +0000)]
[git] Do not run git-rev-list everytime to increase the speed
Cache the result of git-rev-list for a repo and hash. This
speeds up do_package of the linux kernel tremendously.
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:18:08 +0000 (22:18 +0000)]
[git] Optionally use git-rev-list to get a sortable revision
With setting BB_GIT_CLONE_FOR_SRCREV="1" you can get a sensible
and global (per repository with only fast forwards) revision. The downsides
are you will have to have a repository at parse time which means you will
git-clone certain trees you don't even use. This is also the reason why
this is optional. This also means you might need to download your git
checkouts to get this feature working.
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:18:07 +0000 (22:18 +0000)]
[git] Do not git-fetch if we already have the rev we want
When not having internet do not fail on a not needed git-fetch
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:18:06 +0000 (22:18 +0000)]
[git] Disable downloading of checkouts.
Instead of calling try_mirror check if we have a local checkout
already. This code fetched a new checkout even if you had a local
repository which is rather bad if you don't have internet but a full
repository. And the overhead of a full checkout vs. repository is not
too big anyway.
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:18:05 +0000 (22:18 +0000)]
Allow to conditionally implement sortable revision in the fetcher
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:18:04 +0000 (22:18 +0000)]
Make the revision key unique by adding the PN
If two different recipes (e.g. linux-openmoko and linux-openmoko-devel)
use the same git repository but with different SRCREVs the count just
incremented on each parsing. By adding PN to the key we keep the count on
a per package level. Spotted by Graeme.
Holger Hans Peter Freyther [Wed, 8 Oct 2008 01:56:50 +0000 (01:56 +0000)]
[bb.utils] Make prunedir cope with symlinks to directories
2008-10-07 Julian Chu <Julian_Chu@openmoko.com>
Reviewed by Holger.
The packagekit git repository contains a symlink and on fetching the
pruning failed as "packagekit" is not a directory but a symlink to a
directory.
* lib/bb/utils.py:
Richard Purdie [Tue, 30 Sep 2008 22:19:07 +0000 (22:19 +0000)]
fetch/perforce.py: Fix to use commandline options instead of being overriden by the environment from Martyn Welch
Richard Purdie [Tue, 30 Sep 2008 21:11:09 +0000 (21:11 +0000)]
utils.py: Fix error message (from Joshua Lock)
Richard Purdie [Tue, 30 Sep 2008 21:08:24 +0000 (21:08 +0000)]
bin/bitbake: Add better environmental variable handling. By default it will now only pass certain whitelisted variables into the data store. If BB_PRESERVE_ENV is set bitbake will use all variable from the environment. If BB_ENV_WHITELIST is set, that whitelist will be used instead of the internal bitbake one. Alternatively, BB_ENV_EXTRAWHITE can be used to extend the internal whitelist.
Richard Purdie [Tue, 30 Sep 2008 20:41:10 +0000 (20:41 +0000)]
cooker.py: Add parseConfiguration() function and move inheritFromOS call outside the parser and into cooker
Richard Purdie [Tue, 30 Sep 2008 20:28:11 +0000 (20:28 +0000)]
cooker.py: Rename __depends to __base_depends after configuration parsing so we don't recheck the validity of the config files time after time. Also bump the cache revision to match the format change (from poky)
Marcin Juszkiewicz [Tue, 30 Sep 2008 20:19:12 +0000 (20:19 +0000)]
AUTHORS: update my email address
Richard Purdie [Tue, 30 Sep 2008 20:13:00 +0000 (20:13 +0000)]
parse/__init__.py: Fix missing update_mtime function causing shell reparsing breakage (from poky)
Richard Purdie [Tue, 30 Sep 2008 20:10:52 +0000 (20:10 +0000)]
providers.py: Fix PACKAGES_DYNAMIC handling of packages with '++' in the name (from poky)
Richard Purdie [Tue, 30 Sep 2008 20:08:44 +0000 (20:08 +0000)]
BBHandler.py: Backport a small optimisation in PATH handling from trunk
Richard Purdie [Tue, 30 Sep 2008 20:05:51 +0000 (20:05 +0000)]
fetch/hg.py: Fix hg fetcher username/password handling and fix crash
Richard Purdie [Tue, 30 Sep 2008 20:04:19 +0000 (20:04 +0000)]
fetch/__init__.py: Raise an exception if SRCREV == 'INVALID' (from Poky)
Richard Purdie [Tue, 30 Sep 2008 20:01:46 +0000 (20:01 +0000)]
utils.py: Move prunedir function to utils.py and add explode_dep_versions function
Holger Hans Peter Freyther [Sun, 27 Jul 2008 07:30:05 +0000 (07:30 +0000)]
[cvs] Allow to checkout by date and time
With putting YYYYYMMDDHHmm into the SRCDATE bitbake will checkout
using "-D YYYYMMDD HH:mm UTC". Be careful when you switch from SRCDATE
with time and without to always get updatable packages.
Richard Purdie [Sat, 19 Jul 2008 21:12:10 +0000 (21:12 +0000)]
providers.py: Fix indentation errors
Richard Purdie [Sat, 19 Jul 2008 17:58:18 +0000 (17:58 +0000)]
providers.py: When a regexp fails to compile for PACKAGES_DYNAMIC, print a more useful error (#4444)
Richard Purdie [Tue, 10 Jun 2008 09:33:30 +0000 (09:33 +0000)]
Revert the '-' character fix in class names since it breaks things
Richard Purdie [Wed, 21 May 2008 21:26:46 +0000 (21:26 +0000)]
build.py: Make sure expandKeys has been called on the data dictonary before running tasks fixing various strange issues (from poky). Correctly add a task override in the form task-TASKNAME which whilst a change in behaviour shouldn't matter since the original approach didn't work at all
Richard Purdie [Mon, 19 May 2008 20:39:48 +0000 (20:39 +0000)]
manuals: Add missing options documentation (thanks to zecke for noticing and the patch)
Richard Purdie [Mon, 19 May 2008 20:16:03 +0000 (20:16 +0000)]
BBHandler.py: Correctly handle '-' characters in class names (#2958)
Richard Purdie [Mon, 19 May 2008 20:14:22 +0000 (20:14 +0000)]
cooker.py: Make sure Build Completed events are generated even when tasks fail
Richard Purdie [Mon, 12 May 2008 14:21:36 +0000 (14:21 +0000)]
utils.py: Add md5 and sha256 checksum generation functions from Ross Burton (via Poky)
Holger Hans Peter Freyther [Sun, 11 May 2008 13:48:51 +0000 (13:48 +0000)]
Allow to store the PersistData in a PERSISTENT_DIR.
If PERSISTENT_DIR is used wiping the tmpdir will not wipe the PersistData
which sometines is wanted (e.g. for git SRCREVs).
Acked-By: Richard
Richard Purdie [Fri, 9 May 2008 13:12:47 +0000 (13:12 +0000)]
runqueue.py: Add bb.runqueue.check_stamp_fn() for use by packaged-staging, also improve check_stamp_task debug output
Richard Purdie [Fri, 9 May 2008 10:23:19 +0000 (10:23 +0000)]
runqueue/taskdata.py: Make sure recrdeps tasks include all inter-task dependencies of a given fn
Richard Purdie [Fri, 9 May 2008 10:12:27 +0000 (10:12 +0000)]
runqueue.py: Flush stdout/stderr before forking to fix duplicate console output
Richard Purdie [Fri, 9 May 2008 10:08:56 +0000 (10:08 +0000)]
providers.py: No longer weight providers on the basis of a package being "already staged". This leads to builds being non-deterministic.
Richard Purdie [Mon, 5 May 2008 09:22:57 +0000 (09:22 +0000)]
runqueue.py: Fix default whitelist variable value
Richard Purdie [Sun, 4 May 2008 23:01:39 +0000 (23:01 +0000)]
runqueue.py: Add BB_STAMP_WHITELIST option which contains a list of stamps to ignore when checking stamp dependencies and using a BB_STAMP_POLICY of 'whitelist'. Useful for packaged-staging
Richard Purdie [Sun, 4 May 2008 22:58:17 +0000 (22:58 +0000)]
providers.py: Improve runtime PREFERRED_PROVIDERS warning messages to be more user friendly
Richard Purdie [Sun, 27 Apr 2008 12:51:57 +0000 (12:51 +0000)]
fetchers: Tweak the new checkstatus code to handle some corner cases better
Richard Purdie [Sun, 27 Apr 2008 11:09:50 +0000 (11:09 +0000)]
lib/bb/fetch: Add ability to fetchers to check URL validity without downloading
Holger Hans Peter Freyther [Fri, 11 Apr 2008 21:24:29 +0000 (21:24 +0000)]
Patch from John Lee to always use UTC time for checking out files.
I would suggest set cvs fetch in bitbake to always use UTC+0 for this
matter and we set the min and max date according to UTC+0 instead of
our own timezone. Enclosed please find the patch to the bitbake 1.8
branch.
Pretty sane.
Richard Purdie [Tue, 8 Apr 2008 11:36:36 +0000 (11:36 +0000)]
fetch/__init__.py: Improve runfetchcmd so errors are seen and various GIT variables are exported
Richard Purdie [Tue, 8 Apr 2008 10:29:07 +0000 (10:29 +0000)]
fetch/cvs.py Add proxy support to CVS fetcher (patch from Cyril Chemparathy/Poky)
Richard Purdie [Fri, 28 Mar 2008 17:18:42 +0000 (17:18 +0000)]
cache.py: Fix a bug where changed files weren't getting spotted and an invalid cache was being used
Richard Purdie [Mon, 17 Mar 2008 12:21:35 +0000 (12:21 +0000)]
git.py: Work around refs/HEAD issues with git over http (fixes #3410)
Richard Purdie [Thu, 13 Mar 2008 23:32:03 +0000 (23:32 +0000)]
cache.py: Ignore cache load errors and always just rebuild
Richard Purdie [Thu, 13 Mar 2008 22:46:17 +0000 (22:46 +0000)]
cache.py: Improve the way various data structures are handled to speed up the hot cache data path
Richard Purdie [Thu, 13 Mar 2008 22:35:01 +0000 (22:35 +0000)]
cooker.py: Fix a typo breaking -b -c -f combiantion of options
Richard Purdie [Thu, 13 Mar 2008 22:31:01 +0000 (22:31 +0000)]
runqueue.py: Fix problems with recrdeptask handling where some idepends weren't handled correctly
Richard Purdie [Thu, 13 Mar 2008 22:27:20 +0000 (22:27 +0000)]
runqueue.py: Switch to check_stamp code since its simpler than check_stamps and accounts for tasks which adjust other stamps in the system such as packaged staging. The drawback is we can't 'accelerate' task numbers to get an accurate idea of how many tasks will run
Richard Purdie [Thu, 13 Mar 2008 22:21:49 +0000 (22:21 +0000)]
runqueue.py: Fix check_stamps function
Michael 'Mickey' Lauer [Sat, 8 Mar 2008 12:01:06 +0000 (12:01 +0000)]
1.8.x/cooker: backport -f and -b fix from trunk
Richard Purdie [Thu, 6 Mar 2008 10:35:04 +0000 (10:35 +0000)]
taskdata.py: When handling build target failures make sure idepends are checked and failed where needed. Fixes --continue mode crashes.
Richard Purdie [Fri, 29 Feb 2008 23:06:43 +0000 (23:06 +0000)]
cache.py: Bump the cache version since digraph was removed and mayb still be present in old cache files
Richard Purdie [Thu, 28 Feb 2008 22:18:05 +0000 (22:18 +0000)]
build.py: Fix task variable expansion issue
Richard Purdie [Thu, 28 Feb 2008 09:10:47 +0000 (09:10 +0000)]
runqueue.py: Add BB_SCHEDULER and BB_STAMP_POLICY variables
Richard Purdie [Wed, 27 Feb 2008 23:51:25 +0000 (23:51 +0000)]
runqueue.py: Fix recursive looping issue
Richard Purdie [Wed, 27 Feb 2008 23:50:44 +0000 (23:50 +0000)]
fetch/__init__.py: Make fetcher timestamp updating non-fatal when permissions don't allow updates
Richard Purdie [Tue, 26 Feb 2008 17:58:24 +0000 (17:58 +0000)]
Remove digraph and switch to new stamp checking code.
Richard Purdie [Tue, 26 Feb 2008 17:32:00 +0000 (17:32 +0000)]
Convert -b option to use taskdata/runqueue
Richard Purdie [Tue, 26 Feb 2008 17:23:31 +0000 (17:23 +0000)]
runqueue.py: Add StampUpdate event
Richard Purdie [Tue, 26 Feb 2008 17:09:20 +0000 (17:09 +0000)]
shell.py: Update to use cooker.buildFile()
Richard Purdie [Tue, 26 Feb 2008 16:57:08 +0000 (16:57 +0000)]
utils.py: Tweak explode_deps function to remove unused manipulation
Richard Purdie [Sun, 24 Feb 2008 23:37:47 +0000 (23:37 +0000)]
build.py: Remove uneeded mkdirhiercall
Richard Purdie [Sun, 24 Feb 2008 11:35:18 +0000 (11:35 +0000)]
build.py: Convert exec_task to use getVarFlags
Richard Purdie [Sun, 24 Feb 2008 11:31:46 +0000 (11:31 +0000)]
cooker:Remove a debug message from the parsing loop to lower overhead
Richard Purdie [Sun, 24 Feb 2008 11:29:18 +0000 (11:29 +0000)]
cache: Optmise cache handling by more quickly detecting an invalid cache, only saving the cache when its changed, moving the cache validity check into the parsing loop and factoring some getVar calls outside a for loop.
Richard Purdie [Sun, 24 Feb 2008 11:25:23 +0000 (11:25 +0000)]
data_smart: Fix getVarFlags bug in data_smart