<?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>6309</bug_id>
          
          <creation_ts>2014-05-09 23:30:21 +0000</creation_ts>
          <short_desc>rpm -V does not verify packages</short_desc>
          <delta_ts>2014-08-06 17:04:40 +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>devtools / tool chain</component>
          <version>1.5</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>TC needed</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>diego.sueiro</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>43231</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-05-09 23:30:21 +0000</bug_when>
    <thetext>rpm -V &lt;package&gt; should validation the filesystem contents of a particular package.  This is not working properly.

Good way to test this:

rpm -V grep
&lt;no error&gt;

echo &apos;foo&apos; &gt;&gt; /bin/grep.grep

rpm -V grep
S.5....T    /bin/grep.grep


(S - size, 5 - MD5SUM, T - time)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43232</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-05-09 23:34:24 +0000</bug_when>
    <thetext>This appears to be a logic issue:

lib/verify.c:

-if (!(FF_ISSET(qva-&gt;qva_fflags, GHOST) &amp;&amp; FF_ISSET(fflags, GHOST)))
+if (!(FF_ISSET(qva-&gt;qva_fflags, GHOST)) &amp;&amp; FF_ISSET(fflags, GHOST))


The offending line of code was found by diego.sueiro@gmail.com, and sent to the YP mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43254</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-05-12 15:36:14 +0000</bug_when>
    <thetext>I have sent the patch to the list for this item.  I believe it affects 1.6 and 1.5 as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43266</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-05-12 18:54:21 +0000</bug_when>
    <thetext>Fixed in master. 

commit e99a2aa28ac1b4299647e2f667380f33a2913746


Maintainers for 1.6 (daisy) and 1.5 (dora) have been asked to backport.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44167</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-06-25 00:16:28 +0000</bug_when>
    <thetext>Daisy:

commit 0fe6974b3a4bd4d4fc1d8d4398650c1313840f01


Dora:

commit 9f9bcad51381887819d58ffdde2e41307d342473</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44835</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-07-30 14:37:38 +0000</bug_when>
    <thetext>verified with qemux86 on 1.7_m1

root@qemux86:~# rpm --verify qt4-demos
S.5.....    /usr/bin/qt4/demos/affine/affine
S.5.....    /usr/bin/qt4/demos/books/books
S.5.....    /usr/bin/qt4/demos/boxes/boxes
S.5.....    /usr/bin/qt4/demos/browser/browser
S.5.....    /usr/bin/qt4/demos/chip/chip
S.5.....    /usr/bin/qt4/demos/composition/composition
S.5.....    /usr/bin/qt4/demos/declarative/calculator/calculator
S.5.....    /usr/bin/qt4/demos/declarative/flickr/flickr
S.5.....    /usr/bin/qt4/demos/declarative/minehunt/minehunt
S.5.....    /usr/bin/qt4/demos/declarative/photoviewer/photoviewer
S.5.....    /usr/bin/qt4/demos/declarative/rssnews/rssnews
S.5.....    /usr/bin/qt4/demos/declarative/samegame/samegame
S.5.....    /usr/bin/qt4/demos/declarative/snake/snake
S.5.....    /usr/bin/qt4/demos/declarative/twitter/twitter
S.5.....    /usr/bin/qt4/demos/declarative/webbrowser/webbrowser
S.5.....    /usr/bin/qt4/demos/deform/deform
S.5.....    /usr/bin/qt4/demos/embeddeddialogs/embeddeddialogs
S.5.....    /usr/bin/qt4/demos/glhypnotizer/glhypnotizer
S.5.....    /usr/bin/qt4/demos/gradients/gradients
S.5.....    /usr/bin/qt4/demos/interview/interview
S.5.....    /usr/bin/qt4/demos/mainwindow/mainwindow
S.5.....    /usr/bin/qt4/demos/pathstroke/pathstroke
S.5.....    /usr/bin/qt4/demos/qmediaplayer/qmediaplayer
S.5.....    /usr/bin/qt4/demos/spreadsheet/spreadsheet
S.5.....    /usr/bin/qt4/demos/sqlbrowser/sqlbrowser
S.5.....    /usr/bin/qt4/demos/sub-attaq/sub-attaq
S.5.....    /usr/bin/qt4/demos/textedit/textedit
S.5.....    /usr/bin/qt4/demos/undo/undo
S.5.....    /usr/bin/qtdemo
root@qemux86:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44981</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-08-06 15:23:42 +0000</bug_when>
    <thetext>Test Case is partially described in the first comment.  (That test is system &apos;destructive&apos;, as we intentionally damage a binary.)

Run &apos;rpm -V &lt;package&gt;&apos; on the target and verify that the changes are properly identified.

With &apos;prelink&apos; enabled, and the prelinker -not- installed on the target, expect almost all executables to return an md5sum mismatch.  If the prelinker -is- installed on the target, it will be used to verify the md5sum.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44983</commentid>
    <comment_count>7</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-08-06 17:04:40 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Test Case is partially described in the first comment.  (That test is system
&gt; &apos;destructive&apos;, as we intentionally damage a binary.)
&gt; 
&gt; Run &apos;rpm -V &lt;package&gt;&apos; on the target and verify that the changes are
&gt; properly identified.
&gt; 
&gt; With &apos;prelink&apos; enabled, and the prelinker -not- installed on the target,
&gt; expect almost all executables to return an md5sum mismatch.  If the
&gt; prelinker -is- installed on the target, it will be used to verify the md5sum.

Hi Mark,
Thank you for your kind explanation. I actually added TC needed into the whiteboard just so I know later that it needs a TC added.

Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>