<?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>8351</bug_id>
          
          <creation_ts>2015-09-21 01:02:08 +0000</creation_ts>
          <short_desc>double entries in the info file (old issue #142)</short_desc>
          <delta_ts>2018-02-15 18:16:58 +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.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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.4.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro del Castillo">alejandro.delcastillo</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          <cc>c.andersen</cc>
    
    <cc>jatinvatsalya</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54329</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-09-21 01:02:08 +0000</bug_when>
    <thetext>What version of the product are you using? On what operating system?
latest 0.2.x

Please provide any additional information below.

Sometimes I find two section for the same package in the /usr/lib/opkg/info file. The two sections describe the package in different versions. The newer Version has as status a &quot;unknown user installed&quot;, the older package a &quot;install user not-installed&quot;
This double sections results in some Warnings on a opkg upgrade like: &quot;Not selecting kernel 3.16.1.86 as installing it would break existing dependencies.&quot;
The double section is not the kernel section, but the section of a package that depends the kernel.

What is the reason for this double section and how can I prevent this?

Originally reported by muusclaus, Aug 22, 2014
-----------------------------------------------------------------------------

#1 paul.betafive (Aug 25, 2014)
The older package probably shouldn&apos;t be marked as &quot;install&quot; as that indicates that state_want = SW_INSTALL and that opkg wants to install that pacakge. I think it should be &quot;unknown&quot; or possibly &quot;deinstall&quot;.

I&apos;ll look into how state_want is set during a package upgrade after the v0.2.3 release unless this is a regression against previous behaviour in the v0.2.x series.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56205</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-11-04 17:50:21 +0000</bug_when>
    <thetext>from andreas.schultz@gmail.com on 11/03/2015

I can confirm that this problem still occurs with opkg 0.3.

There seems to be no way to resolve it (except for manual editing the status file).

Here is an example from an affected installation:

# opkg list-upgradable
Not selecting shadow-securetty 4.2.1 as installing it would break existing dependencies.


# opkg -V4 upgrade shadow-securetty | grep shadow-securetty
...
pkg_breaks_reverse_dep: Installing shadow-securetty 4.2.1 would break reverse dependency from shadow-securetty-dev.
Not selecting shadow-securetty 4.2.1 as installing it would break existing dependencies.
...


# opkg status shadow-securetty-dev 
Package: shadow-securetty-dev
Version: 4.2.1-r3.5
Depends: shadow-securetty (= 4.2.1-r3.5)
Status: install user installed
Architecture: lanner_fw8758
Installed-Time: 1446482508

# opkg status shadow-securetty    
Package: shadow-securetty
Version: 4.2.1-r3.5
Status: install ok installed
Architecture: lanner_fw8758
Installed-Time: 1446481775


# grep -A5 &quot;Package: shadow-securetty&quot; /var/lib/opkg/status
Package: shadow-securetty
Version: 4.2.1-r3.5
Status: install ok installed
Architecture: lanner_fw8758
Installed-Time: 1446481775
Auto-Installed: yes
--
Package: shadow-securetty
Version: 4.2.1-r3.2
Status: install ok not-installed
Architecture: lanner_fw8758
Installed-Time: 1438343802
Auto-Installed: yes
--
Package: shadow-securetty-dev
Version: 4.2.1-r3.5
Depends: shadow-securetty (= 4.2.1-r3.5)
Status: install user installed
Architecture: lanner_fw8758
Installed-Time: 1446482508</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62547</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2016-05-31 18:54:21 +0000</bug_when>
    <thetext>Wasn&apos;t able to reproduce on 0.3.2. Will take another look at this during the 0.3.3 timeframe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70681</commentid>
    <comment_count>3</comment_count>
    <who name="jatin jain">jatinvatsalya</who>
    <bug_when>2017-02-14 10:49:56 +0000</bug_when>
    <thetext>Hi

Is the problem resolved..?
I am facing the same problem and i am in big trouble.
can anyone put some light into this..?

Thanks and Regards
Jatin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71857</commentid>
    <comment_count>4</comment_count>
    <who name="Christian Andersen">c.andersen</who>
    <bug_when>2017-03-29 11:27:59 +0000</bug_when>
    <thetext>I have this issue, too.

I was able to resolve it manually by deleting the duplicated entry to the myapp-dev package in /var/lib/opkg/status.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78416</commentid>
    <comment_count>5</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-11-29 23:19:36 +0000</bug_when>
    <thetext>Christian, Jaitin: it would help me a whole lot if you could come up with a reproducible case with the latest opkg. I haven&apos;t seen this problem, so its pretty hard for me to figure out what&apos;s going....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79461</commentid>
    <comment_count>6</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2018-02-15 18:16:58 +0000</bug_when>
    <thetext>fixed on 6ace897319009bdc367f06b645c465daa9f998c9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>