bitbake.git
10 years agoInitial switch from distutils to setuptools.
Chris Larson [Wed, 29 Jul 2009 20:26:56 +0000 (13:26 -0700)]
Initial switch from distutils to setuptools.

Signed-off-by: Chris Larson <clarson@kergoth.com>
10 years agoAUTHORS: update my email
Marcin Juszkiewicz [Fri, 24 Jul 2009 18:54:17 +0000 (20:54 +0200)]
AUTHORS: update my email

10 years agocommand/cooker: Remve the need for the cache for -e -b options
Richard Purdie [Thu, 23 Jul 2009 18:51:03 +0000 (19:51 +0100)]
command/cooker: Remve the need for the cache for -e -b options

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocommand/cooker: Improve showEnvironment functionality
Richard Purdie [Thu, 23 Jul 2009 18:43:17 +0000 (19:43 +0100)]
command/cooker: Improve showEnvironment functionality

Allow showEnvironment to function without loading the cache by adding
a second caching version.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocooker: Fix cooker parser for case where there are no recipes
Richard Purdie [Thu, 23 Jul 2009 18:33:18 +0000 (19:33 +0100)]
cooker: Fix cooker parser for case where there are no recipes

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoUpdate the minimal base.bbclass & bitbake.conf.
Chris Larson [Thu, 23 Jul 2009 17:44:55 +0000 (10:44 -0700)]
Update the minimal base.bbclass & bitbake.conf.

I could argue in favor of the removal of these entirely, as their usefulness
is limited, and I've yet to see anyone use bitbake for anything without using
OE as a base.  It's something to consider, anyway, but this at least makes
them parse without complaining.

Signed-off-by: Chris Larson <clarson@mvista.com>
10 years agorunqueue: Improve recursive task dependency calculation speed (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:58:56 +0000 (17:58 +0100)]
runqueue: Improve recursive task dependency calculation speed (from Poky)

At present there is a bottleneck in runqueue in the
get_recursive_tdepends() function which bothers me as we never used to
have it. It appeared when we fixed some correctness issues with the
dependency tree and the code in this area has grown adhoc for too long.

As an example the above function was getting called 500,000 times in my
main test case of building an image. Its particularly problematic in
builds with many recursive dependencies such as 'bitbake world'.

This commit rewrites the problematic function entirely with the
following benefits:

* Replaces the most illegible code in that function with code thats
  easier to understand
* Builds the dependency tree per filename, not per task since we don't
  need it per task which is a performance win
* Improves the documentation in places
* Much faster execution
* Reuses the main dependency tree data, doesn't make its own.

The code functions very differently to the original. Previously the
recursive dependency tree and the main dependency tree were separate. In
this implementation we use the main tree to build the recursive tree
after the main tree has been completed, then inject the dependencies.

Compared with the original this actually inserts small numbers (4 in my
test cases) of additional dependencies into the task graph such as
image_recipe:do_rootfs -> image_recipe:do_package_write_ipk which is
arguably an bug in the existing implementation. I've checked into this,
understand why its happening and believe none of the additional
dependencies should cause any complications.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agobin/bitbake: Add python 2.6 check (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:56:42 +0000 (17:56 +0100)]
bin/bitbake: Add python 2.6 check (from Poky)

Now we need python 2.6 check for it otherwise bitbake appears to hang.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agocooker.py: Improve server idle handling (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:53:32 +0000 (17:53 +0100)]
cooker.py: Improve server idle handling (from Poky)

This patch:
  * Uses the xmlrpc timeout controls added in python 2.6 removing the need to
    hack the class instead. The hacking didn't work for 2.6.
  * Converts the parsing function to parse a file per call to the function
  * Allows checking for xmlrpc commands between parsing files allowing the user
    to interrupt parsing.
  * Starts to teach the command queue about command properties such as whether
    they require the cache.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoproviders.py: Add caching for the dynamic package regexps (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:48:18 +0000 (17:48 +0100)]
providers.py: Add caching for the dynamic package regexps (from Poky)

Add caching for the dyanmic package regexps which improves task data
performance significantly.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoutils.py: Add build_environment function (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:46:20 +0000 (17:46 +0100)]
utils.py: Add build_environment function (from Poky)

Add a function to bring the command environment in sync with the data
dictonary.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoui/puccho: Improve path specification to glade files (from Poky)
Richard Purdie [Thu, 23 Jul 2009 16:45:22 +0000 (17:45 +0100)]
ui/puccho: Improve path specification to glade files (from Poky)

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
10 years agoAdd .gitignore, ignore *.pyc.
Chris Larson [Wed, 22 Jul 2009 18:12:27 +0000 (11:12 -0700)]
Add .gitignore, ignore *.pyc.

