[yocto] Question about rebuilding RPM package index for updated RPMs when bitbake completes
Alex J Lennon
ajlennon at dynamicdevices.co.uk
Sun Apr 20 05:15:53 PDT 2014
Hi,
I'm trying to put in place a development workflow using the PR server,
RPM package feeds and smart update/install on a target.
I see that when I modify and rebuild my recipe, foo, the PR server
increments its count within the RPM filename, but the RPM feed data
doesn't seem to update.
e.g. in my deploy/rpm/cortexa9_vfp_neon folder I see a change (say) from
foo-1.7.11-r0.1.cortexa9_vfp_neon.rpm
to
foo-1.7.11-r0.2.cortexa9_vfp_neon.rpm
However if I then run smart on the target (configured to use that rpm
package feed) I don't see new packages
smart update
Similarly if I remove the package and reinstall it I get an error
smart remove foo
smart install foo
Fetching packages...
-> http://pkgrepo.my.local/.../foo-1.7.11-r0.1.cortexa9_vfp_neon.rpm
foo-1.7.11-r0.1... [ 0%]
error: Failed to download packages:
error:
http://pkgrepo.my.local/cortexa9_vfp_neon/foo-1.7.11-r0.1.cortexa9_vfp_neon.rpm:
File not found
I believe this is because the old package has been removed, and the new
package added to the folder,
but the repodata has not been rebuilt, leaving the packages out of sync
with the feed representation.
If then try running
bitbake package-index
When I now run an update on the target it picks up the new package and I
can fetch and install this
smart update
Updating cache... ########################################
[100%]
Channels have 3 new packages:
foo-1.7.11-r0.3 at cortexa9_vfp_neon
...
So if I am understanding the above correctly, when I make a change to a
recipe and build it, PR automatically
updates, the old RPM is removed and the new RPM added to the feed
directory. However the package index
for the feed is not updated.
So if at that point I try to make use of the feed on a target I am
likely to find something is broken.
If that is true would it make sense to leave the old RPM in the feed
directory until package-index
is re-ran, or to run package-index automatically at the end of a build
when RPMs have changed?
Thanks,
Alex
More information about the yocto
mailing list