]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
14 years agoglib-2.0: upgrade to 2.24.1
Kevin Tian [Fri, 25 Jun 2010 07:07:01 +0000 (15:07 +0800)]
glib-2.0: upgrade to 2.24.1

(borrow from OE 2.24.0, with study about reason for detail changes)
[Patches-Poky]
    KEEP     _configure-libtool.patch_: fix cross-build env
    REMOVE   _glibconfig-sysdefs.h_: introduced in glib-1.2.10, which is actually
                                     not valid today
    KEEP     _glib-gettexize-dir.patch_: another quite old patch added before 2.10.3
                                         add history info, and mark for upstream
[Patches-OE]
    NOTAKE   _gio.patch_: a private extension for a window matching library (wncksync)
    NOTAKE   _gvavriant.patch_: in 2.24.1 now
    NOTAKE   _gasync.patch_: in 2.24.1 now
    TAKE     _60_wait-longer-for-threads-to-die.patch: said to fix anonying warning
    TAKE     _gatomic-proper-get-cast.patch_: fix error about type casting. Instead of
             using OE's patch, I found a better one from latest repo
    NOTAKE   _g_once_init_enter.patch_: in OE since 2.22.1, not quite sure of its purpose,
             also it's not in upstream yet

[Recipe]
    - fix metadata
    - keep glib-2.inc which is for python optimization
    - remove PRIORITY since 'optional' is the default
    - no need to specially install glibconfig.h in ad hoc path, which is only relied
      by 'obexpush' which poky doesn't have and can be fixed in 'obexpush' itself as
      what OE does
    - no need to manually create glib2.0/glib, which is handled by current code
    - remove 'acpaths' which only applies to versions before 2.12.4
    - below lines are not taken from OE
        * glib-mkenums tweaks, which exists in OE for a long time but never in poky.
          since there's no way to find out original commit, keep poky's style instead.
        * host libtool check. not sure about its purpose, and it's also in OE for quite
          long time

Signed-off-by Kevin Tian <kevin.tian@intel.com>

14 years agosudo: upgrade to 1.7.2p7
Kevin Tian [Tue, 22 Jun 2010 03:33:06 +0000 (11:33 +0800)]
sudo: upgrade to 1.7.2p7

Old 1.6.8p12 is quite old, even w/o source available now (only cached in pokylinux).
[Patches-Poky]
    KEEP     _autofoo.patch_: deal with bunch of autotool warnings/errors, more about
                              underquotes. In 1.7.2p7, those error conditions disappear.
                              But the underquotes fix is still valid to remove a bunch
                              of autoconf warnings

    REMOVE   _autofoo1.patch_: copy of autofoo.patch. no one uses it. REMOVE.

    KEEP     _noexec-link.patch_: use "-module" to avoid libtool complaining about not
                                  starting with "lib". Add comment to the patch file.

    DISABLE  _nostrip.patch_: it's wrong to strip target binaries on build host. Borrow
                              from OE to use 'sed' instead of patch, but keept it for
                              remind to upstream

    REMOVE   _nonrootinstall.patch_: handle mode/owner population at install. It's not
                                     requried at all since there's pkg_postinst to handle
                                     it at right stage

Other misc stuff:
    - update metadata information
    - no need to use ${S} in 1.7.2p7
    - fix idention
    - use sed to disable strip
    - changes from OE:
        * disable PAM as our pam doesn't include necessary config files and plugs
        * no need to special sudo_cv_uid_t_len tweak in the recipe. It's already there
          in poky site files for a long time
        * move sudo_cv_func_unsetenv_void to meta/site/common. Stdlib.h is common across
          architectures in our libc headers, which conforms to POSIX standard

(borrow from openembedded 1.7.2p4)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
14 years agobitbake: Fix handling of empty variables in local config files
Richard Purdie [Thu, 1 Jul 2010 22:54:13 +0000 (23:54 +0100)]
bitbake: Fix handling of empty variables in local config files

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd a warning if a BBFILE_PATTERN doesn't match any bb files
Chris Larson [Thu, 24 Jun 2010 17:53:36 +0000 (10:53 -0700)]
Add a warning if a BBFILE_PATTERN doesn't match any bb files

Likely cause is, of course, typo in the pattern or incorrect BBFILES, so we
should warn the user about this.

