<?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>13185</bug_id>
          
          <creation_ts>2019-02-15 22:19:10 +0000</creation_ts>
          <short_desc>Size verification failed during update of a debian-repository</short_desc>
          <delta_ts>2019-06-11 15:23:08 +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.6</version>
          <rep_platform>All</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.4.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max">opkg-bug</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <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>83025</commentid>
    <comment_count>0</comment_count>
      <attachid>4433</attachid>
    <who name="Max">opkg-bug</who>
    <bug_when>2019-02-15 22:19:10 +0000</bug_when>
    <thetext>Created attachment 4433
Error Log

The command &apos;opkg update&apos; shows the following message after the Package-Index has been downloaded from a repository that has a debian folder structure:

Collected errors:
 * release_verify_file: Size verification failed for (null) - main/binary-armhf/Packages.

Attached is the complete error log file.

My system configuration:

Machine model: Raspberry Pi Model B Plus Rev 1.2
Linux version 4.18.20
opkg version 0.3.6

My opkg configuration file:

arch armhf 8
option cache_dir /run/opkg
option lists_dir /run/opkg
option info_dir /run/opkg
option tmp_dir /run
dist stable http://archive.raspbian.org/raspbian main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84018</commentid>
    <comment_count>1</comment_count>
    <who name="Melanie">melanie</who>
    <bug_when>2019-05-30 16:31:45 +0000</bug_when>
    <thetext>I have a very similar configuration as reported above and get the same error message.
Which size is opkg trying to verify in the &apos;release_verify_file&apos; function?
As a workaround, is it possible to disable the size verification on the command line?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84150</commentid>
    <comment_count>2</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2019-06-11 15:23:08 +0000</bug_when>
    <thetext>Fixed on commits:

cb6ad4a dist_hash_add_from_file: add debian repository information as extra_data
b7838a0 pkg_parse_line: allow Description fields that start with an empty line
78ba8fb release_parse_line: improve parsing of Release files

Debian-based repo support on opkg is a not very well supported feature. At the time I tried it, it was totally busted. I fixed 3 issues and now it works with raspbian, but I fear there are likely other bugs lingering.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4433</attachid>
            <date>2019-02-15 22:19:10 +0000</date>
            <delta_ts>2019-02-15 22:57:48 +0000</delta_ts>
            <desc>Error Log</desc>
            <filename>opkg-update</filename>
            <type>text/plain</type>
            <size>1094</size>
            <attacher name="Max">opkg-bug</attacher>
            
              <data encoding="base64">Q29sbGVjdGVkIGVycm9yczoKICogcmVsZWFzZV92ZXJpZnlfZmlsZTogU2l6ZSB2ZXJpZmljYXRp
b24gZmFpbGVkIGZvciAobnVsbCkgLSBtYWluL2JpbmFyeS1hcm1oZi9QYWNrYWdlcy4Kb3BrZ19j
b25mX3BhcnNlX2ZpbGU6IExvYWRpbmcgY29uZiBmaWxlIC9ldGMvb3BrZy9vcGtnLmNvbmYuCm9w
a2dfY29uZl9wYXJzZV9maW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