<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>6858</bug_id>
          
          <creation_ts>2014-10-20 11:24:34 +0000</creation_ts>
          <short_desc>version of db and db-native (used by rpm and rpm-native) might need to match while &quot;AGPL-3.0&quot; in ${INCOMPATIBLE_LICENSE}</short_desc>
          <delta_ts>2015-03-12 19:14:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46442</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-10-20 11:24:34 +0000</bug_when>
    <thetext>Test Steps:

1. vim local.conf
...
IMAGE_FEATURES += &quot;package-management ssh-server-dropbear&quot;
INCOMPATIBLE_LICENSE=&quot;AGPL-3.0&quot;
...

2. build core-image-minimal
bitbake core-image-minimal

3. run qemu and execute &apos;rpm -qa&apos; failed

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
==&gt; rpmdbe_event_notify(0x623f40, PANIC(0), 0x7fffee0fbc0c) app_private (nil)
rpmdb: BDB1546 unable to join the environment
error: db_init:/home/jiahongxu/yocto/build-20141017-rpm/tmp/work/core2-64-poky-linux/rpm/5.4.14-r0/rpm-5.4.14/rpmdb/db3.c:1144: dbenv-&gt;open(-30973): BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
Re-opening dbenv with DB_RECOVER ...
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
==&gt; rpmdbe_event_notify(0x623f40, PANIC(0), 0x7fffee0fbc0c) app_private (nil)
rpmdb: BDB1546 unable to join the environment
error: db_init:/home/jiahongxu/yocto/build-20141017-rpm/tmp/work/core2-64-poky-linux/rpm/5.4.14-r0/rpm-5.4.14/rpmdb/db3.c:1144: dbenv-&gt;open(-30973): BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery


Analysis:

db 6.0.30&apos;s LICENSE is &apos;AGPL-3.0&apos;, and db 5.3.28 LICENSE is &apos;Sleepycat&apos;

While building rpm image with &quot;AGPL-3.0&quot; in ${INCOMPATIBLE_LICENSE},
db 6.0.30 and db-native 5.3.28 were built, the different versions
caused the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46466</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-10-21 03:23:54 +0000</bug_when>
    <thetext>I think that we may have to solve this issue by implementing an anonymous python function that syncs up both the target and host versions of DB, when the license blacklist is enabled.

Otherwise, I think the PREFERRED_VERSION will work for both host and target automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46576</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-10-26 06:16:14 +0000</bug_when>
    <thetext>Merged into master:

http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=e5a40391dfa12c44f31bdb7550df1275edda3864</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49431</commentid>
    <comment_count>3</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-03-12 19:14:38 +0000</bug_when>
    <thetext>Hello,

Tested as on comment #1. Everything is fine. Poky hash: 0aff27522d467ee5d02289594207ddef4add7081

Marking as verified.

Costin</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>