(Bitbake rev: b781317b5006bc047a59e7fa3c93344115e78ccb)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years ago3.0 prep
Chris Larson [Sun, 20 Jun 2010 19:07:34 +0000 (12:07 -0700)]
3.0 prep

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoApply some 2to3 refactorings
Chris Larson [Sun, 20 Jun 2010 19:08:07 +0000 (12:08 -0700)]
Apply some 2to3 refactorings

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop a couple usages of readlines
Chris Larson [Fri, 18 Jun 2010 14:56:55 +0000 (07:56 -0700)]
Drop a couple usages of readlines

(Bitbake rev: 40925230781ddd550bf21d90714c5349f9240a51)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoUntil the interactive mode is fixed, kill it from the valid options, to avoid confusion
Chris Larson [Fri, 18 Jun 2010 15:07:51 +0000 (08:07 -0700)]
Until the interactive mode is fixed, kill it from the valid options, to avoid confusion

(Bitbake rev: 65a51bb20677148a29b9e472f6d9d0a97798f024)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix syntax error in shell.py
Chris Larson [Fri, 18 Jun 2010 15:06:37 +0000 (08:06 -0700)]
Fix syntax error in shell.py

(Bitbake rev: 1bddc77268e57e236c274fd91c889ea00a13891b)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd missing 'return False' to the SystemExit handler in runAsyncCommand
Chris Larson [Sat, 19 Jun 2010 00:31:37 +0000 (17:31 -0700)]
Add missing 'return False' to the SystemExit handler in runAsyncCommand

(Bitbake rev: 966490c555cbdc09f52e1dcc68d3772c28ad9cee)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove serverConnection.terminate() back into the finally
Chris Larson [Fri, 18 Jun 2010 16:21:31 +0000 (09:21 -0700)]
Move serverConnection.terminate() back into the finally

