Commit Graph

37 Commits

Author SHA1 Message Date
Richard Purdie 5e384038cb rootfs_rpm.bbclass: Remove temporary work files in install directory, saving the manifests as logfiles into ${T}
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-05 18:57:07 +00:00
Richard Purdie 1e40bc8272 rootfs_rpm: Add --ignoresize option when performing DB operations on a rootfs
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20 20:38:11 +00:00
Richard Purdie ded2919f19 rootfs: Update ROOTFS_PKGMANAGE to include atp/zypper
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-11 12:18:02 +01:00
Richard Purdie 0e0fadb400 rootfs_rpm: Add lock file in the rpm deploy directory to allow mutliple rootfs creation tasks to coexist without breaking each other
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-07 15:41:17 +01:00
Mark Hatle fad896d4ea rootfs_rpm.bbclass: Add Dirnames configuration
[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>
2010-09-30 10:01:34 -07:00
Mark Hatle d87034e41a rootfs_rpm: Fix workaround
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>
2010-09-10 12:50:43 +01:00
Mark Hatle c849ec75e7 rpm: Fix autoconf/libtool usage
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>
2010-09-03 18:30:47 -07:00
Mark Hatle a9b715736f rootfs_rpm: Workaround for checksum changes
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>
2010-09-03 18:30:47 -07:00
Mark Hatle d6c45f0f11 rootfs_rpm: Support install_all_locales
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>
2010-09-03 09:45:29 +01:00
Mark Hatle 2f68de1e88 roots_rpm: Enable installation of recommended packages
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>
2010-09-03 09:44:56 +01:00
Mark Hatle 379ba0e9d7 rootfs_rpm: Optimize rpm database processing
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>
2010-09-02 10:01:22 +01:00
Kevin Tian 8ea7fa6d4c opkg: finalize the change to var directory
commit 1d0757f16b 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>
2010-08-26 08:54:55 +01:00
Mark Hatle 59a3e98b04 rootfs_rpm: Enable multi dep solverdbs
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>
2010-08-23 20:56:47 +01:00
Mark Hatle d668b80e86 meta/classes/rootfs_rpm.bbclass: re implement base on rpm5
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>
2010-07-24 00:46:57 +01:00
Joshua Lock 1ee88638a2 rootfs_rpm: Explicitly add runtime dependencies to depends
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>
2010-03-26 12:23:11 +00:00
Richard Purdie 01f75c1b48 rootfs_rpm/icecc: Sync whitespace with OE.dev
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-16 10:51:24 +00:00
Richard Purdie b772c8cde5 bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the 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>
2009-11-13 12:15:42 +00:00
Richard Purdie c54117458a classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:28 +00:00
Richard Purdie 826cd19f04 meta/classes/rootfs_*.bbclass: Fix unset variable 2008-11-07 13:59:12 +00:00
Richard Purdie 436c5f4716 classes: Add mechanism to install packages into images only if they've been built 2008-11-06 16:23:32 +00:00
Rob Bradford 76a7b78b40 roots_rpm.bbclass: Use opkg-native to get update-alternatives 2008-10-31 16:24:31 +00:00
Rob Braford b906b0cd60 rootfs_rpm.bbclass: Disable non Poky repositories.
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).
2008-10-29 18:22:42 +00:00
Marcin Juszkiewicz c8a3fab82f rootfs_rpm.bbclass: added code to generate images from feeds
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5436 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-07 16:47:22 +00:00
Marcin Juszkiewicz 0ea7472583 rootfs_rpm.bbclass: added generation of feed entries
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5434 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-07 16:21:25 +00:00
Marcin Juszkiewicz d1a327bede rootfs_rpm.bbclass: remove temporary yum config - rootfs has one from yum package
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5433 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-07 15:34:55 +00:00
Marcin Juszkiewicz f9b9e314eb rootfs_rpm.bbclass: fix platform so rpm will be usable on device
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5432 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-07 13:43:07 +00:00
Marcin Juszkiewicz e71b7011d4 rootfs_rpm.bbclass: remove lock files to get rpm working on device
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5412 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-03 15:23:05 +00:00
Richard Purdie a61f5b0a77 rootfs_rpm.bbclass: Set YUM_ARCH_FORCE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5398 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 21:31:32 +00:00
Marcin Juszkiewicz e5e21ca415 rootfs_rpm: set target architecture and do not tell yum which arch we will use
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5391 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 20:43:59 +00:00
Marcin Juszkiewicz 2d4b12e62b rootfs_rpm.bbclass: use more efficient way to copy packages
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5386 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 19:02:39 +00:00
Richard Purdie 096b0cd292 packaged-staging.bbclass: Add rpm package coverage
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5382 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 15:22:10 +00:00
Marcin Juszkiewicz 9c63c7ef05 rootfs_rpm.bbclass: ship rpm and yum in target images
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5380 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 14:26:38 +00:00
Richard Purdie 13671658cb rootfs_rpm.bbclass: Add recommends handling
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5158 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-08 11:19:23 +00:00
Richard Purdie 23c36b0fbf rootfs_rpm.bbclass: Fixup broken symlinks due to fakechroot and run any leftover postinstalls on real hardware at first boot
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5143 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-04 21:52:34 +00:00
Richard Purdie 8821664fad rootfs_rpm.bbclass: Add basic postinstall handling during image creation
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5134 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-03 23:22:06 +00:00
Richard Purdie 375bf90a37 rootfs_rpm.bbclass: Remove the feed directory before packaging the image
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5112 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-08-26 12:26:32 +00:00
Richard Purdie 15af82a09f Add rootfs_rpm.bbclass, a start at image generation from rpms. Its not expected to be entirely functional yet.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5101 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-08-25 20:53:13 +00:00