<?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>6819</bug_id>
          
          <creation_ts>2014-10-08 12:07:38 +0000</creation_ts>
          <short_desc>opkg: remove pkg with  --force-removal-of-dependent-packages failed</short_desc>
          <delta_ts>2014-11-05 02:28:31 +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>RESOLVED</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</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <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>46188</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-10-08 12:07:38 +0000</bug_when>
    <thetext>1. vim local.conf
...
PACKAGE_CLASSES ?= &quot;package_ipk&quot;
IMAGE_INSTALL_append = &quot; perl-modules&quot;
IMAGE_FEATURES += &quot;package-management ssh-server-dropbear&quot;
...

2. bitbake core-image-minimal

3. runqemu qemux86

4. ssh target

opkg remove perl --force-removal-of-dependent-packages
...
Removing package perl-module-extutils-mm-dos from root...
...
Removing package perl-module-extutils-mm-dos from root...
You can force removal of packages with failed prerm scripts with the option: 
	--force-remove
No packages removed.
Collected errors:
 * pkg_run_script: Internal error: perl-module-extutils-mm-dos has a NULL tmp_unpack_dir.
 * opkg_remove_pkg: not removing package &quot;perl-module-extutils-mm-dos&quot;, prerm script failed
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46754</commentid>
    <comment_count>1</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-11-05 02:28:31 +0000</bug_when>
    <thetext>Merged into master:

commit 99b0f382f98102272206d448e3394f2e660a9a57
Author: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
Date:   Wed Oct 8 20:16:36 2014 +0800

    opkg: fix remove pkg with --force-removal-of-dependent-packages failed
    
    opkg remove perl --force-removal-of-dependent-packages
    ...
    Removing package perl-module-extutils-mm-dos from root...
    ...
    Removing package perl-module-extutils-mm-dos from root...
    You can force removal of packages with failed prerm scripts with the option:
        --force-remove
    No packages removed.
    Collected errors:
     * pkg_run_script: Internal error: perl-module-extutils-mm-dos has a
    NULL tmp_unpack_dir.
     * opkg_remove_pkg: not removing package &quot;perl-module-extutils-mm-dos&quot;,
    prerm script failed
    ...
    
    While remove pkg with &apos;--force-removal-of-dependent-packages&apos;,
    pkg may be added to remove list multiple times, add status
    check to make sure pkg only be removed once.
    
    [YOCTO #6819]
    
    (From OE-Core rev: 476f864b1564265469b5c9074c1f262bce21f119)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>