]> code.ossystems Code Review - openembedded-core.git/commit
fetch2: Add SRPM knowledge
authorMark Hatle <mark.hatle@windriver.com>
Tue, 8 Feb 2011 00:18:18 +0000 (18:18 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Feb 2011 18:01:35 +0000 (18:01 +0000)
commit906285ff00d6ffd3fd7713af52250e7c6503edb7
tree2ae9c99eb5772b965c8c690817407c0327f04e59
parent2f3a7348b7da637d2362e7ed50c96a248ff58fc5
fetch2: Add SRPM knowledge

Enable the fetcher to be able to unpack and SRPM.  By default the system will
unpack the contents of the SRPM into the WORKDIR.

A new syntax "unpack=file" was developed for the SRC_URI, to allow for a
recipe to extract a specific file within an SRPM.  An unpack operation will
then be executed on the extracted file.

In order to apply extracted patches (or unpack files not specified with
unpack), you must specify the path using WORKDIR, i.e.:

file://${WORKDIR}/mypatch.patch

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
bitbake/lib/bb/fetch2/__init__.py
meta/recipes-devtools/rpm/rpm_5.4.0.bb
scripts/rpm2cpio.sh [new file with mode: 0755]