(Bitbake rev: 58e1b0a5dbd0f1ca137ad7ed1bd7ad9975a20fb7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoLimit the traceback length in the default exception handler
Chris Larson [Thu, 17 Jun 2010 20:52:53 +0000 (13:52 -0700)]
Limit the traceback length in the default exception handler

(Bitbake rev: 2b9dc5b55e24b4946ff03bf30ca52a48547caaad)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoSwitch from our own 'dummywrite' class to StringIO
Chris Larson [Wed, 16 Jun 2010 13:53:24 +0000 (06:53 -0700)]
Switch from our own 'dummywrite' class to StringIO

(Bitbake rev: f5b7e16adf86950d91a88a343031e71beb0f08a6)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoSwitch a fatal usage to SystemExit ("T" not set)
Chris Larson [Thu, 10 Jun 2010 16:14:39 +0000 (09:14 -0700)]
Switch a fatal usage to SystemExit ("T" not set)

This failure is one the *user* needs to see, as it may have to do with their
setup, but where they don't need to see a traceback and all, since they're not
developers, so I think SystemExit is appropriate here.

(Bitbake rev: e3cc9bc7b6ef1a2eca78235790a051329bceb9a4)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoResurrect the excepthook, this time just sending the info with bb.fatal
Chris Larson [Wed, 16 Jun 2010 17:15:08 +0000 (10:15 -0700)]
Resurrect the excepthook, this time just sending the info with bb.fatal

(Bitbake rev: 07757a1bf1129cc6a967a7cf1815d3d46a6bbdcf)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoremove return in finally statement
Cliff Brake [Wed, 16 Jun 2010 00:29:54 +0000 (17:29 -0700)]
remove return in finally statement

causes exceptions to not be handled after the finally statement

(Bitbake rev: 1a04610dea376340b9ea4c109f64995b4fd6ad02)

Signed-off-by: Cliff Brake <cbrake@bec-systems.com>
Signed-off-by: Chris Larson <clarson@kergoth.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocooker: Kill __getitem__ usage on exception objects (python 3 prep)
Chris Larson [Thu, 10 Jun 2010 22:09:55 +0000 (15:09 -0700)]
cooker: Kill __getitem__ usage on exception objects (python 3 prep)

(Bitbake rev: 1239df8b82ddcd607630da5a888ca83051a22fa8)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoHandle SystemExit and KeyboardInterrupt sanely when executing a command
Chris Larson [Thu, 10 Jun 2010 17:21:41 +0000 (10:21 -0700)]
Handle SystemExit and KeyboardInterrupt sanely when executing a command

(Bitbake rev: 17f40d036814e4abf6d87363fff7823c8c85c298)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop unnecessarly duplicated messages wrt FuncFailed
Chris Larson [Thu, 10 Jun 2010 17:36:06 +0000 (10:36 -0700)]
Drop unnecessarly duplicated messages wrt FuncFailed

(Bitbake rev: 9ec9c0e560d4fa6df74a90f598f9db92713525a2)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoknotty: use the future division to prep for 3.x
Chris Larson [Thu, 10 Jun 2010 17:23:03 +0000 (10:23 -0700)]
knotty: use the future division to prep for 3.x

(Bitbake rev: bd0edc19f691146e748b91255be7a5788a070de6)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoKill the unnecessary setVarFlag debugging message
Chris Larson [Thu, 10 Jun 2010 17:36:19 +0000 (10:36 -0700)]
Kill the unnecessary setVarFlag debugging message

(Bitbake rev: ef8475796fbab4f76a72bbc106da4c35e3afe2e1)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoknotty: stop freaking out and dying when bb.build has removed the empty logfile
Chris Larson [Thu, 10 Jun 2010 17:44:20 +0000 (10:44 -0700)]
knotty: stop freaking out and dying when bb.build has removed the empty logfile

(Bitbake rev: 2197182fe5837d74f1499c644e882e87cf035238)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoUse bb.utils.mkdirhier in bb.cache to shut up the pending deprecation warning
Chris Larson [Thu, 10 Jun 2010 16:46:02 +0000 (09:46 -0700)]
Use bb.utils.mkdirhier in bb.cache to shut up the pending deprecation warning

(Bitbake rev: 0c885752d69e4108e2960d59ec1bd6c911dd141a)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoUse PendingDeprecationWarning for functions moved from bb to bb.utils
Chris Larson [Thu, 10 Jun 2010 16:43:39 +0000 (09:43 -0700)]
Use PendingDeprecationWarning for functions moved from bb to bb.utils

This is necessary, as there has not yet been a release with the bb.utils
versions in place.  We can't show them a deprecation warning when they can't
safely change it yet.  Show a PendingDeprecationWarning until 1.10 releases
and OE requires it, then we can move to DeprecationWarning.

(Bitbake rev: 43700fa1ca1d2635de4ed46110057cb164ee82d1)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoStart ditching fatal() calls in favor of raising appropriate exceptions
Chris Larson [Thu, 10 Jun 2010 14:47:16 +0000 (07:47 -0700)]
Start ditching fatal() calls in favor of raising appropriate exceptions

(Bitbake rev: 681b73fcc04e22e692ed61650ad53c800b64cace)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop the non-debug traceback suppressor, at this point I think it does more harm...
Chris Larson [Thu, 10 Jun 2010 15:05:33 +0000 (08:05 -0700)]
Drop the non-debug traceback suppressor, at this point I think it does more harm than good

(Bitbake rev: 2c66ddc2713061ba31363ea69c24944f4a7cd3a8)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoChange wget fetcher to use the runfetchcmd
Ryan Phillips [Tue, 8 Jun 2010 19:20:55 +0000 (14:20 -0500)]
Change wget fetcher to use the runfetchcmd

* Fixes proxy support to honor standard proxy environment variables.
* Quote environment variables

(Bitbake rev: f84f382f340d6db15b9e5afb8c7c93969249a958)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoShow a traceback when a task fails due to an exception
Chris Larson [Thu, 10 Jun 2010 02:26:21 +0000 (19:26 -0700)]
Show a traceback when a task fails due to an exception

(Bitbake rev: 5bb24832761bd518cb0249125f67939e0cbd0998)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoparser: fix harmless typo in variable name
Bernhard Reutner-Fischer [Wed, 9 Jun 2010 16:06:57 +0000 (18:06 +0200)]
parser: fix harmless typo in variable name

s/absolsute/absolute/

(Bitbake rev: 837c84ce47c298316b941a5f3d2479bd2643686b)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix the silent exit when the specified task doesn't exist
Chris Larson [Wed, 9 Jun 2010 00:03:34 +0000 (17:03 -0700)]
Fix the silent exit when the specified task doesn't exist

(Bitbake rev: 2b64afa107dc24db510d0001b6eb58f0d5913d2f)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove the output of no provider and multiple provider messages into the UI
Chris Larson [Tue, 8 Jun 2010 20:20:35 +0000 (13:20 -0700)]
Move the output of no provider and multiple provider messages into the UI

(Bitbake rev: 36b980c16bf74b3c2066cc120f9f27e11f189a63)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoReorganize the main exception handling so an attribute exception raised in the ui...
Chris Larson [Tue, 8 Jun 2010 19:28:36 +0000 (12:28 -0700)]
Reorganize the main exception handling so an attribute exception raised in the ui isn't misinterpreted

(Bitbake rev: 49b8bab706c59e93287f8540187b62ba3ece0a11)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMake knotty ignore the NoProvider event
Chris Larson [Tue, 8 Jun 2010 18:42:49 +0000 (11:42 -0700)]
Make knotty ignore the NoProvider event

(Bitbake rev: e07f759dae96c0819c35bb67e1da18ca361bb584)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDon't tell the user we're sending SIGINT to the remaining 0 tasks
Chris Larson [Tue, 8 Jun 2010 15:01:16 +0000 (08:01 -0700)]
Don't tell the user we're sending SIGINT to the remaining 0 tasks

(Bitbake rev: 0b963e52eca0447d5bbfc87d826ad662fe940381)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocooker: use time.strftime() instead of spawing sh with date
Bernhard Reutner-Fischer [Mon, 7 Jun 2010 18:50:05 +0000 (20:50 +0200)]
cooker: use time.strftime() instead of spawing sh with date

time.strftime() defaults to using time.localtime(), use that instead
of spawning "sh -c 'date +<FMT>'"

(Bitbake rev: ec1f2773b4811b3beb52710120bb5a9b215c174e)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdjust the exception handling based on Cliff Brake's patch
Chris Larson [Fri, 4 Jun 2010 23:44:07 +0000 (16:44 -0700)]
Adjust the exception handling based on Cliff Brake's patch

Rather than printing the exception ourselves, might as well re-raise and let
the default exception handler do it for us.

(Bitbake rev: acca7eb8450cbe30d65b5b266f1a642e7965df8a)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix a couple typos in the CVS Fetcher section.
Robert P. J. Day [Thu, 3 Jun 2010 09:58:09 +0000 (05:58 -0400)]
Fix a couple typos in the CVS Fetcher section.

"DL_DIRS" -> "DL_DIR"
Remove superfluous trailing ">" after CVSDIR.

(Bitbake rev: 34f396e749303367e657911bf10c43086dff7552)

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocache: do not chdir unnecessarily
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:42 +0000 (14:04 +0200)]
cache: do not chdir unnecessarily

