<?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>11826</bug_id>
          
          <creation_ts>2017-07-24 12:13:33 +0000</creation_ts>
          <short_desc>[internalsolv] OPKG doesn&apos;t install new dependent packages of a package upgrade</short_desc>
          <delta_ts>2017-09-16 20:01:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.5</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.3.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Damien Gotfroi">dgotfroi</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <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>75249</commentid>
    <comment_count>0</comment_count>
    <who name="Damien Gotfroi">dgotfroi</who>
    <bug_when>2017-07-24 12:13:33 +0000</bug_when>
    <thetext>I have a bug during kernel upgrade with opkg 0.3.5 (I don&apos;t have this problem with opkg 0.3.4).

I want to upgrade kernel from kernel 4.1.30 to kernel 4.4.36.

So, in my opkg repository, kernel depends on kernel-4.4.36 and kernel-4.4.36 depends on kernel-image-4.4.36.

opkg info of kernel : 
Package: kernel
 Version: 4.4.36-r1
 Description: linux-beagleboard version 4.4.36-r1
  Linux kernel
 Section: kernel
 Priority: optional
 Maintainer: Angstrom Developers &lt;angstrom-distro-devel@linuxtogo.org&gt;
 License: GPLv2
 Architecture: beaglebone
 OE: linux-beagleboard
 Depends: kernel-4.4.36, kernel-image-4.4.36
 Source: linux-beagleboard_4.4.bb


opkg info of kernel-4.4.36 :
Package: kernel-4.4.36
 Version: 4.4.36-r1
 Description: linux-beagleboard version 4.4.36-r1
  Linux kernel
 Section: kernel
 Priority: optional
 Maintainer: Angstrom Developers &lt;angstrom-distro-devel@linuxtogo.org&gt;
 License: GPLv2
 Architecture: beaglebone
 OE: linux-beagleboard
 Depends: kernel-image-4.4.36
 Provides: kernel-4.4.36, kernel-base
 Source: linux-beagleboard_4.4.bb


opkg info of kernel-image-4.4.36 :
Package: kernel-image-4.4.36
 Version: 4.4.36-r1
 Description: linux-beagleboard version 4.4.36-r1
  Linux kernel
 Section: kernel
 Priority: optional
 Maintainer: Angstrom Developers &lt;angstrom-distro-devel@linuxtogo.org&gt;
 License: GPLv2
 Architecture: beaglebone
 OE: linux-beagleboard
 Depends: kernel-devicetree
 Provides: kernel-image
 Source: linux-beagleboard_4.4.bb

Kernel-devicetree is well upgraded from v4.1.30 to v4.4.36 whitout any error.

when I run upgrade, Opkg well upgrade kernel_4.1.30 to kernel_4.4.36.
It well upgrade kernel-4.1.30_4.1.30 to kernel-4.4.36_4.4.36.

But when It must upgrade kernel-image-4.4.36, it does nothing.

If I set verbose to level 3, I can see the following :

pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel-image-4.4.36:
pkg_hash_fetch_best_installation_candidate: Adding kernel-image-4.4.36 to providers.
pkg_hash_fetch_best_installation_candidate: Not selecting kernel-image-4.4.36 4.4.36 due to unmatched constraint.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel-image-4.4.36:
pkg_hash_fetch_best_installation_candidate: Adding kernel-image-4.4.36 to providers.
pkg_hash_fetch_best_installation_candidate: kernel-image-4.4.36 arch=beaglebone arch_priority=66 version=4.4.36.
pkg_hash_fetch_best_installation_candidate: Candidate: kernel-image-4.4.36 4.4.36.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=0x1958658
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel-devicetree:
pkg_hash_fetch_best_installation_candidate: Adding kernel-devicetree to providers.
pkg_hash_fetch_best_installation_candidate: kernel-devicetree arch=beaglebone arch_priority=66 version=4.4.36.
pkg_hash_fetch_best_installation_candidate: Candidate: kernel-devicetree 4.4.36.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=0x1ab3a70
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel-image-4.4.36:
pkg_hash_fetch_best_installation_candidate: Adding kernel-image-4.4.36 to providers.
pkg_hash_fetch_best_installation_candidate: Not selecting kernel-image-4.4.36 4.4.36 due to unmatched constraint.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=(nil)
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel-image-4.4.36:
pkg_hash_fetch_best_installation_candidate: Adding kernel-image-4.4.36 to providers.
pkg_hash_fetch_best_installation_candidate: kernel-image-4.4.36 arch=beaglebone arch_priority=66 version=4.4.36.
pkg_hash_fetch_best_installation_candidate: Candidate: kernel-image-4.4.36 4.4.36.
pkg_hash_fetch_unsatisfied_dependencies: satisfying_pkg=0x1958658
pkg_hash_fetch_best_installation_candidate: Best installation candidate for kernel-image-4.4.36:
pkg_hash_fetch_best_installation_candidate: Adding kernel-image-4.4.36 to providers.
pkg_hash_fetch_best_installation_candidate: kernel-image-4.4.36 arch=beaglebone arch_priority=66 version=4.4.36.
pkg_hash_fetch_best_installation_candidate: Candidate: kernel-image-4.4.36 4.4.36.
...
opkg_recurse_pkgs_in_order: Descending on pkg kernel-image-4.4.36.
opkg_recurse_pkgs_in_order: pkg kernel-image-4.1.30.
opkg_recurse_pkgs_in_order: Descending on pkg kernel-image-4.1.30.
opkg_recurse_pkgs_in_order: pkg kernel-image-4.1.30 already visited, skipping.