Signed-off-by: Chris Larson <clarson@mvista.com>
10 years agotaskdata: fix a possible infinite loop when multiple eligible providers aren't buildable
Chris Larson [Fri, 17 Jul 2009 22:26:45 +0000 (15:26 -0700)]
taskdata: fix a possible infinite loop when multiple eligible providers aren't buildable

The code which removes providers which aren't buildable from the eligible list
modifies the list while iterating it, resulting in skipping some entries.  If
the list contained two failed providers in sequence, it left the second behind
in the eligible list.

Fixed by replacing the block with a list comprehension that constructs a new
eligible list without the failed entries.

Signed-off-by: Chris Larson <clarson@mvista.com>
10 years agoMerge the BBCLASSEXTEND code from Poky. This allows once recipe to provide mutliple...
Richard Purdie [Fri, 19 Jun 2009 10:30:15 +0000 (10:30 +0000)]
Merge the BBCLASSEXTEND code from Poky. This allows once recipe to provide mutliple targets (e.g. -native and -sdk) and has been discussed on the OE mailing list

11 years agoproviders.py: Fix + character escaping from PACKAGES_DYNAMIC (thanks Otavio Salvador)
Richard Purdie [Tue, 12 May 2009 14:29:20 +0000 (14:29 +0000)]
providers.py: Fix + character escaping from PACKAGES_DYNAMIC (thanks Otavio Salvador)

11 years agodata.py: Make sure allowed variables inherited from the environment are exported...
Richard Purdie [Mon, 11 May 2009 21:49:13 +0000 (21:49 +0000)]
data.py: Make sure allowed variables inherited from the environment are exported again (from Poky)
shell.py: When running a stage task in bbshell, run populate_staging, not the stage task (from Poky)

11 years agofetch/__init__.py: Set HOME environmental variable when running fetcher commands...
Richard Purdie [Mon, 11 May 2009 21:33:14 +0000 (21:33 +0000)]
fetch/__init__.py: Set HOME environmental variable when running fetcher commands (from Poky)

11 years agofetch/git.py: Add username handling to git fetcher (from Poky)
Richard Purdie [Mon, 11 May 2009 21:31:17 +0000 (21:31 +0000)]
fetch/git.py: Add username handling to git fetcher (from Poky)

11 years agofetch/wget.py: Fix wget fetching of urls with parameters specified (from Poky)
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)

11 years agofetch/hg.py: Fix hg checkouts of specific revisions (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)

11 years ago[bb] Remove unused imports reported by pyflakes
Holger Hans Peter Freyther [Mon, 11 May 2009 06:13:07 +0000 (06:13 +0000)]
[bb] Remove unused imports reported by pyflakes

11 years ago[ui] Fix import statements reported by pyflakes
Holger Hans Peter Freyther [Mon, 11 May 2009 06:13:00 +0000 (06:13 +0000)]
[ui] Fix import statements reported by pyflakes

We ignore the following kind of warnings
    import gtk
    import gtk.glade...

as glade is not imported by default and need that extra line,
pyflakes does not know...

11 years ago[svk] pyflakes things the go method is broken...
Holger Hans Peter Freyther [Mon, 11 May 2009 06:12:55 +0000 (06:12 +0000)]
[svk] pyflakes things the go method is broken...

Is anyone still using svk? I don't want to mess with this code
when it might work (due a global) but I might break it... my guess
is that is supposed to be ud.date.

11 years ago[fetchers] Make pyflakes happy by removing these import statements
Holger Hans Peter Freyther [Mon, 11 May 2009 06:12:40 +0000 (06:12 +0000)]
[fetchers] Make pyflakes happy by removing these import statements

We don't use the modules, no need to import them here.

