All of lore.kernel.org
 help / color / mirror / Atom feed
* RPM to Verify Installed Packages
@ 2014-05-06 18:16 Diego Sueiro
  2014-05-06 18:29 ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Diego Sueiro @ 2014-05-06 18:16 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

Folks,

I'm using Yocto on dora branch.
We got a binary corrupted after a package update using rpm.
But "rpm -V" [1][2] command doesn't show any errors.
Is there any limitation for rpm (5.4.9) built from Yocto?
The rpm database is not corrupted.

I took a look on rpm recipe and didn't found anything related to a specific
PACKAGECONFIG.

Any help is welcome.


[1] - http://www.rpm.org/max-rpm/ch-rpm-verify.html
[2] - http://www.rpm.org/max-rpm/s1-rpm-verify-output.html

Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

[-- Attachment #2: Type: text/html, Size: 1248 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-06 18:16 RPM to Verify Installed Packages Diego Sueiro
@ 2014-05-06 18:29 ` Khem Raj
  2014-05-06 18:34   ` Diego Sueiro
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2014-05-06 18:29 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: yocto@yoctoproject.org

On Tue, May 6, 2014 at 11:16 AM, Diego Sueiro <diego.sueiro@gmail.com> wrote:
> We got a binary corrupted after a package update using rpm.

what kind of corruption ?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-06 18:29 ` Khem Raj
@ 2014-05-06 18:34   ` Diego Sueiro
  2014-05-06 18:39     ` Khem Raj
  0 siblings, 1 reply; 10+ messages in thread
From: Diego Sueiro @ 2014-05-06 18:34 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

Hi Khem,
On Tue, May 6, 2014 at 3:29 PM, Khem Raj <raj.khem@gmail.com> wrote:

> what kind of corruption ?


It's hard to say. But when I try to execute it I receive: "cannot execute
binary file".
And the output of "file" command is: "data".

My bet is that the system was powered down during the update process.

Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

[-- Attachment #2: Type: text/html, Size: 1175 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-06 18:34   ` Diego Sueiro
@ 2014-05-06 18:39     ` Khem Raj
  2014-05-06 18:48       ` Diego Sueiro
  0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2014-05-06 18:39 UTC (permalink / raw)
  To: Diego Sueiro; +Cc: yocto@yoctoproject.org

On Tue, May 6, 2014 at 11:34 AM, Diego Sueiro <diego.sueiro@gmail.com> wrote:
>
> It's hard to say. But when I try to execute it I receive: "cannot execute
> binary file".
> And the output of "file" command is: "data".
>
> My bet is that the system was powered down during the update process.

what happens if you reinstall it ?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-06 18:39     ` Khem Raj
@ 2014-05-06 18:48       ` Diego Sueiro
  2014-05-07 12:46         ` Diego Sueiro
  0 siblings, 1 reply; 10+ messages in thread
From: Diego Sueiro @ 2014-05-06 18:48 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]

On Tue, May 6, 2014 at 3:39 PM, Khem Raj <raj.khem@gmail.com> wrote:

> On Tue, May 6, 2014 at 11:34 AM, Diego Sueiro <diego.sueiro@gmail.com>
> wrote:
> >
> > It's hard to say. But when I try to execute it I receive: "cannot execute
> > binary file".
> > And the output of "file" command is: "data".
> >
> > My bet is that the system was powered down during the update process.
>
> what happens if you reinstall it ?


It works.
But the problem is that --verify option is not working.
Even if I remove a file from the installed package it did not point for a
missing file.

Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

[-- Attachment #2: Type: text/html, Size: 1453 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-06 18:48       ` Diego Sueiro
@ 2014-05-07 12:46         ` Diego Sueiro
  2014-05-09 15:17           ` Diego Sueiro
  2014-05-09 17:14           ` Mark Hatle
  0 siblings, 2 replies; 10+ messages in thread
From: Diego Sueiro @ 2014-05-07 12:46 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 971 bytes --]

Folks,

On Tue, May 6, 2014 at 3:48 PM, Diego Sueiro <diego.sueiro@gmail.com> wrote:

> On Tue, May 6, 2014 at 3:39 PM, Khem Raj <raj.khem@gmail.com> wrote:
>
>> On Tue, May 6, 2014 at 11:34 AM, Diego Sueiro <diego.sueiro@gmail.com>
>> wrote:
>> >
>> > It's hard to say. But when I try to execute it I receive: "cannot
>> execute
>> > binary file".
>> > And the output of "file" command is: "data".
>> >
>> > My bet is that the system was powered down during the update process.
>>
>> what happens if you reinstall it ?
>
>
> It works.
> But the problem is that --verify option is not working.
> Even if I remove a file from the installed package it did not point for a
> missing file.
>

Any thoughts?



Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

[-- Attachment #2: Type: text/html, Size: 1981 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-07 12:46         ` Diego Sueiro
@ 2014-05-09 15:17           ` Diego Sueiro
  2014-05-09 17:14           ` Mark Hatle
  1 sibling, 0 replies; 10+ messages in thread
From: Diego Sueiro @ 2014-05-09 15:17 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 2011 bytes --]