previously we called chdir() twice for every target, this patch reduces
the amount of chdir() calls via openembedded master from some 16000 to
4.

(Bitbake rev: fa45f5625e13a82bec70d5f10815f52fbe705166)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agopersist_data: cache connection and use cursor
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:41 +0000 (14:04 +0200)]
persist_data: cache connection and use cursor

Store database connection to persistent database in fetcher.

(Bitbake rev: 8a6876752b90efd81d92f0947bfc9527d8260969)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocache: use a set() for __depends
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:40 +0000 (14:04 +0200)]
cache: use a set() for __depends

to make updating depends easier/more intuitive/eventually faster

(Bitbake rev: f7c69462b8ba726861898817cc5b13174c78e35a)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocache: use max() to determine newest_mtime
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:39 +0000 (14:04 +0200)]
cache: use max() to determine newest_mtime

(Bitbake rev: c0cf85beda4cf8748fd270c037442cde7b98146b)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocache: use os.path ops instead of stat
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:38 +0000 (14:04 +0200)]
cache: use os.path ops instead of stat

(Bitbake rev: 09fe0d403c75229931c10eabc7eecc0dc60058fe)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMake the file not found error actually useable.
Chris Larson [Fri, 4 Jun 2010 20:10:00 +0000 (13:10 -0700)]
Make the file not found error actually useable.

(Bitbake rev: 1cfcbee014478eb129ed382c13622317412b036e)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agofetch: commentary typo fix in fetcher_init()
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:37 +0000 (14:04 +0200)]
fetch: commentary typo fix in fetcher_init()

