From: Robert Berger <gmane@reliableembeddedsystems.com>
To: poky@pokylinux.org
Cc: public-poky-EtnWKYl6rD/WsZ/bQMPhNw@lo.gmane.org,
Gary Thomas <public-gary-kIKI1E8EpGZWk0Htik3J/w@lo.gmane.org>
Subject: Re: bitbake package-index broken?
Date: Wed, 30 Nov 2011 15:27:41 +0200 [thread overview]
Message-ID: <4ED62F4D.2090706@reliableembeddedsystems.com> (raw)
In-Reply-To: <1290961157.27143.348.camel@rex>
Hi,
On 11/28/2010 06:19 PM, Richard Purdie wrote:
>> Done - bug #544
>
> I've a fix I'll push shortly. The reason was that we marked do_build as
> noexec and package-index did all its work in do_build. The updates
> changes this and marks more tasks in that recipe as noexec to make
> things more efficient.
>
> Cheers,
>
> Richard
I use edison-6.0 for arm and package-index does not work as well.
BB_VERSION = "1.13.3"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beagleboard"
DISTRO = "poky"
DISTRO_VERSION = "1.1"
TUNE_FEATURES = "armv7a vfp neon cortexa8"
TARGET_FPU = "vfp-neon"
meta
meta-yocto =
"edison-6.0_LOCAL:1924f52cc894d4dd6b9d9c1a2248b32fc0a24c8c"
...
| + '[' -e /work/rber/poky-edison-6.0/tmp/deploy/rpm/any/ ']'
| + for pkgdir in '$packagedirs'
| + '[' -e /work/rber/poky-edison-6.0/tmp/deploy/rpm/all/ ']'
| + echo 'Generating solve db for
/work/rber/poky-edison-6.0/tmp/deploy/rpm/all...'
| Generating solve db for /work/rber/poky-edison-6.0/tmp/deploy/rpm/all...
| + echo /work/rber/poky-edison-6.0/tmp/deploy/rpm/all/solvedb
| + '[' -d /work/rber/poky-edison-6.0/tmp/deploy/rpm/all/solvedb ']'
| + mkdir -p /work/rber/poky-edison-6.0/tmp/deploy/rpm/all/solvedb
| + echo '# Dynamically generated solve manifest'
| + find /work/rber/poky-edison-6.0/tmp/deploy/rpm/all -maxdepth 1 -type f
| + rpm -i --replacepkgs --replacefiles --oldpackage -D '_dbpath
/work/rber/poky-edison-6.0/tmp/deploy/rpm/all/solvedb' --justdb --noaid
--ERROR: Function 'do_package_index' failed (see
/work/rber/poky-edison-6.0/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/package-index-1.0-r0/temp/log.do_package_index.19108
for further information)
| nodeps --noorder --noscripts --notriggers --noparentdirs --nolinktos
--stats --ignoresize --nosignature --nodigest -D '__dbi_txn create
nofsync' /work/rber/poky-edison-6.0/tmp/deploy/rpm/all/solvedb/manifest
| total: 1 0.000000 MB 0.100765 secs
| fingerprint: 87 0.003250 MB 0.001950 secs
| install: 29 0.000000 MB 0.047942 secs
| dbadd: 29 0.000000 MB 0.046870 secs
| dbget: 578 0.000000 MB 0.000258 secs
| dbput: 29 0.250688 MB 0.038620 secs
| readhdr: 291 0.502176 MB 0.000617 secs
| hdrload: 145 0.746272 MB 0.001261 secs
| hdrget: 4794 0.000000 MB 0.002301 secs
| + createrepo /work/rber/poky-edison-6.0/tmp/deploy/rpm
| Traceback (most recent call last):
| File
"/work/rber/poky-edison-6.0/tmp/sysroots/i686-linux/usr/share/createrepo/genpkgmetadata.py",
line 26, in <module>
| import rpm
| ImportError: No module named rpm
NOTE: package package-index-1.0-r0: task do_package_index: Failed
ERROR: Task 8 (/work/rber/poky/meta/recipes-core/meta/package-index.bb,
do_package_index) failed with exit code '1'
ERROR: '/work/rber/poky/meta/recipes-core/meta/package-index.bb' failed
I tried to apply your patch:
diff --git a/meta/recipes-core/meta/package-index.bb
b/meta/recipes-core/meta/package-index.bb
index bf3922f..dfb4c1b 100644
--- a/meta/recipes-core/meta/package-index.bb
+++ b/meta/recipes-core/meta/package-index.bb
@@ -19,11 +19,12 @@ do_package_write_deb[noexec] = "1"
do_populate_sysroot[noexec] = "1"
do_package_index[nostamp] = "1"
-do_package_index[depends] += "${PACKAGEINDEXDEPS}"
+do_package_index[depends] += "${DEPLOY_DIR_IPK}"
+
do_package_index() {
set -ex
- ${PACKAGEINDEXES}
+ package_update_index_ipk
set +ex
}
addtask do_package_index before do_build
But this does not work as well:
Loading cache...done.
Loaded 1036 entries from dependency cache.
Parsing recipes...done.
Parsing of 795 .bb files complete (794 cached, 1 parsed). 1035 targets,
36 skipped, 0 masked, 0 errors.
ERROR: Error for
/work/rber/poky/meta/recipes-core/meta/package-index.bb, dependency
/work/rber/poky-edison-6.0/tmp/deploy/ipk does not contain ':' character
. Task 'depends' should be specified in the form 'packagename:task'
ERROR: Command execution failed: Exited with 1
Is there a patch against Edison 6.0 to make package-index work?
Regards,
Robert..."If Java had true garbage collection, most programs would
delete themselves upon execution." - Robert Sewell
My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
prev parent reply other threads:[~2011-11-30 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-24 10:56 bitbake package-index broken? Gary Thomas
2010-11-24 11:33 ` Gary Thomas
2010-11-24 11:47 ` Joshua Lock
2010-11-24 12:35 ` Gary Thomas
2010-11-28 16:19 ` Richard Purdie
2011-11-30 13:27 ` Robert Berger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED62F4D.2090706@reliableembeddedsystems.com \
--to=gmane@reliableembeddedsystems.com \
--cc=poky@pokylinux.org \
--cc=public-gary-kIKI1E8EpGZWk0Htik3J/w@lo.gmane.org \
--cc=public-poky-EtnWKYl6rD/WsZ/bQMPhNw@lo.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.