Folks,

After 1 day of debugging I found what was causing the issue.

Commenting out the to lines (590-591) below on lib/verify.c
(showVerifyPackage function) solved the issue:

    /* If not verifying %ghost, skip ghost files. */
    /* XXX the broken!!! logic disables %ghost queries always. */
    if (!(FF_ISSET(qva->qva_fflags, GHOST) && FF_ISSET(fflags, GHOST)))
        continue;


I've tested "rpm -V" on qemuarm and qemux86 and it's reporting errors for
missing files and MD5 error at least.

I really don't know what is the side effect of this change and any help on
trying to understand what's going on with this bug is very welcome.



Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/


On Wed, May 7, 2014 at 9:46 AM, Diego Sueiro <diego.sueiro@gmail.com> wrote:

> Folks,
>
> On Tue, May 6, 2014 at 3:48 PM, Diego Sueiro <diego.sueiro@gmail.com>wrote:
>
>> On Tue, May 6, 2014 at 3:39 PM, Khem Raj <raj.khem@gmail.com> wrote:
>>
>>> On Tue, May 6, 2014 at 11:34 AM, Diego Sueiro <diego.sueiro@gmail.com>
>>> wrote:
>>> >
>>> > It's hard to say. But when I try to execute it I receive: "cannot
>>> execute
>>> > binary file".
>>> > And the output of "file" command is: "data".
>>> >
>>> > My bet is that the system was powered down during the update process.
>>>
>>> what happens if you reinstall it ?
>>
>>
>> It works.
>> But the problem is that --verify option is not working.
>> Even if I remove a file from the installed package it did not point for a
>> missing file.
>>
>
> Any thoughts?
>
>
>
> Regards,
>
> --
> *dS
> Diego Sueiro
>
> Administrador do Embarcados
> www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>
>
> /*long live rock 'n roll*/
>

