diff options
author | Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | 2018-09-25 15:38:19 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-09-25 23:15:49 +0100 |
commit | 48ad67e485979d686bfa6c211b9cf21faf08e94c (patch) | |
tree | 0c2f5631db5f7deb327ac5cab3bc45a0c643d822 /meta/lib/oe | |
parent | 1d9295820d323d025e94b5cca4beaf30469ead5c (diff) | |
download | poky-48ad67e485979d686bfa6c211b9cf21faf08e94c.tar.gz |
rootfs: always update the opkg index
The previous logic assumed that if $BUILD_IMAGES_FROM_FEEDS=1 then a
complete set of ipk feeds from which to build the image is already
present under $IPK_FEED_URIS at do_rootfs runtime.
$IPK_FEED_URIS usually contains "file://${DEPLOY_DIR_IPK}" which
renders the above assumption bad because some recipes in the current
build can contain code like do_install[nostamp] = "1" which will cause
rebuilds bumping $PR and invalidating the index.
Even when the index is manually re-created before an image build
("bitbake package-index"), the nostamp will cause failures because the
dependency gets rebuilt before do_rootfs in the "bitbake <image>" call.
So make the opkg rootfs index logic the same as for rpm/deb, to always
update the index in $DEPLOY_DIR_IPK to fix the above nostamp failure.
Feeds outside $DEPLOY_DIR_IPK added to $IPK_FEED_URIS continue to work
as usual, for eg. by using a http:// URI.
(From OE-Core rev: bce90f48d1cc136fdfdf98b3830f5d99e381271b)
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/rootfs.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index cdb86f7715..67ae281e47 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -853,9 +853,8 @@ class OpkgRootfs(DpkgOpkgRootfs): | |||
853 | opkg_pre_process_cmds = self.d.getVar('OPKG_PREPROCESS_COMMANDS') | 853 | opkg_pre_process_cmds = self.d.getVar('OPKG_PREPROCESS_COMMANDS') |
854 | opkg_post_process_cmds = self.d.getVar('OPKG_POSTPROCESS_COMMANDS') | 854 | opkg_post_process_cmds = self.d.getVar('OPKG_POSTPROCESS_COMMANDS') |
855 | 855 | ||
856 | # update PM index files, unless users provide their own feeds | 856 | # update PM index files |
857 | if (self.d.getVar('BUILD_IMAGES_FROM_FEEDS') or "") != "1": | 857 | self.pm.write_index() |
858 | self.pm.write_index() | ||
859 | 858 | ||
860 | execute_pre_post_process(self.d, opkg_pre_process_cmds) | 859 | execute_pre_post_process(self.d, opkg_pre_process_cmds) |
861 | 860 | ||