Kernel-image-4.1.30 info is :
Package: kernel-image-4.1.30
 Version: 4.1.30-r8
 Description: linux-beagleboard version 4.1.30-r8
  Linux kernel
 Section: kernel
 Priority: optional
 Maintainer: Angstrom Developers &lt;angstrom-distro-devel@linuxtogo.org&gt;
 License: GPLv2
 Architecture: beaglebone
 OE: linux-beagleboard
 Depends: kernel-devicetree
 Recommends: kernel-devicetree-overlays
 Provides: kernel-image
 Source: linux-beagleboard_4.1.bb


Expected output :
Kernel v4.4.36, kernel-4.4.36 v4.4.36 and kernel-image-4.4.36 v4.4.36 installed.
Kernel v4.1.30, kernel-4.1.30 v4.1.30 and kernel-image-4.1.30 v4.1.30 removed.

Actual output :
Kernel v4.4.36 and kernel-4.4.36 v4.4.36 installed and kernel-image-4.4.36 v4.4.36 NOT installed.
Kernel v4.1.30, kernel-4.1.30 v4.1.30 and kernel-image-4.1.30 v4.1.30 still installed because of kernel-image-4.1.30 dependencies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75304</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-07-25 20:47:13 +0000</bug_when>
    <thetext>Just tried it using the libsolv backend, where it worked:

adelcast@delcastillo2 ~/git/opkg/tests $ opkg -o /tmp/opkg list-installed
kernel - 4.4.10
kernel-4.4.10 - 4.4.10
kernel-image-4.4.10 - 4.4.10

adelcast@delcastillo2 ~/git/opkg/tests $ opkg -o /tmp/opkg upgrade
Installing kernel-image-4.4.36 (4.4.36) on root
Downloading file:/tmp/opk/kernel-image-4.4.36_4.4.36_all.opk.
Installing kernel-4.4.36 (4.4.36) on root
Downloading file:/tmp/opk/kernel-4.4.36_4.4.36_all.opk.
Upgrading kernel from 4.4.10 to 4.4.36 on root
Downloading file:/tmp/opk/kernel_4.4.36_all.opk.

adelcast@delcastillo2 ~/git/opkg/tests $ opkg -o /tmp/opkg list-installed
kernel - 4.4.36
kernel-4.4.10 - 4.4.10
kernel-4.4.36 - 4.4.36
kernel-image-4.4.10 - 4.4.10
kernel-image-4.4.36 - 4.4.36

since there is no replace/conflicts/provides relationship between kernel-4.4.10 &amp; kernel-4.4.36 and between kernel-image-4.4.10 &amp; kernel-image-4.4.36, the end result keeps both version on the system at the same time (which from the solver perspective is the correct result). I tried 0.3.4 with the internal solver and got the same result, so this is a regression from 0.3.4 for the internal solver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75491</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-07-31 15:33:21 +0000</bug_when>
    <thetext>fixed on 5a6075566a7035c210a85c5b360a54538790caf6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76911</commentid>
    <comment_count>3</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-09-16 20:01:19 +0000</bug_when>
    <thetext>Already fixed</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>