(Bitbake rev: b786f1f60fb50565295e7c8e979b471327d924f3)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agocache: fix typo in error message of cacheValidUpdate()
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:36 +0000 (14:04 +0200)]
cache: fix typo in error message of cacheValidUpdate()

(Bitbake rev: 9937d5992d72104c670e069f4c46cc62a490e18f)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agofetch: documentation typo fix
Bernhard Reutner-Fischer [Fri, 4 Jun 2010 12:04:35 +0000 (14:04 +0200)]
fetch: documentation typo fix

s/initilize/initialize/

(Bitbake rev: 1497dd0d5bc0cca0de7d0ee9d314287000a0c34d)

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agofetch: Check for existence of tar file along with md5 signature
Khem Raj [Wed, 5 May 2010 05:56:49 +0000 (22:56 -0700)]
fetch: Check for existence of tar file along with md5 signature

(Bitbake rev: a5b1c0605328660de15bb8127b6f7d798c664d32)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoRevert "In expand, drop the unnecessary second regular expression match"
Chris Larson [Sat, 22 May 2010 23:36:08 +0000 (16:36 -0700)]
Revert "In expand, drop the unnecessary second regular expression match"

This reverts commit 05462fa7908fc22988b3dc9d376798d0a46ccb5a.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDon't emit vars starting with __, as those are internal
Chris Larson [Tue, 20 Apr 2010 21:23:18 +0000 (14:23 -0700)]
Don't emit vars starting with __, as those are internal

