summaryrefslogtreecommitdiff
path: root/classes/package.bbclass
AgeCommit message (Collapse)AuthorFiles
2007-10-02mono 1.2.5.1: added mono.bbclass, many changes required for packagingHenryk Ploetz1
New file: packages/mono/mono-mcs-intermediate_1.2.5.1.bb Compiles mono in native mode with standard prefix, then tars up the resulting tree and puts the tarfile into staging New file: packages/mono/mono_files.py Automatically generated using collect-path.py (attached to this mail) and contains a list that maps file patterns to package names (and contained assemblies, see below). New file: classes/mono.bbclass Has a helper function for the list that maps file patterns to package names and assemblies (see below). Also has a function mono_do_clilibs and inserts that function into PACKAGEFUNCS. This function calls mono_find_provides_and_requires which finds out (through calls to monodis --assembly and monodis --assemblyref) which assemblies are provided and required by a particular package. mono_do_clilibs then puts the information about provided assemblies into ${STAGING_DIR}/clilibs/${packagename}.list and information about the required packages into ${PKGDEST}/{packagename}.clilibdeps where it will later be picked up by the modified read_shlibdeps. Originally I had dependency resolution through the partial list in mono_files.py but obviously this doens't scale, so I implemented the new method with mono_do_clilibs. The benefit is now that I don't really need the extra information in mono_files.py anymore and can in principle get rid of mono_get_file_table and related code. Instead it should be possible to modify collect-paths.py to output bitbake .inc code (e.g. PACKAGES = "..." and a whole lot of FILES_... = "...") instead of python code. There's still the minor problem of how to handle the .mdb files, that's why I didn't implement it yet but instead opted for an approach that I knew would work. (Debian just puts the .mdb files into the individual packages, while I would argue that they do belong into corresponding -dbg packages.) Modified file: classes/package.bbclass In read_shlibdeps I folded the two identical code blocks dealing with *.shlibdeps and *.pcdeps into one and added *.clilibdeps (generated by mono_do_clilibs above). Modified file: packages/mono/mono_1.2.5.1.bb Add the mono-mcs-intermediate workaround. Add a whole lot of python code in populate_packages_prepend in order to split up the packages based on information from mono_files.py (via mono.bbclass' mono_get_file_table). As I said above a lot of this code can hopefully be replaced in the future.
2007-09-29package.bbclass: Fix .packaged pkgmaps data creation to fix depchains. Clean ↵Richard Purdie1
up/optimise PACKAGES checks a bit
2007-09-04package.bbclass: Turn install path into a variable (PKGDATA) and cleanup ↵Richard Purdie1
some unneeded complexity (from poky)
2007-09-04package*.bbclass: Switch to separate tasks for each packing type (from poky)Richard Purdie1
2007-09-01classes: Convert to PKGDATA_DIR variable (from poky)Richard Purdie1
2007-09-01package.bbclass: Improve strip function and convert to python (from poky)Richard Purdie1
2007-08-11package.bbclass: Improve dependency chain handling function to differentiate ↵Richard Purdie1
when multiple -dev or -dbg packages are generated and when a single one is generated (from poky)
2007-08-11package.bbclass: Fix a typo and remove broken code (from poky)Richard Purdie1
2007-08-11package.bbclass: Remove wildcards from the RDEPENDS field, unbreaking ↵Richard Purdie1
certain dependency chainhandling in both ipkg and dpkg (from poky)
2007-08-11package.bbclass: Only set the do_package dependency when we have packages to ↵Richard Purdie1
generate (PACKAGES != ) removing needless dependencies (from poky)
2007-04-18classes: Add support for intertask dependencies to be specified, needed for ↵Richard Purdie1
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-03-29package.bbclass: fix build problem related to private libsMarcin Juszkiewicz1
2007-03-29package.bbclass: added support for private libraries (used only in package)Marcin Juszkiewicz1
- if package contain libraries which are not used outside then add PRIVATE_LIBS variable with names of them to not generate shlibs for them.
2007-02-27package.bbclass: comment out the cleandir since it breaks constructions like ↵Koen Kooi1
"inherit package_ipk package_tar" and seems to interfere with do_split_packages
2007-02-22classes: package, rm_work - fix bashisms (from Poky)Marcin Juszkiewicz1
2007-01-30package.bbclass: don't try to rmdir("./"), it won't workPhil Blundell1
2007-01-29package.bbclass: add workaround for wrongly globbed symlinks in FILES ↵Phil Blundell1
causing python traceback spew during population
2007-01-28package.bbclass: remove directories named in FILES from image after file Phil Blundell1
migration
2007-01-01package.bbclass: Add fakeroot-native as a depenedncy (from poky)Richard Purdie1
2006-12-12package.bbclass: set PATH before running OBJDUMP to get dependencies calculatedMarcin Juszkiewicz1
I do not know does this is best way of fixing it but it is better to have it in repository then having rootfs images without libc.
2006-11-28bitbake.conf : introduce the OBJDUMP variable, by default set toGraeme Gregory1
${HOST_PREFIX}objdump package.bbclass : make use of the OBJDUMP variable rather than calling ${BUILD_PREFIX}objdump inside do_shlibs. As the original usage was faulty and ended up calling host objdump which works for some arm targets but not all.
2006-10-28base.bbclass, package.bbclass: don destrucively set RDEPENDS and ↵Koen Kooi1
RRECOMMENDS, from Poky * poky rev 823: 'package.bbclass: depchains: don't -destructively- set the pkg's RRECOMMENDS.' * poky rev 824: 'base.bbclass: depchains: don't -destructively- set the pkg's RRECOMMENDS.'
2006-10-22package.bbclass: Fix split_packages to remove spurious references to -dbg ↵Richard Purdie1
packages. The way it selects the principle package name needs totally reworking as the current code is flawed but apply a workaround for now (this is unrelated to other changes to package.bbclass)
2006-10-21package.bbclass: Fix split_locales to remove spurious references to -dbg ↵Richard Purdie1
packages. The way it selects the principle package name needs totally reworking as the current code is flawed but apply a workaround for now (this is unrelated to other changes to package.bbclass)
2006-10-20package.bbclass: Split into two tasks, one which prepares the packages and ↵Richard Purdie1
then package_write which actually generates the packages. The two stage approach allows us to avoid circular dependency issues from classes like debian.bbclass. As the data being emitted into pkgdata/ changed, you need to either wipe tmp or rerun the do_package tasks (wipe the do_package stamps). Everything will repackage anyway due to the new task.
2006-10-20base/package.bbclass: Clean up and document things a bit more. Should be no ↵Richard Purdie1
functional changes (from poky)
2006-10-18module_strip.bbclass: filter out directories to stop recent binutils from ↵Koen Kooi1
barfing package.bbclass: likewise
2006-10-02classes/package.bbclass: use ?= for PACKAGEFUNCS *again*Koen Kooi1
* people should really watch out with introducing regressions
2006-09-16package.bbclass: remove do_install *again* to fix all the failed builds ↵Koen Kooi1
people are reporting ~lart kergoth for introducing this regression
2006-09-15classes/package.bbclass,conf/bitbake.conf:Chris Larson1
* Add package "depchains". This facilitates, for example, ensuring that if A depends upon B, then A-dev will RRECOMMENDS B-dev, and the same for the -dbg packages.
2006-09-15Restructure the subpackage metadata to facilitate use of that metadata by ↵Chris Larson1
other packages.
2006-09-14package.bbclass: yank an unintentional change.Chris Larson1
2006-09-14package.bbclass:Chris Larson1
* Avoid premature use of the PKG_* variables. We don't need to make use of the debian.bbclass (or otherwise) renamed package names until the very end of the packaging. This was necessary in order to enhance my depchain/correspondantdeps stuff, and doesn't seem to harm anything.
2006-09-12package.bbclass: Detect duplicates in PACKAGES properly.Paul Sokolovsky1
* Fix bug which caused non-detection. * Make visible error message for such condition. * But still recover and continue for now, while we don't have all occurances fixed in metadata. Note that while content of the package will be ok, metadata can be wrong. So, recover behavior should not be relied upon, this going to be fatal condition later. Oked-by: RP, hrw
2006-09-12package.bbclass: Make "strippedness" check overridable.Paul Sokolovsky1
* Factor out "strippedness" substring as FILE_UNSTRIPPED_MATCH. * Allow FILE_UNSTRIPPED_MATCH to be overriden, useful to support other executable formats. * Also, don't complain if .debug directory already exist (can heppen if manually run BB tasks, e.g. for debugging).
2006-09-08package.bbclass:Chris Larson1
Make legitimize_package_name also convert <U0123> style encoding of unicode codepoints into their utf-8 representation, as in glibc locale files.
2006-08-27package.bbclass: remove do_install from PACKAGE_FUNCS, as noted by Philipp ZabelKoen Kooi1
2006-08-25classes: run do_package before do_stage so we can populate staging with ↵Koen Kooi1
package if we want
2006-08-20classes: Add task dependencies expressions, as required for the new ↵Richard Purdie1
multithreading version of bitbake. Also, set BB_DEFAULT_TASK to specify the default task (build) rather than hardcode into bitbake.
2006-07-31Change -dbg objects to use .debug directory. Fixes various FILES issues.Richard Purdie1
2006-07-28classes/package.bbclass: Only set PACKAGEFUNCS once!Holger Freyther1
Set PACKAGEFUNCS only once. Now if more than one bbclass inherits package both additional functions will be executed. The new packagefuncs will be appended to the list and the old ones will not be lost
2006-07-24Add automatic generation of -dbg packages. These contain the debug symbols ↵Richard Purdie1
that are stripped from binaries and the symbols are linked to the original binaries via the gnu-debuglink section.If the -dbg packages are installed, oprofile and gdb will use them for symbol lookup.
2006-04-29package.bbclass: Add sanity check for duplicates in PACKAGES (bug 674)Richard Purdie1
2006-04-04disapproval of revision 'b7326fa2f47e0d1df4fc54428bf5d903b1042483'Justin Patrin1
2006-04-04package.bbclass: deal with multiple copies of the same package in PACKAGESJustin Patrin1
2006-03-06glibc, package.bbclass: generate old-style binary locales at build time ↵Rene Wagner1
using qemu. based on a patch originally written by Phil Blundell. fixes hh.org Bug #1385 (localedef OOM issue). - running localedef (in qemu...) for every locale takes a while. set BINARY_LOCALE_ARCHES = "" to avoid the new behaviour.
2006-02-12Fix package name renaming for classes like debian.bbclass:Richard Purdie1
package.bbclass now tracks any package renaming performed using PKG_*. When a package is built, the runtime variables are translated using this cached information which is stored in staging. From now on, only use package names are valid in runtime variables like RDEPENDS, RRECOMMENDS and RSUGGESTS. eg. fontconfig-dev is correct, libfontconfig-dev would be wrong. As debian.bbclass can't determine package renaming until after a package's contents is known, the class has to set BUILD_ALL_DEPS = "1". This also means OE is no longer forced into one package renaming scheme.
2006-01-31package.bbclass: now really fix interpretation of IGNORE_STRIP_ERRORS.Rene Wagner1
2006-01-31package.bbclass: fix interpretation of IGNORE_STRIP_ERRORS one more time.Rene Wagner1
2006-01-31package.bbclass: interpret 0 as false (as well as "") when evaluating ↵Rene Wagner1
IGNORE_STRIP_ERRORS