[-- Attachment #2: Type: text/html, Size: 3945 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-07 12:46         ` Diego Sueiro
  2014-05-09 15:17           ` Diego Sueiro
@ 2014-05-09 17:14           ` Mark Hatle
  2014-05-12 15:37             ` Mark Hatle
  1 sibling, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2014-05-09 17:14 UTC (permalink / raw)
  To: yocto

On 5/7/14, 7:46 AM, Diego Sueiro wrote:
> Folks,

I'm looking at this issue.  I'd suggest you open a bug in the Yocto Project 
bugzilla.  Feel free to assign it to me.  (I'll end up with it anyway...)

--Mark

> On Tue, May 6, 2014 at 3:48 PM, Diego Sueiro <diego.sueiro@gmail.com
> <mailto:diego.sueiro@gmail.com>> wrote:
>
>     On Tue, May 6, 2014 at 3:39 PM, Khem Raj <raj.khem@gmail.com
>     <mailto:raj.khem@gmail.com>> wrote:
>
>         On Tue, May 6, 2014 at 11:34 AM, Diego Sueiro <diego.sueiro@gmail.com
>         <mailto:diego.sueiro@gmail.com>> wrote:
>          >
>          > It's hard to say. But when I try to execute it I receive: "cannot execute
>          > binary file".
>          > And the output of "file" command is: "data".
>          >
>          > My bet is that the system was powered down during the update process.
>
>         what happens if you reinstall it ?
>
>
>     It works.
>     But the problem is that --verify option is not working.
>     Even if I remove a file from the installed package it did not point for a
>     missing file.
>
>
> Any thoughts?
>
>
>
> Regards,
>
> --
> *dS
> Diego Sueiro
>
> Administrador do Embarcados
> www.embarcados.com.br
> <http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>
>
> /*long live rock 'n roll*/
>
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-09 17:14           ` Mark Hatle
@ 2014-05-12 15:37             ` Mark Hatle
  2014-05-12 16:11               ` Diego Sueiro
  0 siblings, 1 reply; 10+ messages in thread
From: Mark Hatle @ 2014-05-12 15:37 UTC (permalink / raw)
  To: yocto

On 5/9/14, 12:14 PM, Mark Hatle wrote:
> On 5/7/14, 7:46 AM, Diego Sueiro wrote:
>> Folks,
>
> I'm looking at this issue.  I'd suggest you open a bug in the Yocto Project
> bugzilla.  Feel free to assign it to me.  (I'll end up with it anyway...)

I opened a bug, 6309.  I've sent a fix for master, and we can work it back into 
previous versions once approved by oe-core.

--Mark

> --Mark
>
>> On Tue, May 6, 2014 at 3:48 PM, Diego Sueiro <diego.sueiro@gmail.com
>> <mailto:diego.sueiro@gmail.com>> wrote:
>>
>>      On Tue, May 6, 2014 at 3:39 PM, Khem Raj <raj.khem@gmail.com
>>      <mailto:raj.khem@gmail.com>> wrote:
>>
>>          On Tue, May 6, 2014 at 11:34 AM, Diego Sueiro <diego.sueiro@gmail.com
>>          <mailto:diego.sueiro@gmail.com>> wrote:
>>           >
>>           > It's hard to say. But when I try to execute it I receive: "cannot execute
>>           > binary file".
>>           > And the output of "file" command is: "data".
>>           >
>>           > My bet is that the system was powered down during the update process.
>>
>>          what happens if you reinstall it ?
>>
>>
>>      It works.
>>      But the problem is that --verify option is not working.
>>      Even if I remove a file from the installed package it did not point for a
>>      missing file.
>>
>>
>> Any thoughts?
>>
>>
>>
>> Regards,
>>
>> --
>> *dS
>> Diego Sueiro
>>
>> Administrador do Embarcados
>> www.embarcados.com.br
>> <http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>
>>
>> /*long live rock 'n roll*/
>>
>>
>



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: RPM to Verify Installed Packages
  2014-05-12 15:37             ` Mark Hatle
@ 2014-05-12 16:11               ` Diego Sueiro
  0 siblings, 0 replies; 10+ messages in thread
From: Diego Sueiro @ 2014-05-12 16:11 UTC (permalink / raw)
  To: Mark Hatle; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

Mark,

On Mon, May 12, 2014 at 12:37 PM, Mark Hatle <mark.hatle@windriver.com>wrote:

> On 5/9/14, 12:14 PM, Mark Hatle wrote:
>
>> On 5/7/14, 7:46 AM, Diego Sueiro wrote:
>>
>>> Folks,
>>>
>>
>> I'm looking at this issue.  I'd suggest you open a bug in the Yocto
>> Project
>> bugzilla.  Feel free to assign it to me.  (I'll end up with it anyway...)
>>
>
> I opened a bug, 6309.  I've sent a fix for master, and we can work it back
> into previous versions once approved by oe-core.


Thanks for your effort.

Regards,

--
*dS
Diego Sueiro

Administrador do Embarcados
www.embarcados.com.br<http://www.embarcados.com.br/?utm_source=assinatura_diego&utm_medium=e-mail&utm_campaign=Assinatura%20Email%20Diego>

/*long live rock 'n roll*/

[-- Attachment #2: Type: text/html, Size: 1491 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-05-12 16:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-06 18:16 RPM to Verify Installed Packages Diego Sueiro
2014-05-06 18:29 ` Khem Raj
2014-05-06 18:34   ` Diego Sueiro
2014-05-06 18:39     ` Khem Raj
2014-05-06 18:48       ` Diego Sueiro
2014-05-07 12:46         ` Diego Sueiro
2014-05-09 15:17           ` Diego Sueiro
2014-05-09 17:14           ` Mark Hatle
2014-05-12 15:37             ` Mark Hatle
2014-05-12 16:11               ` Diego Sueiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.