All of lore.kernel.org
 help / color / mirror / Atom feed
* RREPLACES and RCONFLICTS when switching from linux-yocto to linux-yocto-custom
@ 2015-04-09 12:26 Bryan Evenson
  2015-04-09 18:31 ` Bryan Evenson
  0 siblings, 1 reply; 2+ messages in thread
From: Bryan Evenson @ 2015-04-09 12:26 UTC (permalink / raw)
  To: yocto

I am on poky/dizzy and I am using opkg for package management.  I recently discovered I had a problem with my custom kernel image recipe and instead of the package name being called "kernel-image-3.10.0-custom" it was called "kernel-image-3.10.0-yocto-standard" (as shown by "opkg list-installed" on the device).  However, with the updated package name opkg does not recognize the "kernel-image-3.10.0-custom" package as an available upgrade for "kernel-image-3.10.0-yocto-standard".  I know I can fix this with RREPLACES and RCONFLICTS, but what I have tried has not yet worked and I am looking for suggestions.

In my kernel bbappend, I have the following lines:
RREPLACES_${PN} = "kernel-image (<= 3.10)"
RCONFLICTS_${PN} = "kernel-image (<= 3.10)"

I tried changing this to:
RREPLACES_${PN} = "kernel-image (<= 3.10) kernel-image-3.10.0-yocto-standard"
RCONFLICTS_${PN} = "kernel-image (<= 3.10) kernel-image-3.10.0-yocto-standard"

Opkg still does not recognize the custom package as an upgrade option.  I also noticed for my installed kernel, I don't see any listing for it providing "kernel-image", but the updated package does provide "kernel-image".  However, typing "opkg info kernel-image" doesn't report anything.  So I think I may have several problems related to the package naming.  I suspect that I need to do RREPLACES/RCONFLICTS for something other than ${PN} in this situation, but I'm not sure what.

Any suggestions on how to get opkg to recognize the custom kernel as an upgrade for the yocto-standard kernel?

Thanks,
Bryan


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

* Re: RREPLACES and RCONFLICTS when switching from linux-yocto to linux-yocto-custom
  2015-04-09 12:26 RREPLACES and RCONFLICTS when switching from linux-yocto to linux-yocto-custom Bryan Evenson
@ 2015-04-09 18:31 ` Bryan Evenson
  0 siblings, 0 replies; 2+ messages in thread
From: Bryan Evenson @ 2015-04-09 18:31 UTC (permalink / raw)
  To: Bryan Evenson, yocto

All,

> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-
> bounces@yoctoproject.org] On Behalf Of Bryan Evenson
> Sent: Thursday, April 09, 2015 8:27 AM
> To: yocto@yoctoproject.org
> Subject: [yocto] RREPLACES and RCONFLICTS when switching from linux-
> yocto to linux-yocto-custom
> 
> I am on poky/dizzy and I am using opkg for package management.  I recently
> discovered I had a problem with my custom kernel image recipe and instead
> of the package name being called "kernel-image-3.10.0-custom" it was called
> "kernel-image-3.10.0-yocto-standard" (as shown by "opkg list-installed" on
> the device).  However, with the updated package name opkg does not
> recognize the "kernel-image-3.10.0-custom" package as an available upgrade
> for "kernel-image-3.10.0-yocto-standard".  I know I can fix this with
> RREPLACES and RCONFLICTS, but what I have tried has not yet worked and I
> am looking for suggestions.
> 
> In my kernel bbappend, I have the following lines:
> RREPLACES_${PN} = "kernel-image (<= 3.10)"
> RCONFLICTS_${PN} = "kernel-image (<= 3.10)"
> 
> I tried changing this to:
> RREPLACES_${PN} = "kernel-image (<= 3.10) kernel-image-3.10.0-yocto-
> standard"
> RCONFLICTS_${PN} = "kernel-image (<= 3.10) kernel-image-3.10.0-yocto-
> standard"
> 
> Opkg still does not recognize the custom package as an upgrade option.  I
> also noticed for my installed kernel, I don't see any listing for it providing
> "kernel-image", but the updated package does provide "kernel-image".
> However, typing "opkg info kernel-image" doesn't report anything.  So I think
> I may have several problems related to the package naming.  I suspect that I
> need to do RREPLACES/RCONFLICTS for something other than ${PN} in this
> situation, but I'm not sure what.
> 
> Any suggestions on how to get opkg to recognize the custom kernel as an
> upgrade for the yocto-standard kernel?

I figured it out.  The PN for this recipe is linux-yocto-custom, but that is not the package name as installed on the device.  So if I instead do:

RREPLACES_kernel-image = "kernel-image (<= 3.10) kernel-image-3.10.0-yocto-standard"
RCONFLICTS_kernel-image = "kernel-image (<= 3.10) kernel-image-3.10.0-yocto-standard"

Then the old kernel image sees the incoming one as an upgrade.  And if I hadn't previously made a mistake on the RPROVIDES on my previous kernel recipes, then I could have done away with "kernel-image-3.10.0-yocto-standard" in the RREPLACES and RPROVIDES.

Regards,
Bryan

> 
> Thanks,
> Bryan
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


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

end of thread, other threads:[~2015-04-09 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 12:26 RREPLACES and RCONFLICTS when switching from linux-yocto to linux-yocto-custom Bryan Evenson
2015-04-09 18:31 ` Bryan Evenson

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.