default-versions.inc: match version of db and db-native while "AGPL-3.0" in ${INCOMPATIBLE_LICENSE}
cover default-versions.inc: match version of db and db-native while "AGPL-3.0" in ${INCOMPATIBLE_LICENSE}
Test Steps:
1. vim local.conf
...IMAGE_FEATURES += "package-management ssh-server-dropbear" INCOMPATIBLE_LICENSE="AGPL-3.0"
...
2. build core-image-minimal
bitbake core-image-minimal
3. run qemu and execute 'rpm -qa' succeed
...
root@qemux86-64:~# rpm -qa update-alternatives-opkg-0.1.8+git0+eae0d8fa44-r0.core2_64 openssl-conf-1.0.1j-r0.core2_64 ncurses-terminfo-base-5.9-r15.1.core2_64 base-files-3.0.14-r89.qemux86_64 netbase-5.2-r0.core2_64 busybox-1.22.1-r32.core2_64 update-rc.d-0.7-r5.all ...
//Hongxu
The following changes since commit 924da20c6f2f183fa7e930e4c3c6b14c090acbe5:
build-appliance-image: Update to dizzy head revision (2014-10-18 16:16:38 +0200)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/fix-db-native
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-db-native
Hongxu Jia (1):
default-versions.inc: match version of db and db-native while
"AGPL-3.0" in ${INCOMPATIBLE_LICENSE}meta/conf/distro/include/default-versions.inc | 4 ++++ 1 file changed, 4 insertions(+)
Signature · 1 line
1.9.1
PATCH 1/1 default-versions.inc: match version of db and db-native while "AGPL-3.0" in ${INCOMPATIBLE_LICENSE}
The db 6.0.30's LICENSE is 'AGPL-3.0', and db 5.3.28 LICENSE is 'Sleepycat'
While building rpm image with "AGPL-3.0" in ${INCOMPATIBLE_LICENSE}, db 6.0.30 and db-native 5.3.28 were built, the different versions caused the rpm doesn't work on target.
...
root@qemux86-64:~# rpm -qa |rpmdb: BDB2531 Unacceptable log file /var/lib/rpm/./log/log.0000000001: unsupported log version 21 |rpmdb: BDB2527 Invalid log file: log.0000000001: Invalid argument |rpmdb: BDB0061 PANIC: Invalid argument |==> rpmdbe_event_notify(0x623f40, PANIC(0), 0x7fffee0fbc0c) app_private (nil) |rpmdb: BDB1546 unable to join the environment |error: db_init:tmp/work/core2-64-poky-linux/rpm/5.4.14-r0/rpm-5.4.14/ rpmdb/db3.c:1144: dbenv->open(-30973): BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery ...
[YOCTO #6858]
--- meta/conf/distro/include/default-versions.inc | 4 ++++ 1 file changed, 4 insertions(+)
meta/conf/distro/include/default-versions.inc +4 -0
@@ -9,3 +9,7 @@ PREFERRED_VERSION_python-native ?= "2.7.3" # Force the older version of liberation-fonts until we fix the fontforge issue PREFERRED_VERSION_liberation-fonts ?= "1.04" + +# Force db-native's version to keep sync with db while +# 'AGPL-3.0' in ${INCOMPATIBLE_LICENSE} blacklist +PREFERRED_VERSION_db-native = "${@base_contains('INCOMPATIBLE_LICENSE', 'AGPL-3.0', '5.%', '6.%', d)}"
Signature · 1 line
1.9.1