Openembedded Core Discussions
 help / color / mirror / Atom feed
* Preventing RRECOMMENDS from installing
@ 2012-01-10 10:03 Anders Darander
  2012-01-10 10:08 ` Phil Blundell
  2012-01-10 10:09 ` Martin Jansa
  0 siblings, 2 replies; 5+ messages in thread
From: Anders Darander @ 2012-01-10 10:03 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Is there a simple way, in a bbappend-file to prevent packages in an
RRECOMMENDS from being installed? E.g. if package foo has:
RRECOMMENDS_${PN} += "bar"

I'd reluctant to rewrite RRECOMMENDS_${PN} completely, as foo sets
RRECOMMENDS using += (or =+), thus I'd like not to remove other packages
from RRECOMMENDS. 

If possible, I'd like to avoid patching the foo.bb-file, and just have a
foo.bbappend in my own layer.

I've unsuccesfully tried different variants using oe_filter_out, but
they don't seems to prevent bar from being installed.

Thanks in advance for any hints!

Cheers,
Anders

-- 
Anders Darander
ChargeStorm AB / eStorm AB



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

* Re: Preventing RRECOMMENDS from installing
  2012-01-10 10:03 Preventing RRECOMMENDS from installing Anders Darander
@ 2012-01-10 10:08 ` Phil Blundell
  2012-01-10 10:26   ` Paul Eggleton
  2012-01-10 10:09 ` Martin Jansa
  1 sibling, 1 reply; 5+ messages in thread
From: Phil Blundell @ 2012-01-10 10:08 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Tue, 2012-01-10 at 11:03 +0100, Anders Darander wrote:
> Is there a simple way, in a bbappend-file to prevent packages in an
> RRECOMMENDS from being installed? E.g. if package foo has:
> RRECOMMENDS_${PN} += "bar"

If you mean you just want to stop them getting installed during rootfs
construction, you can achieve that by declaring them to be
BAD_RECOMMENDATIONS.

If you want to remove the actual Recommends: header then you probably
need to write an anonymous python function to bash RRECOMMENDS around
after parsing completes.

p.





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

* Re: Preventing RRECOMMENDS from installing
  2012-01-10 10:03 Preventing RRECOMMENDS from installing Anders Darander
  2012-01-10 10:08 ` Phil Blundell
@ 2012-01-10 10:09 ` Martin Jansa
  1 sibling, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2012-01-10 10:09 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

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

On Tue, Jan 10, 2012 at 11:03:06AM +0100, Anders Darander wrote:
> 
> Is there a simple way, in a bbappend-file to prevent packages in an
> RRECOMMENDS from being installed? E.g. if package foo has:
> RRECOMMENDS_${PN} += "bar"
> 
> I'd reluctant to rewrite RRECOMMENDS_${PN} completely, as foo sets
> RRECOMMENDS using += (or =+), thus I'd like not to remove other packages
> from RRECOMMENDS. 
> 
> If possible, I'd like to avoid patching the foo.bb-file, and just have a
> foo.bbappend in my own layer.
> 
> I've unsuccesfully tried different variants using oe_filter_out, but
> they don't seems to prevent bar from being installed.
> 
> Thanks in advance for any hints!

Cannot you use
BAD_RECOMMENDATIONS += "bar"
for your image/distro?

It was broken for some time, but iirc should be fixed now.

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: Preventing RRECOMMENDS from installing
  2012-01-10 10:08 ` Phil Blundell
@ 2012-01-10 10:26   ` Paul Eggleton
  2012-01-10 10:42     ` Anders Darander
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2012-01-10 10:26 UTC (permalink / raw)
  To: openembedded-core

On Tuesday 10 January 2012 10:08:24 Phil Blundell wrote:
> On Tue, 2012-01-10 at 11:03 +0100, Anders Darander wrote:
> > Is there a simple way, in a bbappend-file to prevent packages in an
> > RRECOMMENDS from being installed? E.g. if package foo has:
> > RRECOMMENDS_${PN} += "bar"
> 
> If you mean you just want to stop them getting installed during rootfs
> construction, you can achieve that by declaring them to be
> BAD_RECOMMENDATIONS.

FWIW, it should be noted that this currently works for ipk packaging only.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



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

* Re: Preventing RRECOMMENDS from installing
  2012-01-10 10:26   ` Paul Eggleton
@ 2012-01-10 10:42     ` Anders Darander
  0 siblings, 0 replies; 5+ messages in thread
From: Anders Darander @ 2012-01-10 10:42 UTC (permalink / raw)
  To: openembedded-core

* Paul Eggleton <paul.eggleton@linux.intel.com> [120110 11:26]:

> On Tuesday 10 January 2012 10:08:24 Phil Blundell wrote:
> > On Tue, 2012-01-10 at 11:03 +0100, Anders Darander wrote:
> > > Is there a simple way, in a bbappend-file to prevent packages in an
> > > RRECOMMENDS from being installed? E.g. if package foo has:
> > > RRECOMMENDS_${PN} += "bar"

> > If you mean you just want to stop them getting installed during rootfs
> > construction, you can achieve that by declaring them to be
> > BAD_RECOMMENDATIONS.

> FWIW, it should be noted that this currently works for ipk packaging only.

Ah, good to know...
I was just about to start a new round of tests, but as we're currently
using rpm packaging, there probably is no need...

For the beginning, I'll have to stay with the local patch approach then,
and later on, investigate what it would take to implement this for rpm
packaging.

Cheers,
Anders

-- 
Anders Darander
ChargeStorm AB / eStorm AB



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

end of thread, other threads:[~2012-01-10 10:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10 10:03 Preventing RRECOMMENDS from installing Anders Darander
2012-01-10 10:08 ` Phil Blundell
2012-01-10 10:26   ` Paul Eggleton
2012-01-10 10:42     ` Anders Darander
2012-01-10 10:09 ` Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox