aboutsummaryrefslogtreecommitdiffstats
path: root/classes/rootfs_ipk.bbclass
AgeCommit message (Collapse)Author
2011-02-15rootfs_ipk: don't emit error code when ONLINE_PACKAGE_MANAGEMENT is really noneMartin Jansa
* currently do_rootfs fails when it's "none", because that test returns exit code '1': | log_check: Using /OE/tmpdir-shr/work/spitz-oe-linux-gnueabi/initramfs-kexecboot-klibc-image-1.0-r0/temp/log.do_rootfs.21324 as logfile | Logfile is clean | + rm -rf /OE/tmpdir-shr/rootfs/initramfs-kexecboot-klibc-image-tmp | + '[' none '!=' none ']' NOTE: package initramfs-kexecboot-klibc-image-1.0-r0: task do_rootfs: Failed ERROR: Function 'do_rootfs' failed (see /OE/tmpdir-shr/work/spitz-oe-linux-gnueabi/initramfs-kexecboot-klibc-image-1.0-r0/temp/log.do_rootfs.21324 for further information) ERROR: Task 1356 (/OE/dev/recipes/images/initramfs-kexecboot-klibc-image.bb, do_rootfs) failed with exit code '1' ERROR: '/OE/dev/recipes/images/initramfs-kexecboot-klibc-image.bb' failed Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-02-14image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclassFilip Zyzniewski
This function generates feed configuration for opkg and as such should be used only for images using ipk, not rpm or deb. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-11-14rootfs_ipk.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-10-09image.bbclass: add LINGUAS_INSTALL to PACKAGE_INSTALL.Chris Larson
They aren't a special case, no reason to handle them that way, as we can leverage overrides. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-19rootfs_ipk.bbclass: Fix BAD_RECOMMENDATIONS.Graham Gower
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 Gower
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 Jansa
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 Larson
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 Larson
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 Rini
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 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-12rootfs_ipk.bbclass: run preinst/postinst scripts with "-e"Roman Khimov
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 Conroy
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 Jansa
* 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 Khimov
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 Larson
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 Blundell
2009-06-13rootfs_ipk: opkg (at least some versions) doesn't respect ${libdir}, so look ↵Phil Blundell
in /usr/lib specifically for its bits
2009-02-22image.bbclass: install stuff listed in IMAGE_INSTALL as wellKoen Kooi
rootfs_ipk: task-boot change fixes
2009-02-22rootfs_ipk bbclass: make ONLINE_PACKAGE_MANAGEMENT work on non task-base ↵Koen Kooi
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 Innocenti
rootfs_ipk: avoid matching spurious errors
2008-10-17rootfs_ipk: add support for BAD_RECOMMENDATIONS andPhil Blundell
ONLINE_PACKAGE_MANAGEMENT configuration settings
2008-06-11rootfs_ipk.bbclass: opkg nowadays needs its lib directory created before it ↵Michael Lauer
can operate
2008-03-25rootfs_ipk.bbclass: symlink /usr/lib/opkg to /usr/lib/ipkg tooRod Whitby
2008-03-25rootfs_ipk.bbclass: Emergency addition to fix image generation where ipkg is ↵Rod Whitby
still the package manager included in the image.
2008-03-19rootfs_{deb,ipk}.bbclass: the o-hand dudes went overboard with sed, and ↵Koen Kooi
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 Kooi
* death to ipkg!
2008-01-07Bashism fix: echo -e is a bashism and doesn't work when /bin/sh points to dashHolger Freyther
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 Kooi
/usr/bin -> ${bindir} /usr/lib -> ${libdir}
2007-09-04package*.bbclass: Switch to separate tasks for each packing type (from poky)Richard Purdie
2007-09-01rootfs_ipk.bbclass: Convert to use package_ipk functionRichard Purdie
2007-09-01rootfs_{deb|ipk}.bbclass: Fix whitespace damage, remove bashisms, sync with pokyRichard Purdie
2007-08-28rootfs*.bbclass: uclibc doesn't provides glibc-locale* and locale-base*, so ↵Koen Kooi
don't try to install it
2007-08-22image/rootfs_ipk: Remove uneeded mkdir callsRichard Purdie
2007-06-24rootfs_ipk.bbclass: Do not hardcode ipkg RDEPENDency.Paul Sokolovsky
* 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 Sokolovsky
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 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-02-20rootfs_ipk/package-index: created function to update deploy dirs and made ↵Marcin Juszkiewicz
package-index use it
2007-02-20package_ipk, rootfs_ipk: Add patch from Marcin and Koen to sort ipkgs into ↵Koen Kooi
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 Purdie
image.bbclass to prepare for rootfs_deb/bbclass (from poky)
2006-12-31Rename: image_ipk -> image.bbclass, IPKG_INSTALL -> PACKAGE_INSTALL to ↵Richard Purdie
prepare for deb packaging
2006-11-20Convert IPKG_ARCHS -> PACKAGE_ARCHS, IPKG_EXTRA_ARCHS -> PACKAGE_EXTRA_ARCHS ↵Richard Purdie
in preparation for deb handling
2006-11-11Add quotes for assignments to make the new parser happyHolger Freyther
2006-11-02rootfs_ipk.bbclass and ipkg.inc: shell script syntax fixesMartin Dietze
- 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 Kooi
2006-10-18rootfs_ipk.bbclass: remove ipkg-link from IPKG_INSTALLKoen Kooi
* 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 Juszkiewicz
2006-10-11rootfs_ipk.bbclass: Add ipkg packages into rootfs to unbreak task-baseMarcin Juszkiewicz
- 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 Purdie
make sure the Packages file exists
2006-07-24rootfs_ipk.bbclass, package-index: With the fixed ipkg-utils there is no ↵Richard Purdie
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)