(Bitbake rev: 211f44ce0e15c7c419606e9ef3568d9cea6775b7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoIn expand, drop the unnecessary second regular expression match
Chris Larson [Fri, 21 May 2010 20:08:44 +0000 (13:08 -0700)]
In expand, drop the unnecessary second regular expression match

(Bitbake rev: 05462fa7908fc22988b3dc9d376798d0a46ccb5a)

Signed-off-by: Imran Mehmood <imran_mehmood@mentor.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoSimplify _findVar a bit
Chris Larson [Wed, 21 Apr 2010 17:57:17 +0000 (10:57 -0700)]
Simplify _findVar a bit

(Bitbake rev: b017acd39b811a00305002a8044e7d02e79f41d7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix major bug that slipped in when moving update_data
Chris Larson [Wed, 21 Apr 2010 23:47:10 +0000 (16:47 -0700)]
Fix major bug that slipped in when moving update_data

The root cause is, I was testing the use of renameVar() from finalize, in
order to get flags copied over when an override is applied, but renameVar
removes the original, whereas the old code did not do so.  Going back to the
old method, will revisit the override/flags later on.

(Bitbake rev: 2f7c498abcf675e5b8de197d8056a0581670c2bd)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove a var definition in cooker.parse_next
Chris Larson [Wed, 21 Apr 2010 01:47:36 +0000 (18:47 -0700)]
Move a var definition in cooker.parse_next

(Bitbake rev: 1b378ddf3dc9b2aa5384e8b28945b63fc623a6a4)

Signed-off-by: Chris Larson <clarson@kergoth.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoEnhance the expansion exception message
Chris Larson [Tue, 20 Apr 2010 22:56:20 +0000 (15:56 -0700)]
Enhance the expansion exception message

(Bitbake rev: 1cc11164a85a5b30d6b9184cb5a8f7f7ac1aaff2)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFor ${@}, run str() on the result
Chris Larson [Tue, 20 Apr 2010 22:54:42 +0000 (15:54 -0700)]
For ${@}, run str() on the result

(Bitbake rev: cf1a51eab11f645c95e5fa278221f78c129b9dd1)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAllow emission of non-string objects in emit_var, instead running str() on it first
Chris Larson [Tue, 20 Apr 2010 20:44:06 +0000 (13:44 -0700)]
Allow emission of non-string objects in emit_var, instead running str() on it first

(Bitbake rev: 5b09e28cb4a2c6c99ad58e71fb803160922a7e1e)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoemit_env: clean up, iterate once
Chris Larson [Tue, 20 Apr 2010 20:51:35 +0000 (13:51 -0700)]
emit_env: clean up, iterate once

(Bitbake rev: db718ec6f67c7c0d0efb4ba0b5b24384f707dcf5)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix the debug level check in print_exception
Chris Larson [Tue, 20 Apr 2010 19:23:41 +0000 (12:23 -0700)]
Fix the debug level check in print_exception

(Bitbake rev: 9cb52edf9198fe6db735abbb61d0c4026c97a8d9)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDon't try to expand non-string values
Chris Larson [Tue, 20 Apr 2010 18:53:31 +0000 (11:53 -0700)]
Don't try to expand non-string values

(Bitbake rev: fe36a726b9f930bbd6fd758c0aee78559e95f02b)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove the python version check into the python package
Chris Larson [Thu, 15 Apr 2010 15:45:15 +0000 (08:45 -0700)]
Move the python version check into the python package

This ensures the check is run for anyone using the package, including
setup.py, though it's sad that it's necessary, since all it really wants is
__version__.

Ideally, we'd avoid the version check entirely in favor of checking for
functionality, but that's rather difficult with language constructs like
context managers, so this'll do for now.

(Bitbake rev: f936f1c0edf70860ea0f39ec1a500ba43b56f289)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop an unnecessary second python version check and use the less ugly sys.version_info
Chris Larson [Thu, 15 Apr 2010 15:14:53 +0000 (08:14 -0700)]
Drop an unnecessary second python version check and use the less ugly sys.version_info

(Bitbake rev: 8f4b7b10f8740a41c085beeca5105f15204b0979)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoBump version to 1.11.0
Chris Larson [Thu, 15 Apr 2010 15:05:10 +0000 (08:05 -0700)]
Bump version to 1.11.0

(Bitbake rev: 6c89c332664a7789d02a701e7e530838ab778264)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove the python version check before the module imports, in case the modules utilize...
Chris Larson [Thu, 15 Apr 2010 14:49:54 +0000 (07:49 -0700)]
Move the python version check before the module imports, in case the modules utilize the newer python features

(Bitbake rev: 87c15dfcbeb10e7cafb14726209e4954671b3dbe)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoSearch up the directory tree for bblayers.conf
Chris Larson [Wed, 14 Apr 2010 21:38:18 +0000 (14:38 -0700)]
Search up the directory tree for bblayers.conf

(Bitbake rev: 1c6b31c649474b4c2b63ef9d9311e61de20bc8c2)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd a hack to avoid the req that all vars using LAYERDIR be immediately expanded
Chris Larson [Wed, 14 Apr 2010 21:30:09 +0000 (14:30 -0700)]
Add a hack to avoid the req that all vars using LAYERDIR be immediately expanded

See the comment in the code for details.

(Bitbake rev: 849dbd63244cbc4eaca0f1beedbb67baca024629)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove the unset BBPATH sanity check after the bblayers processing
Chris Larson [Wed, 14 Apr 2010 21:27:29 +0000 (14:27 -0700)]
Move the unset BBPATH sanity check after the bblayers processing

This way we can fully utilize bblayers, you can do everything in bblayers.conf
and avoid setting any environment variables at all.

(Bitbake rev: 5def1c8c31432968349f9b29d6333d7962260a8b)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoKill unnecessary usages of the types module
Chris Larson [Mon, 12 Apr 2010 15:14:11 +0000 (08:14 -0700)]
Kill unnecessary usages of the types module

types.IntType -> int
types.StringType -> basestring
...

Also moves our ImmutableTypes tuple into our own namespace.

(Bitbake rev: 83674a3a5564ecb1f9d2c9b2d5b1eeb3c31272ab)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoApply some 2to3 transforms that don't cause issues in 2.6
Chris Larson [Mon, 12 Apr 2010 00:03:55 +0000 (17:03 -0700)]
Apply some 2to3 transforms that don't cause issues in 2.6

(Bitbake rev: d39ab776e7ceaefc8361150151cf0892dcb70d9c)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd __contains__ to COWDictMeta
Chris Larson [Mon, 12 Apr 2010 00:21:14 +0000 (17:21 -0700)]
Add __contains__ to COWDictMeta

(Bitbake rev: b3b314aade1f0a04e888361e1ac946e5195e1509)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop unused bb.data.expandData function
Chris Larson [Sun, 11 Apr 2010 23:39:24 +0000 (16:39 -0700)]
Drop unused bb.data.expandData function

(Bitbake rev: 188af3ef5fdb5cd86b74147bf5eafc085ac489be)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoIgnore deprecation warnings for now
Chris Larson [Sun, 11 Apr 2010 05:07:43 +0000 (22:07 -0700)]
Ignore deprecation warnings for now

(Bitbake rev: 661fe59445161c5bc6a2e73b7fcbf9d20c492e27)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoSwitch some references to moved functions
Chris Larson [Sun, 11 Apr 2010 05:05:02 +0000 (22:05 -0700)]
Switch some references to moved functions

(Bitbake rev: ddea2978cb969cf1381cfee5c055de0c9e56a4e3)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd a missing import of print_function
Chris Larson [Sun, 11 Apr 2010 05:04:52 +0000 (22:04 -0700)]
Add a missing import of print_function

(Bitbake rev: 30ae747cc5c733512e417c61fca23c0cd15b0e44)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoApply the 2to3 print function transform
Chris Larson [Sat, 10 Apr 2010 02:46:14 +0000 (19:46 -0700)]
Apply the 2to3 print function transform

(Bitbake rev: ff2e28d0d9723ccd0e9dd635447b6d889cc9f597)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDeprecate the usage of certain objects via certain modules
Chris Larson [Fri, 9 Apr 2010 23:51:09 +0000 (16:51 -0700)]
Deprecate the usage of certain objects via certain modules

As an example, this displays a deprecation warning for the use of
"bb.encodeurl" when you should be using "bb.fetch.encodeurl".  It includes a
convenience function for this purpose.  It should be of use when moving
objects between modules permanently, changing the API the user sees.

(Bitbake rev: 78f56049ba863b2e585b89db12b32697eb879bbc)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoException handling fixups
Chris Larson [Fri, 9 Apr 2010 21:01:11 +0000 (14:01 -0700)]
Exception handling fixups

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd some missing docstrings
Chris Larson [Thu, 25 Mar 2010 00:05:38 +0000 (17:05 -0700)]
Add some missing docstrings

(Bitbake rev: 20b6f2d1d2d4541e612e8cffbdf1ca4822a3e394)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop __all__ usage
Chris Larson [Fri, 9 Apr 2010 18:51:29 +0000 (11:51 -0700)]
Drop __all__ usage

(Bitbake rev: b4983cc7bfe5300c1d2904f34fb03d4fb2f41d90)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop some unused functions
Chris Larson [Thu, 8 Apr 2010 22:42:53 +0000 (15:42 -0700)]
Drop some unused functions

(Bitbake rev: eb83df5bc7077685f314df01949cf06850e4693c)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop some unused classes
Chris Larson [Thu, 8 Apr 2010 22:16:17 +0000 (15:16 -0700)]
Drop some unused classes

(Bitbake rev: 5cc47a49518c69c94f8b78e9dda6d542ba17b1e8)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop some unused vars
Chris Larson [Fri, 9 Apr 2010 18:47:08 +0000 (11:47 -0700)]
Drop some unused vars

(Bitbake rev: b79ca5f1cc2d262de877047769ce25279ba26672)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoImport fixups
Chris Larson [Thu, 8 Apr 2010 17:22:29 +0000 (10:22 -0700)]
Import fixups

(Bitbake rev: 4fa052f426e3205ebace713eaa22deddc0420e8a)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFormatting cleanups
Chris Larson [Wed, 24 Mar 2010 23:56:12 +0000 (16:56 -0700)]
Formatting cleanups

(Bitbake rev: 2caf134b43a44dad30af4fbe33033b3c58deee57)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDrop doctest, as we aren't utilizing it
Chris Larson [Fri, 9 Apr 2010 18:49:36 +0000 (11:49 -0700)]
Drop doctest, as we aren't utilizing it

We should add back in some proper unit testing.  Doctest is rather limited,
and we haven't actually made use of it since the original implementation of
the datastore when the project started, as far as I'm aware.

(Bitbake rev: 3a11c2807972bbbddffde2fa67fc380d159da467)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDon't run metadata event handlers for bb.msg events
Chris Larson [Fri, 9 Apr 2010 22:56:14 +0000 (15:56 -0700)]
Don't run metadata event handlers for bb.msg events

(Bitbake rev: 297305b3742323d09d9ca58e958c4f18e945a148)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoStop using functions via 'bb' that were moved from there to other modules
Chris Larson [Sat, 10 Apr 2010 00:11:03 +0000 (17:11 -0700)]
Stop using functions via 'bb' that were moved from there to other modules

(Bitbake rev: 03a6c26f8da226f442c3cab557e4733f7cd6eeac)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoAdd a function to get the debug level, without poking into debug_levels manually
Chris Larson [Sat, 10 Apr 2010 02:34:07 +0000 (19:34 -0700)]
Add a function to get the debug level, without poking into debug_levels manually

(Bitbake rev: 6ccc01a1a72ec354de52fef2bf5620384b8461ce)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix invalid logging domain warning
Chris Larson [Sat, 10 Apr 2010 02:33:04 +0000 (19:33 -0700)]
Fix invalid logging domain warning

(Bitbake rev: 8441fab6f27191fcc3c153a10753871e6aef08b1)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoBump minimum python version check to 2.6.
Chris Larson [Sat, 10 Apr 2010 02:29:56 +0000 (19:29 -0700)]
Bump minimum python version check to 2.6.

(Bitbake rev: 85c000cc7db47cfd489cf282c58db2dab0d87908)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMake the default domain a proper domain, not a string
Chris Larson [Sat, 10 Apr 2010 02:27:21 +0000 (19:27 -0700)]
Make the default domain a proper domain, not a string

This lets you do -l Default on the commandline to bump the debug level of
messages with no domain, without bumping the level of everything else.

(Bitbake rev: bef33dfc36713d8c93e38e63ddac2e4f9858e787)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoImplement bb.msg.domain as a named tuple, drop the Enum class
Chris Larson [Sat, 10 Apr 2010 02:22:52 +0000 (19:22 -0700)]
Implement bb.msg.domain as a named tuple, drop the Enum class

Also fixes some bb.msg references from within bb.msg.

(Bitbake rev: db95af590f742c8186e84046ad9704fae1733720)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix an error in the ncurses UI
Chris Larson [Sat, 10 Apr 2010 00:55:11 +0000 (17:55 -0700)]
Fix an error in the ncurses UI

(Bitbake rev: 90c68238cb62afa1c39e1d4fff1f418c9ec047e5)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoDisplay python warnings via bb.msg
Chris Larson [Fri, 9 Apr 2010 22:55:55 +0000 (15:55 -0700)]
Display python warnings via bb.msg

(Bitbake rev: 648415a562d92109c4945cb3cc98ed2ec44667a7)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoImmediately display messages if no UI handlers are installed yet
Chris Larson [Fri, 9 Apr 2010 22:55:17 +0000 (15:55 -0700)]
Immediately display messages if no UI handlers are installed yet

(Bitbake rev: 17c414d0c050c42d4beb3f1dd84573020aacb392)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoUse __import__ for the ui rather than exec
Chris Larson [Fri, 9 Apr 2010 20:25:58 +0000 (13:25 -0700)]
Use __import__ for the ui rather than exec

(Bitbake rev: 7d00bab300961431f9960cf6759966f608580bc0)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoFix the task event handling in the ncurses UI
Chris Larson [Fri, 9 Apr 2010 20:25:34 +0000 (13:25 -0700)]
Fix the task event handling in the ncurses UI

(Bitbake rev: 50b7b817d418532583da3bad62a36fcefe3637a2)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoEnsure we always utilize the correct messaging domains
Chris Larson [Fri, 9 Apr 2010 19:33:29 +0000 (12:33 -0700)]
Ensure we always utilize the correct messaging domains

(Bitbake rev: 92a2e2e90981c0615171abe03645a772d84f6986)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agobb.event: NotHandled and Handled are on the way out
Chris Larson [Thu, 8 Apr 2010 23:30:52 +0000 (16:30 -0700)]
bb.event: NotHandled and Handled are on the way out

(Bitbake rev: ed35b30f8e09b0bfc15102fa6483c55d6b7d61de)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoRename the finalise method for consistency
Chris Larson [Thu, 8 Apr 2010 23:01:14 +0000 (16:01 -0700)]
Rename the finalise method for consistency

Apparently the finalise spelling is becoming less common in British English.

(Bitbake rev: 47449b2fc433e5725839ca4f7e9bca931a475838)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
14 years agoMove update_data into the DataSmart class as a finalize() method
Chris Larson [Thu, 8 Apr 2010 22:43:47 +0000 (15:43 -0700)]
Move update_data into the DataSmart class as a finalize() method

(Bitbake rev: ff801397785567cb84b3615de86bff764d65decf)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>