summaryrefslogtreecommitdiff
path: root/classes/rootfs_ipk.bbclass
AgeCommit message (Collapse)AuthorFiles
2010-08-19rootfs_ipk.bbclass: Fix BAD_RECOMMENDATIONS.Graham Gower1
See http://code.google.com/p/opkg/source/detail?r=553 And previous discussions: http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg01423.html http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg04051.html Signed-off-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-19rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*Graham Gower1
Signed-off-by: Graham Gower <graham.gower@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-06Revert "rootfs_ipk.bbclass: install the package manager in a separate pass ↵Martin Jansa1
from the other packages" * This reverts commit acc720fa80227d08fd15764117e0c34e2387e804. * Graham already has a proper fix for this. * This breaks rootfs with ${ONLINE_PACKAGE_MANAGEMENT}" == "none" Conflicts: classes/rootfs_ipk.bbclass Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-By: Chris Larson <clarson@mvista.com>
2010-08-03rootfs_ipk.bbclass: add support for PACKAGE_INSTALL_ATTEMPTONLYChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-03rootfs_ipk.bbclass: install the package manager in a separate pass from the ↵Chris Larson1
other packages It seems that installing opkg/opkg-collateral blows away the configuration we need to install more packages, so lets make that explicit by installing those things last. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-07rootfs_ipk/meta-toolchain: Add locking on tasks that add ↵Tom Rini1
package_update_index_ipk We add a lockfile of do_populate_sdk and do_rootfs (in rootfs_ipk) that is also the lockfile that package_update_index_ipk uses. With enough threads it is possible that one image (or meta-toolchain) is attempting to use the package index while another has only reached the point of generating the index leading to an empty index being seen later on. Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-05-05bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Joshua Lock1
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-12rootfs_ipk.bbclass: run preinst/postinst scripts with "-e"Roman Khimov1
There are scripts that can and should work when being ran on build host (for example, simple update-rc.d), but there are also many which can't and won't ever (for example, anything adding users/groups). The second group sometimes doesn't get "unpacked" flag because scripts throw errors in the middle and return something nice from the last command. It can be considered as a bug in pre/postinst script (as it should either explicitly check for "${D}" or just do "set -e" at start), but it is common enough. There is also another aspect to this as in general we can't be sure that everything is OK wrt preinst/postinst if script commands throw errors. Running preinst/postinst scripts on host with "-e" should solve that. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Chris Larson <clarson@kergoth.com>
2010-03-04rootfs_ipk.bbclass: move rootfs postprocess commandChris Conroy1
I ran into a problem yesterday where the ROOTFS_POSTPROCESS_COMMAND started failing after I turned off ONLINE_PACKAGE_MANAGEMENT. It seems the problem is that if package management is turned off, then the opkg directory gets deleted. Subsequent opkg commands in the ROOTFS_POSTPROCESS_COMMAND fail to open the lock file because the directory is gone. This patch simply moves the postprocess command above the destruction of the opkg directory to allow any such commands to complete successfully. Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-02-24rootfs_ipk.bbclass: always specify tmp_dir in opkg-cl call with -t parameterMartin Jansa1
* When option tmp_dir is used in opkg.conf installed on rootfs then it's used also in do_rootfs call and points to probably non-existent directory on buildhost like /var/lib/opkg/tmp. * The value of tmp_dir from rootfs is used even with another config file specified with -c parameter * Before this, it was using default value (/tmp) on buildhost, now it will use own "${IMAGE_ROOTFS}-tmp" and remove it after do_rootfs finish (usually already empty inside, cleaned by opkg itself) * Similar patch for testlab.bbclass will follow Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2009-06-19Make package_update_index_ipk proper task with lockingRoman I Khimov1
Parallel image builds race in package_update_index_ipk, so locking is needed and for a proper lock package_update_index_ipk needs to be a proper task. Acked-by: Tom Rini <trini@embeddedalley.com>
2009-06-17rootfs_ipk.bbclass: add log_check for "Cannot satisfy the following ↵Chris Larson1
dependencies". Fixes a bug pointed out where a missing rdepends of a package installed into an image wasn't resulting in a failure in the do_rootfs task. Signed-off-by: Chris Larson <clarson@mvista.com>
2009-06-15rootfs_ipk: move "mkdir /etc/opkg" inside ONLINE_PACKAGE_MANAGEMENT conditionalPhil Blundell1
2009-06-13rootfs_ipk: opkg (at least some versions) doesn't respect ${libdir}, so look ↵Phil Blundell1
in /usr/lib specifically for its bits
2009-02-22image.bbclass: install stuff listed in IMAGE_INSTALL as wellKoen Kooi1
rootfs_ipk: task-boot change fixes
2009-02-22rootfs_ipk bbclass: make ONLINE_PACKAGE_MANAGEMENT work on non task-base ↵Koen Kooi1
images as well * This fixes the "image broken due to not running postinsts because opkg* isn't installed" type of bugs
2008-11-17rootfs_ipk: avoid matching spurious errorsBernie Innocenti1
rootfs_ipk: avoid matching spurious errors
2008-10-17rootfs_ipk: add support for BAD_RECOMMENDATIONS andPhil Blundell1
ONLINE_PACKAGE_MANAGEMENT configuration settings
2008-06-11rootfs_ipk.bbclass: opkg nowadays needs its lib directory created before it ↵Michael Lauer1
can operate
2008-03-25rootfs_ipk.bbclass: symlink /usr/lib/opkg to /usr/lib/ipkg tooRod Whitby1
2008-03-25rootfs_ipk.bbclass: Emergency addition to fix image generation where ipkg is ↵Rod Whitby1
still the package manager included in the image.
2008-03-19rootfs_{deb,ipk}.bbclass: the o-hand dudes went overboard with sed, and ↵Koen Kooi1
opkg-native overwrites our u-a-native, so we need to set both IPKG_OFFLINE_ROOT *and* OPKG_OFFLINE_ROOT
2008-03-18various: move over to opkg, as discussed on the mailinglistKoen Kooi1
* death to ipkg!
2008-01-07Bashism fix: echo -e is a bashism and doesn't work when /bin/sh points to dashHolger Freyther1
Instead of using "echo -e" we simply use printf. printf doesn't add a newline by default. So some places needed an extra \n in their string. Most of the change was done by hand, so please carefully review. This bug was spotted when trying to compile python-pyqt on my ubuntu hardy system.
2007-10-17rootfs_ipkbbclass: fix hardcodesKoen Kooi1
/usr/bin -> ${bindir} /usr/lib -> ${libdir}
2007-09-04package*.bbclass: Switch to separate tasks for each packing type (from poky)Richard Purdie1
2007-09-01rootfs_ipk.bbclass: Convert to use package_ipk functionRichard Purdie1
2007-09-01rootfs_{deb|ipk}.bbclass: Fix whitespace damage, remove bashisms, sync with pokyRichard Purdie1
2007-08-28rootfs*.bbclass: uclibc doesn't provides glibc-locale* and locale-base*, so ↵Koen Kooi1
don't try to install it
2007-08-22image/rootfs_ipk: Remove uneeded mkdir callsRichard Purdie1
2007-06-24rootfs_ipk.bbclass: Do not hardcode ipkg RDEPENDency.Paul Sokolovsky1
* Instead, ad dit to DISTRO_EXTRA_RDEPENDS, so full-fledged images bsed on task-base will get it automagically, while adhoc images (initrds, etc.) can leave it out. * This corresponds with how dpkg is handled, and how it is done in poky. * Closes #2484.
2007-06-10rootfs_ipk.bbclass: Add new option, PACKAGE_INSTALL_NO_DEPS. If set to 1,Paul Sokolovsky1
list of packages in PACKAGE_INSTALL installed as is, without any dependencies. * Useful for initrds, etc. * Closes #2469.
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-02-20rootfs_ipk/package-index: created function to update deploy dirs and made ↵Marcin Juszkiewicz1
package-index use it
2007-02-20package_ipk, rootfs_ipk: Add patch from Marcin and Koen to sort ipkgs into ↵Koen Kooi1
per architecture subdirs of deploy/ipk see: http://lists.linuxtogo.org/pipermail/openembedded-devel/2007-February/001462.html
2007-01-01image.bbclass rootfs_ipk.bbclass: Move common functionality into ↵Richard Purdie1
image.bbclass to prepare for rootfs_deb/bbclass (from poky)
2006-12-31Rename: image_ipk -> image.bbclass, IPKG_INSTALL -> PACKAGE_INSTALL to ↵Richard Purdie1
prepare for deb packaging
2006-11-20Convert IPKG_ARCHS -> PACKAGE_ARCHS, IPKG_EXTRA_ARCHS -> PACKAGE_EXTRA_ARCHS ↵Richard Purdie1
in preparation for deb handling
2006-11-11Add quotes for assignments to make the new parser happyHolger Freyther1
2006-11-02rootfs_ipk.bbclass and ipkg.inc: shell script syntax fixesMartin Dietze1
- both files contained code which would only execute if run by bash - the fixed versions do the same but are more portable
2006-10-19*ipk.bbclass: banish ipkg-link Koen Kooi1
2006-10-18rootfs_ipk.bbclass: remove ipkg-link from IPKG_INSTALLKoen Kooi1
* if you want it add it via a different way, some people don't want ipkg-link in the rootfs
2006-10-11rootfs_ipk.bbclass: add ipkg/ipkg-link/ipkg-collateral also into RDEPENDSMarcin Juszkiewicz1
2006-10-11rootfs_ipk.bbclass: Add ipkg packages into rootfs to unbreak task-baseMarcin Juszkiewicz1
- When we used task-base then ipkg/ipkg-link/ipkg-collateral was not installed into image. - Maybe it is not best sollution but it works and it duplicate solution which was added years ago.
2006-07-26rootfs_ipk, package-index: Fix an error introduced in a previous commit - ↵Richard Purdie1
make sure the Packages file exists
2006-07-24rootfs_ipk.bbclass, package-index: With the fixed ipkg-utils there is no ↵Richard Purdie1
need to remove the old Packages file when regenerating the Packages index. This gives a big speed improvement when regenerating images as it doesn't have to open every ipk for its metadata. (from poky)
2006-07-08rootfs_ipk.bbclass: add make_zimage_symlink_relativeKoen Kooi1
2006-07-07rootfs_ipk.bbclass: show which packages are lacking - may require GNU grepMarcin Juszkiewicz1
before: | Collected errors: | ERROR: Cannot satisfy the following dependencies for gpe-task-base: | + '[' -f /home/hrw/devel/build/3541/tmp/rootfs/usr/lib/ipkg/info/libgpg-error0.postinst ']' after: | Collected errors: | ERROR: Cannot satisfy the following dependencies for gpe-task-base: | gpe-session-scripts | -- taken from .oz354x
2006-05-27Clean up IPKG_ARCHS as it was being used inconsistently, often with ↵Richard Purdie1
duplication. Create IPKG_EXTRA_ARCHS to add to the standard variable. Update documentation.conf with the details.
2005-09-27rootfs_ipk: Add a remove_init_link function to the rootfs_ipk oeclass. This ↵Richard Purdie1
is needed for the nokia770 which won't boot with /sbin/init as a symbolic link (and I'm told other machines have this problem).