aboutsummaryrefslogtreecommitdiffstats
path: root/classes/patch.bbclass
AgeCommit message (Collapse)Author
2010-10-21patch.bbclass: avoid traceback for CmdError at resolveChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-02do_unpack, do_patch: shift some responsibility around, clean things upChris Larson
- Consolidate 'is this file a patch' logic - Move unpack functions from classes into oe.unpack - Move the unpacking message printing into do_unpack - Move the destination directory determination into do_unpack - Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd - Use shutil.copy2/copytree for ordinary file "unpack" - Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls - Make handling of globs in url paths explicit rather than implicit, calling oe_unpack on each one, so showing an unpacking message to the user for each globbed file, rather than the entirety Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-08-23patch: allow importing patches into other dirsChris Larson
Use the 'patchdir' flag. If relative, it's assumed to be relative to ${S}. It creates a patchset class per patch directory, so for quilt this results in multiple .pc/patches directories to manage each of the patchsets. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-27Revert "patch.bbclass: use param_bool()"Chris Larson
This reverts commit 7cb990de933f22331cd701ecb45d1e30dd8f3c11.
2010-05-27patch.bbclass: use param_bool()Enrico Scholz
This patch replaces a complicated if statement with a more simple code. Slightly altered to use oe.utils -kergoth Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-26patch.bbclass: fix the logic error that resulted in tcp-wrappers patch ↵Chris Larson
application failures Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-25Make the do_patch apply=yes param implicit if extension is .diff/.patchChris Larson
For .diff/.patch you need to apply manually, you can specify apply=no. Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-05-25Rename url params patch=<ignored>/pnum=<n> to apply={yes,no}/striplevel=<n>Chris Larson
I think this makes the behavior rather more clear. Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-05-05bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Joshua Lock
populate_staging task to populate_sysroot This change, pulled from Poky, makes the purpose of the staging directory more obvious and the taskname more true to what it now actually does. The layout version number is increased due to the change in layout but code to convert existing directories and insert a symlink for backwards compatibility is included. This patch also includes fixes for all recipes which reference the directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-23Initial move of common python bits into modules of the 'oe' python packageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2009-11-16classes: Drop a number of unneeded import calls (from Poky)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-11classes: Drop some random import bb/os statementsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-24patch.bbclass: Add "git" patchtool mechanism, which uses git-applyDale Farnsworth
It can be selected by setting PATCHTOOL = "git". This is useful because git-apply honors the permissions information produced by git-format-patch. Signed-off-by: Dale Farnsworth <dfarnsworth@mvista.com> Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Denys Dmytriyenko <denis@denix.org>
2009-05-14Shorten some full paths printed to the user.Chris Larson
Adds a base_path_out convenience function, which prepares a full path for display to the user. The initial implementation just makes it relative to ${TOPDIR}. This function is then used for some messages outputted to the user (packaged-staging, patch application, clean, unpack tasks). Signed-off-by: Chris Larson <clarson@mvista.com>
2009-05-12patch.bbclass: use hashlib with Python 2.5+ - removes DeprecationWarningMarcin Juszkiewicz
2008-05-24patch.bbclass: Simplify patch task dependency handling and allow packages to ↵Richard Purdie
override the dependency more easily (from poky)
2008-01-28patch.bbclass: Show full path of a patch.Paul Sokolovsky
* This is for consistency with existing non-patch fetch message in base.bbclass. Allows to catch pulling file from wrong override dir quickly.
2007-08-03patch.bbclass: give empty file for quilt so it will not use config from user ↵Marcin Juszkiewicz
homedir - closes #2704 (code from Poky)
2007-08-03patch.bbclass: Add minrev and maxrev support for patches, cleanup maxdate ↵Richard Purdie
and mindate support
2007-05-11devshell.bbclass, patch.bbclass: Error on any non-zero rc from TERMCMD*.Paul Sokolovsky
* Suggested by Richard Purdie. * Closes #2274.
2007-05-11devshell.bbclass, patch.bbclass: Check exit code of TERMCMD* commands to see ↵Paul Sokolovsky
if they were found at all. * Fixes #2274.
2007-04-18classes: Add support for intertask dependencies to be specified, needed for ↵Richard Purdie
correct operation with bitbake 1.8.x. Old behaviour is maintained in a special legacy anonymous function in base.bbclass. The patch is an improved version of the one discussed on the mailing list.
2007-04-09patch.bbclass/devshell.bbclass: Switch to new form of interactive task ↵Richard Purdie
handling as per RFC which is more compatible with bitbake 1.8+
2007-03-31classes/patch.bbclass: Make sure to raise func_failed on any exception from ↵Holger Freyther
within Import non existing patches raised a IOError by the md5sum method which was not catched at all and lead bitbake to exit due an unhandled exception. This is bad for all autobuilders.
2006-12-06patch.bbclass: Fix errors when reapplying patchesRichard Purdie
2006-09-05patch.bbclass: Fix bug in PatchTree.Import resulting in new patches being ↵Chris Larson
imported -before- the current patch rather than -after-.
2006-09-05patch.bbclass: fix issue encountered by zecke, where PatchTree was only ↵Chris Larson
doing a --dry-run, never actually applying the patch. Only quilt-native in oe was using that.
2006-08-30patch.bbclass:Chris Larson
* switch os.mkdir to os.makedirs. * pass on all errors from QuiltTree.Clean(), as it can fail in ways that do not need to be reported to the user, and a failure will end up being seen again during the Import/Push of the patches.
2006-08-30patch.bbclass:Chris Larson
* Add NOOPResolver class, which simply passes the patch failure on up, not doing any actual patch resolution. Set PATCHRESOLVE = "noop" to make use of it. Most useful for unattended builds.
2006-08-30classes/patch.bbclass: Create a "patches" directory when initialisingJamie Lenehan
the quilt patcher class. Without this quilt will search for a patches directory - starting from the current directory up to the root directory. If it finds an existing patches directory it will use it for its patches. This causes all sorts of problems since it is not where the patches are expected to be. Prior to the recent patcher changes this directory was being created.
2006-08-28Merge from poky:Chris Larson
Rework the way patches are handled. There are now two abstract base classes, initialized in patch.bbclass. One for patchset operations on a directory, and another for patch failure resolution. Currently includes 'patch' and 'quilt' concrete PatchSet classes, and a 'user' resolver class, which simply drops you into a shell in the source tree to fix the rejects.