summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_rpm.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* populate_sdk_*: Sync SDK and regular rootfs functionsMark Hatle2011-08-021-8/+7
| | | | | | | | | | In order for things to be easier to maintain in the future, sync up the sdk and rootfs versions. (From OE-Core rev: 3c78da15457d8d20c9964cd845f6e021d442aaae) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Cleanup and minor bug fixesMark Hatle2011-08-021-8/+9
| | | | | | | | | | | | | | | | | | | | | | | in packages_rpm.bbclass: Cleanup the way package_update_index_rpm works. Break this out into two functions, one for common functionality and one for controlling target vs sdk package processing. Similar change to package_generate_rpm_conf. Usage of IMAGE_ROOTFS should actually be "target_rootfs", this fixes a problem with the SDK case. in rootfs_rpm.bbclass: Minor re-order of the values, and avoid multiple uses of IMAGE_ROOTFS in order to make the merge with the SDK behavior easier. (From OE-Core rev: 46559f36d8a39655060b45d3d235de44a2c4c09b) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm.bbclass: Fix multilib configurations to use DEFAULTTUNEMark Hatle2011-08-011-1/+1
| | | | | | | | | | Earlier iterations of the multilib patch used "TUNENAME", which was later renamed to DEFAULTTUNE. This file was missed in the rename. (From OE-Core rev: fdd39925df8268ad41c1ff643a0761b03fad8e08) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Disable debug messagesRichard Purdie2011-07-271-1/+1
| | | | | | (From OE-Core rev: 59c26a280f909470e19a2be04b8ea9dd3aa5c24b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package/rootfs_rpm: Implement RPM multilib package handlingMark Hatle2011-07-271-1/+16
| | | | | | | | | | This is a first pass at adding multilib support to the RPM package and image handling code. (From OE-Core rev: 1939a4395997098862912e013a2b13ed2f385f9f) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Add 50M to IMAGE_ROOTFS_EXTRA_SPACE for zypper /var spaceSaul Wold2011-07-081-0/+4
| | | | | | | | | | | | | | [YOCTO #1171] This is a temporary fix to address the fact that zypper's db configuation uses a large amount of /var space. When the correct'ed zypper config can be applied, this fix can be removed. The zypper bug for yocto is 1174 http://bugzilla.pokylinux.org/show_bug.cgi?id=1174 (From OE-Core rev: 05995abe8d74ed8a460f6c29b686f812f62b3d92) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Control over when package init scripts are runGary Thomas2011-04-241-3/+8
| | | | | | | | | | | | | | | | | | | When a package is built, some installation scripts must be performed on the target. In the case of a complete image, these scripts are run by a separate step at init time, but only during the first boot (other package install scripts can just be run when the package is installed on the target). This patch lets the distribution (or user) decide when these postponed install scripts should run. The default is normally near the end of init, but there may be times when it's beneficial to run them earlier so the "when" can be overridden. (From OE-Core rev: a46466893407d44dd16ab37ae70e1bee14bdde0a) Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace POKYBASE with COREBASERichard Purdie2011-04-211-1/+1
| | | | | | (From OE-Core rev: 607a7657715f6fcba467a4e55ba64f41f4e13a15) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm.bbclass: Add additional system configuration to RPM spaceMark Hatle2011-03-161-0/+26
| | | | | | | | | | | | | | The additional configuration should have been there from the beginning. The purpose of these config files is to have a consistent Berkeley DB configuration even if the underlying RPM version changes -- or the RPM macros change. This likely would not cause any problems until we attempted an upgrade of either BDB or RPM. (From OE-Core rev: a0682191e0743ed8ec1d30567eb26d4cde864ee8) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Fix rootfs generation using RPM packagesMark Hatle2011-02-251-2/+3
| | | | | | | | | | | [BUG #756] Fix bug #756. The rootfs contains a control file /etc/rpm/platform that specifies the default system platform, as well as patterns for compatible architectures. This file was not being setup properly due to a misunderstanding of the format in a previous patch. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package_rpm: Fix solverdb generationMark Hatle2011-02-161-2/+7
| | | | | | | | | | | The RPM solverdb was potentially being generated multiple times. Fix this by ensuring we only process each directory once. Also correct an issue where the solution did not necessarily follow the preferred architecture ordering, reverse the default Poky ordering so that preferred is listed first. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootrs_rpm.bbclass: Disable createrepo for now due to this error:Richard Purdie2011-02-031-2/+2
| | | | | | | | | | | + createrepo /media/build2/builds/rptest/b4/tmp/deploy/rpm | Traceback (most recent call last): | File "/media/build2/builds/rptest/b4/tmp/sysroots/x86_64-linux/usr/share/createrepo/genpkgmetadata.py", line 26, in <module> | import rpm | ImportError: No module named rpm Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm/package_rpm.bbclass: Move func from rootfs_rpm to package_rpmLianhao Lu2011-02-011-131/+14
| | | | | | | | | | | | | | | | | | | | | package_deb.bbclass: 1. Modified package_update_index_rpm() and package_generate_rpm_conf() to generate sperate depsolver db and rpm configuration, for target packages and host packages respectively. 2. Added new function package_install_internal_rpm() to install a list deb packages to a specified root directory, with the specified package architecutre information. 3. Added new function resolve_package_rpm() to resolve package names to filepaths. rootfs_deb.bbclass: Used the above new functions to install the rootfs. [sgw: merged changes for createrepo] Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* image/package_xx/rootfs_xx.bbclass: move rootfs_xx_log_check().Lianhao Lu2011-01-311-20/+0
| | | | | | | Move function rootfs_xx_log_check() from rootfs_xx.bbclass to relevant package_xx.bbclass. (Where xx is rpm/ipk/deb). Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* creating the rpmrepo metadataQing He2011-01-301-0/+5
| | | | | | | | | | | | | | | | | This includes two method for build rpm repo: 1. create the metadata in rootfs_rpm 2. standalone binary for building the metadata Not both of them are needed, generally #2 fits more for the purpose, but #1 may have its use on rootfs creation using zypper. Both share some problems and are subjected for future improvement: 1. the createrepo now builds metadata for the whole directory, if there are more than one arch, it builds for all, which means rootfs_rpm may run longer if more builds have been run. 2. createrepo builds metadata for stale rpms Signed-off-by: Qing He <qing.he@intel.com>
* rootfs_rpm: Drop bogus inclusion of the run-postinsts packageRichard Purdie2011-01-281-2/+3
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Setup the platform configurationMark Hatle2011-01-281-1/+7
| | | | | | | | | The RPM platform configuration file lists all of the supported architectures, while RPM itself doesn't use this information, other tools may use it to determine compatibility. The first item is the default architecture for a system, while the following items specify alternative compatible architectures. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rpm: Uprev to RPM 5.4.0Mark Hatle2011-01-281-7/+10
| | | | | | Update RPM to the latest release, RPM 5.4.0. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: fix rootfs generation rm errorDarren Hart2011-01-051-1/+1
| | | | | | | | | | | During a poky-image-minimal build I ran into the following error: rm: cannot remove `/vol/1/dvhart/poky.git/build/tmp/work/atom-pc-poky-linux/poky-image-minimal-initramfs-1.0-r0/rootfs/install': Is a directory This is caused by a missing -r (recursive) argument to rm. This patch adds that to the rm command of rootfs_rpm.bbclass. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
* rootfs_rpm.bbclass: Remove temporary work files in install directory, saving ↵Richard Purdie2011-01-051-2/+5
| | | | | | the manifests as logfiles into ${T} Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rootfs_rpm: Add --ignoresize option when performing DB operations on a rootfsRichard Purdie2010-12-201-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rootfs: Update ROOTFS_PKGMANAGE to include atp/zypperRichard Purdie2010-10-111-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rootfs_rpm: Add lock file in the rpm deploy directory to allow mutliple ↵Richard Purdie2010-10-071-0/+4
| | | | | | rootfs creation tasks to coexist without breaking each other Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* rootfs_rpm.bbclass: Add Dirnames configurationMark Hatle2010-09-301-0/+4
| | | | | | | | | | | | [BUGID #327] RPM attempts to validate all of the directories on the system are owned by a package. While the root "/" directory was not owned, so in some cases an error could be thrown. Resolve this by informing RPM that yes, "/" is in fact a directory on the system that was properly constructed and is "owned". Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: Fix workaroundMark Hatle2010-09-101-2/+3
| | | | | | | The exit 0 in the workaround seems to have causes the filesystem creation process to stop. Instead change it to an if that can never succeed. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rpm: Fix autoconf/libtool usageMark Hatle2010-09-031-1/+1
| | | | | | | | | | In order to resolve a host-contamination problem, we re-work the way that autoconf and friends are invoked during the compilation of RPM. This has a side effect of fixing another bug where RPM was being renamed HOST_ARCH-HOST_OS-rpm. So we remove the "fixes" for that behavior as well. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: Workaround for checksum changesMark Hatle2010-09-031-0/+4
| | | | | | | | | With the new checksum changes, the system is no longer able to determine if the function resolve_package is used. So it doesn't get emitted. The workaround resolves this by triggering an exit 0, followed by a bogus usage of the function. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: Support install_all_localesMark Hatle2010-09-031-30/+33
| | | | | | | | Support installing all locales similarly to how it is done within the ipk support. This has had basic testing, but it's not a normally used function so there could still be some flaws. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* roots_rpm: Enable installation of recommended packagesMark Hatle2010-09-031-28/+96
| | | | | | | | | | | | | Within RPM there is a field called "Suggests". This filed behaves like "Recommends" does in ipk. So we write out the packages using the Suggests field with the Poky 'Recommends' values... and then use the arbitrary tags to capture the Poky 'Suggests' within a new "Recommends" tag. Slightly confusing, but the end result is a functioning install. Also some performance enhancements were add at the same time. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* rootfs_rpm: Optimize rpm database processingMark Hatle2010-09-021-1/+1
| | | | | | | Optimize the creation of the solverdb by disabling fsyncs and database caches that are not used when generating a solution. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* opkg: finalize the change to var directoryKevin Tian2010-08-261-2/+4
| | | | | | | | | | | commit 1d0757f16beb31551733d9d755d72337ccda9642 changes opkg run state from /usr/lib/opkg to /var/lib/opkg, which however is incomplete and still many important information is kept under old directory including postinst methods. This makes latest boot into a mess. So finalize this movement to /var here. Fix [BUGID #229] Signed-off-by: Kevin Tian <kevin.tian@intel.com>
* rootfs_rpm: Enable multi dep solverdbsMark Hatle2010-08-231-61/+42
| | | | | | | | | | | | | Update package_rpm.bbclass to generate dep solver databases for each package arch. Following the example of the deb and ipk integration Revise the rootfs_rpm to solve the installation based on the multiple dep solvers. Note, recommends, locale and attemptonly pckages are still to be implemented. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* meta/classes/rootfs_rpm.bbclass: re implement base on rpm5Mark Hatle2010-07-241-91/+67
| | | | | | | | | | | Re implement the rootfs generation using rpm5. This also gets rid of the need for yum, and handles all dep resolving internal to the script itself. The new file scripts/rootfs_rpm-extract-postinst.awk comes from the original yum integration work. It has been unchanged, but since yum is no longer used we needed to move the script somewhere else. Signed-off-by: Mark Hatle <mhatle@windriver.com>
* rootfs_rpm: Explicitly add runtime dependencies to dependsJoshua Lock2010-03-261-1/+1
| | | | | | | Python RDEPENDS are tricksy beasts and the runtime dependencies of Yum aren't being pulled in for the RPM rootfs so explicitly add them to depends. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* rootfs_rpm/icecc: Sync whitespace with OE.devRichard Purdie2009-11-161-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Richard Purdie2009-11-131-3/+3
| | | | | | | | | | | | | populate_staging task to populate_sysroot This change 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. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* classes: Remove and sanitise import statementsRichard Purdie2009-11-131-1/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* meta/classes/rootfs_*.bbclass: Fix unset variableRichard Purdie2008-11-071-1/+1
|
* classes: Add mechanism to install packages into images only if they've been ↵Richard Purdie2008-11-061-0/+4
| | | | built
* roots_rpm.bbclass: Use opkg-native to get update-alternativesRob Bradford2008-10-311-0/+4
|
* rootfs_rpm.bbclass: Disable non Poky repositories.Rob Braford2008-10-291-1/+1
| | | | | | | | Only use repositories that begin "poky-feed". This prevents contamination with system repositories. It may be better to patch yum not to ever look in the system repository locations (i.e. /etc/yum.repos.d).
* rootfs_rpm.bbclass: added code to generate images from feedsMarcin Juszkiewicz2008-10-071-0/+14
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5436 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm.bbclass: added generation of feed entriesMarcin Juszkiewicz2008-10-071-0/+26
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5434 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm.bbclass: remove temporary yum config - rootfs has one from yum ↵Marcin Juszkiewicz2008-10-071-0/+3
| | | | | | package git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5433 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm.bbclass: fix platform so rpm will be usable on deviceMarcin Juszkiewicz2008-10-071-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5432 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm.bbclass: remove lock files to get rpm working on deviceMarcin Juszkiewicz2008-10-031-0/+3
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5412 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm.bbclass: Set YUM_ARCH_FORCERichard Purdie2008-10-021-0/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5398 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm: set target architecture and do not tell yum which arch we will useMarcin Juszkiewicz2008-10-021-3/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5391 311d38ba-8fff-0310-9ca6-ca027cbcb966
* rootfs_rpm.bbclass: use more efficient way to copy packagesMarcin Juszkiewicz2008-10-021-5/+7
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5386 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Add rpm package coverageRichard Purdie2008-10-021-14/+22
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5382 311d38ba-8fff-0310-9ca6-ca027cbcb966