11 years ago[bb] Fix the tests by setting a debug level at start
Holger Hans Peter Freyther [Mon, 11 May 2009 04:30:12 +0000 (04:30 +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.

11 years agolib: remove use of 'sets' to make Python 2.6 happy
Marcin Juszkiewicz [Tue, 21 Apr 2009 19:15:53 +0000 (19:15 +0000)]
lib: remove use of 'sets' to make Python 2.6 happy

Acked-by: Chris Larson <clarson@kergoth.com>
11 years agobb.fetch.go: iterate over SRC_URI, not urldata.
Chris Larson [Fri, 17 Apr 2009 23:14:05 +0000 (23:14 +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>
11 years agobb.fetch.git: make empty host pass a file uri to git.
Chris Larson [Fri, 17 Apr 2009 23:13:54 +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>
11 years agobb.fetch: make try_mirror go through the dispatcher rather than using wget directly.
Chris Larson [Fri, 17 Apr 2009 16:18:26 +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>
11 years agoMake the bbpath change for includes temporary rather than permanent.
Chris Larson [Wed, 8 Apr 2009 17:35:38 +0000 (17:35 +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>
11 years agoBBMASK: survive a non-existant path and don't keep the dir after globbing.
Chris Larson [Wed, 8 Apr 2009 17:35:19 +0000 (17:35 +0000)]
BBMASK: survive a non-existant path and don't keep the dir after globbing.

Signed-off-by: Chris Larson <clarson@mvista.com>
11 years agoBBPKGS: act as a default that can be overridden via the cmdline.
Chris Larson [Wed, 8 Apr 2009 17:35:05 +0000 (17:35 +0000)]
BBPKGS: act as a default that can be overridden via the cmdline.

Signed-off-by: Chris Larson <clarson@mvista.com>
11 years agoClean up by Otavio Salvador
Holger Hans Peter Freyther [Thu, 26 Feb 2009 17:58:06 +0000 (17:58 +0000)]
Clean up by Otavio Salvador

11 years agocache.py: Simplfy logic (from Poky)
Richard Purdie [Sat, 3 Jan 2009 00:00:37 +0000 (00:00 +0000)]
cache.py: Simplfy logic (from Poky)

11 years agoBBHandler: Move handler finalisation code into a separate function
Richard Purdie [Fri, 2 Jan 2009 23:52:02 +0000 (23:52 +0000)]
BBHandler: Move handler finalisation code into a separate function

11 years agoutils.py: Add bb.utils.prune_suffix function
Richard Purdie [Fri, 2 Jan 2009 17:26:01 +0000 (17:26 +0000)]
utils.py: Add bb.utils.prune_suffix function

11 years agoTag BitBake 1.8.12 (update versions, MANIFEST, ChangeLog)
Holger Hans Peter Freyther [Sun, 14 Dec 2008 20:07:11 +0000 (20:07 +0000)]
Tag BitBake 1.8.12 (update versions, MANIFEST, ChangeLog)

11 years agoAdd puccho, goggle and crumbs metadata from Poky (by Robert Bradford)
Richard Purdie [Sat, 6 Dec 2008 13:18:19 +0000 (13:18 +0000)]
Add puccho, goggle and crumbs metadata from Poky (by Robert Bradford)

11 years agobin/bitbake: Fix cooker log handling after recent changes
Richard Purdie [Sat, 6 Dec 2008 13:13:58 +0000 (13:13 +0000)]
bin/bitbake: Fix cooker log handling after recent changes

11 years agocooker.py: Rearrange the code to allow init of new UIs
Richard Purdie [Sat, 6 Dec 2008 13:09:42 +0000 (13:09 +0000)]
cooker.py: Rearrange the code to allow init of new UIs

11 years agoshell.py: Catch up with core changes
Richard Purdie [Sat, 6 Dec 2008 13:04:01 +0000 (13:04 +0000)]
shell.py: Catch up with core changes

11 years agoUpdate the UIs against the core changes and allow dynamic loading of the UI so UIs...
Richard Purdie [Sat, 6 Dec 2008 13:03:19 +0000 (13:03 +0000)]
Update the UIs against the core changes and allow dynamic loading of the UI so UIs become truly plugable.

11 years agoRename depexplorer -> depexp for consistency
Richard Purdie [Sat, 6 Dec 2008 12:59:55 +0000 (12:59 +0000)]
Rename depexplorer -> depexp for consistency

11 years agocommand.py: Standardise to getVariable and setVariable functions for consistent naming
Richard Purdie [Sat, 6 Dec 2008 12:58:29 +0000 (12:58 +0000)]
command.py: Standardise to getVariable and setVariable functions for consistent naming

11 years agoPass around the tasks to execute rather than using magic variables. Also use the...
Richard Purdie [Sat, 6 Dec 2008 12:57:17 +0000 (12:57 +0000)]
Pass around the tasks to execute rather than using magic variables. Also use the empty_environment() function to clear the environment

11 years agoutils.py: Add empty_environment() function and call this from the cooker instead...
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)

11 years agofetch/__init__.py: export more variables to the fetcher commands to allow ssh checkou...
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)

11 years agowget.py: Add support for HTTP_PROXY and HTTP_PROXY_IGNORE variables to the wget fetcher
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

11 years agoutils.py: Add clean_environment() function and call where appropriate (from Poky)
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)

11 years agoBBHandler: Improve file not fuond error message
Richard Purdie [Sat, 6 Dec 2008 12:16:38 +0000 (12:16 +0000)]
BBHandler: Improve file not fuond error message

11 years agogit.py: Add username handling to the git fetcher (Robert Bragg from Poky)
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)

11 years agoutils.py: Improve lock file function error handling (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)

11 years agoproviders.py: Fix typos and add some further debug which can occassionaly be useful...
Richard Purdie [Sat, 6 Dec 2008 12:06:47 +0000 (12:06 +0000)]
providers.py: Fix typos and add some further debug which can occassionaly be useful for debugging problems

11 years agoevent.py: Remove the Pkg* events, the make no sense in the task based model bitbake...
Richard Purdie [Sat, 6 Dec 2008 12:05:19 +0000 (12:05 +0000)]
event.py: Remove the Pkg* events, the make no sense in the task based model bitbake now uses (From Rob Bradford in Poky)

11 years agocooker.py: Pass the task to run to tryBuild directly, don't use self.configuration...
Richard Purdie [Sat, 6 Dec 2008 12:03:51 +0000 (12:03 +0000)]
cooker.py: Pass the task to run to tryBuild directly, don't use self.configuration.cmd (From Rob Bradford in Poky)

11 years agorunqueue.py: Fire the task started event from the worker process, not the server...
Richard Purdie [Sat, 6 Dec 2008 12:01:36 +0000 (12:01 +0000)]
runqueue.py: Fire the task started event from the worker process, not the server so the pid field is useful (from Rob Bradford in Poky)

11 years agoAdd the pid to the event messages so we can identify which worker events come from...
Richard Purdie [Sat, 6 Dec 2008 12:00:15 +0000 (12:00 +0000)]
Add the pid to the event messages so we can identify which worker events come from (From Rob Bradford in Poky)

11 years agoRename online/offline to sync/async for less confusion (from Rob Bradford in Poky)
Richard Purdie [Sat, 6 Dec 2008 11:57:41 +0000 (11:57 +0000)]
Rename online/offline to sync/async for less confusion (from Rob Bradford in Poky)

11 years agobuild.py: Add better debug to exec_func_python when python function execution fails...
Richard Purdie [Sat, 6 Dec 2008 11:52:21 +0000 (11:52 +0000)]
build.py: Add better debug to exec_func_python when python function execution fails from Poky)

11 years agoAdd tryaltconfigs option to control whether bitbake trys using alternative providers...
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).

11 years agoWhen SRCREV autorevisioning for a recipe is in use, don't cache the recipe (from...
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)

11 years agoAdd osc fetcher (from Joshua Lock in Poky)
Richard Purdie [Sat, 6 Dec 2008 11:32:59 +0000 (11:32 +0000)]
Add osc fetcher (from Joshua Lock in Poky)

11 years ago[svn] Add @rev to svn checkout command
Holger Hans Peter Freyther [Mon, 3 Nov 2008 12:50:35 +0000 (12:50 +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.

11 years agocache: not existing cache file is not out of date
Marcin Juszkiewicz [Mon, 27 Oct 2008 13:39:22 +0000 (13:39 +0000)]
cache: not existing cache file is not out of date

11 years agotaskdata: improved error message when BitBake is called with not existing target
Marcin Juszkiewicz [Mon, 27 Oct 2008 13:38:52 +0000 (13:38 +0000)]
taskdata: improved error message when BitBake is called with not existing target

11 years agofetch/hg.py: Properly format the command if the user URI parameter is empty.
Holger Hans Peter Freyther [Sun, 26 Oct 2008 16:50:02 +0000 (16:50 +0000)]
fetch/hg.py: Properly format the command if the user URI parameter is empty.

11 years agocooker.py: Fix an init problem (from poky)
Richard Purdie [Mon, 20 Oct 2008 14:10:09 +0000 (14:10 +0000)]
cooker.py: Fix an init problem (from poky)

11 years agorunqueue.py: Fix nostamp flag handling (from Poky)
Richard Purdie [Mon, 20 Oct 2008 14:07:13 +0000 (14:07 +0000)]
runqueue.py: Fix nostamp flag handling (from Poky)

11 years ago[fetch] Always add PN to the _revision_key we get from the fetcher
Holger Hans Peter Freyther [Mon, 13 Oct 2008 12:54:01 +0000 (12:54 +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.

11 years ago[git] Do not run git-rev-list everytime to increase the speed
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:14:10 +0000 (22:14 +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.

11 years ago[git] Optionally use git-rev-list to get a sortable revision
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:14:09 +0000 (22:14 +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.

11 years ago[git] Do not git-fetch if we already have the rev we want
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:14:08 +0000 (22:14 +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

11 years ago[git] Disable downloading of checkouts.
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:14:08 +0000 (22:14 +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.

11 years agoAllow to conditionally implement sortable revision in the fetcher
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:14:07 +0000 (22:14 +0000)]
Allow to conditionally implement sortable revision in the fetcher

11 years agoMake the revision key unique by adding the PN
Holger Hans Peter Freyther [Sun, 12 Oct 2008 22:02:23 +0000 (22:02 +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.

11 years ago[bb.utils] Make prunedir cope with symlinks to directories
Holger Hans Peter Freyther [Wed, 8 Oct 2008 01:48:01 +0000 (01:48 +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:

11 years agofetch/perforce.py: Fix to use commandline options instead of being overriden by the...
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

11 years agoutils.py: Fix error message (from Joshua Lock)
Richard Purdie [Tue, 30 Sep 2008 21:11:09 +0000 (21:11 +0000)]
utils.py: Fix error message (from Joshua Lock)

11 years agobin/bitbake: Add better environmental variable handling. By default it will now only...
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.

11 years agocooker.py: Add parseConfiguration() function and move inheritFromOS call outside...
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

11 years agocooker.py: Rename __depends to __base_depends after configuration parsing so we don...
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)

11 years agoAUTHORS: update my email address
Marcin Juszkiewicz [Tue, 30 Sep 2008 20:19:12 +0000 (20:19 +0000)]
AUTHORS: update my email address

11 years agoparse/__init__.py: Fix missing update_mtime function causing shell reparsing breakage...
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)

11 years agoproviders.py: Fix PACKAGES_DYNAMIC handling of packages with '++' in the name (from...
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)

11 years agofetch/hg.py: Fix hg fetcher username/password handling and fix crash
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

11 years agofetch/__init__.py: Raise an exception if SRCREV == 'INVALID' (from Poky)
Richard Purdie [Tue, 30 Sep 2008 20:04:19 +0000 (20:04 +0000)]
fetch/__init__.py: Raise an exception if SRCREV == 'INVALID' (from Poky)

11 years agoutils.py: Move prunedir function to utils.py and add explode_dep_versions function
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

11 years agoVim syntax:
Chris Larson [Thu, 11 Sep 2008 17:51:05 +0000 (17:51 +0000)]
Vim syntax:
- Highlight variable expansions as PreProc, both the braces & the contents.
- Highlight inline python (${@...}) as PreProc for the braces and as actual
  python inside.

11 years ago[cvs] Allow to checkout by date and time
Holger Hans Peter Freyther [Sun, 27 Jul 2008 07:44:26 +0000 (07:44 +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.

11 years agoproviders.py: Fix indentation errors
Richard Purdie [Sat, 19 Jul 2008 21:12:10 +0000 (21:12 +0000)]
providers.py: Fix indentation errors

11 years agoproviders.py: When a regexp fails to compile for PACKAGES_DYNAMIC, print a more usefu...
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)

11 years agoRevert the '-' character fix in class names since it breaks things
Richard Purdie [Tue, 10 Jun 2008 09:33:30 +0000 (09:33 +0000)]
Revert the '-' character fix in class names since it breaks things

12 years agobuild.py: Make sure expandKeys has been called on the data dictonary before running...
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

12 years agomanuals: Add missing options documentation (thanks to zecke for noticing and the...
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)

12 years agoBBHandler.py: Correctly handle '-' characters in class names (#2958)
Richard Purdie [Mon, 19 May 2008 20:16:03 +0000 (20:16 +0000)]
BBHandler.py: Correctly handle '-' characters in class names (#2958)

12 years agoutils.py: Add md5 and sha256 checksum generation functions from Ross Burton (via...
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)

12 years agoAllow to store the PersistData in a PERSISTENT_DIR.
Holger Hans Peter Freyther [Sun, 11 May 2008 13:45:48 +0000 (13:45 +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
12 years agorunqueue.py: Add bb.runqueue.check_stamp_fn() for use by packaged-staging, also impro...
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

12 years agorunqueue/taskdata.py: Make sure recrdeps tasks include all inter-task dependencies...
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