All of lore.kernel.org
 help / color / mirror / Atom feed
* Configuring Channels for Smart PM
@ 2013-07-25  1:59 Ash Charles
  2013-07-25  9:24 ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Ash Charles @ 2013-07-25  1:59 UTC (permalink / raw)
  To: yocto

Hi,


I'm looking to use a bbappend to add a repository/channel that the
smart package manager can use out of the box.  For zypper, this was
just a question of adding a configuration file to the recipe.

How might I preconfigure Smart?  The only way I've come up with so far
is a postinst 'smart channel --add....'

Thanks,
--Ash


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

* Re: Configuring Channels for Smart PM
  2013-07-25  1:59 Configuring Channels for Smart PM Ash Charles
@ 2013-07-25  9:24 ` Paul Eggleton
  2013-07-26 22:22   ` Ash Charles
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2013-07-25  9:24 UTC (permalink / raw)
  To: Ash Charles; +Cc: yocto

Hi Ash,

On Wednesday 24 July 2013 18:59:30 Ash Charles wrote:
> I'm looking to use a bbappend to add a repository/channel that the
> smart package manager can use out of the box.  For zypper, this was
> just a question of adding a configuration file to the recipe.
> 
> How might I preconfigure Smart?  The only way I've come up with so far
> is a postinst 'smart channel --add....'

It does seem like Smart is geared more to configuration via the command line 
rather than editing the configuration file directly.

One approach you could take would be to add a shell function to your image 
recipe (or some class that multiple image recipes can inherit) that adds the 
feeds, and trigger that from ROOTFS_POSTPROCESS_COMMAND; this would add the 
feeds to your image when the image is generated. Something like this:


add_custom_smart_config() {
	smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart channel --add ... -y
}

ROOTFS_POSTPROCESS_COMMAND += "add_custom_smart_config ; "


It would be nice to have something built-in for this. I'll add it to my todo 
list.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: Configuring Channels for Smart PM
  2013-07-25  9:24 ` Paul Eggleton
@ 2013-07-26 22:22   ` Ash Charles
  0 siblings, 0 replies; 3+ messages in thread
From: Ash Charles @ 2013-07-26 22:22 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto

Hi Paul,

Thanks very much for your help.  This worked like a charm for me.

For future people searching:
- this didn't work (don't know why):
https://github.com/gumstix/meta-gumstix-extras/blob/02709f4fc5db1c4be6e5fc77e5e9630749a6daf7/recipes-devtools/python/python-smartpm/python-smartpm_1.4.1.bbappend

- this worked:
https://github.com/gumstix/meta-gumstix-extras/commit/acff007afffb19269e21bfd4cc1398fe23f00160

Hurrah!
--Ash

On Thu, Jul 25, 2013 at 2:24 AM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> Hi Ash,
>
> On Wednesday 24 July 2013 18:59:30 Ash Charles wrote:
>> I'm looking to use a bbappend to add a repository/channel that the
>> smart package manager can use out of the box.  For zypper, this was
>> just a question of adding a configuration file to the recipe.
>>
>> How might I preconfigure Smart?  The only way I've come up with so far
>> is a postinst 'smart channel --add....'
>
> It does seem like Smart is geared more to configuration via the command line
> rather than editing the configuration file directly.
>
> One approach you could take would be to add a shell function to your image
> recipe (or some class that multiple image recipes can inherit) that adds the
> feeds, and trigger that from ROOTFS_POSTPROCESS_COMMAND; this would add the
> feeds to your image when the image is generated. Something like this:
>
>
> add_custom_smart_config() {
>         smart --data-dir=${IMAGE_ROOTFS}/var/lib/smart channel --add ... -y
> }
>
> ROOTFS_POSTPROCESS_COMMAND += "add_custom_smart_config ; "
>
>
> It would be nice to have something built-in for this. I'll add it to my todo
> list.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre


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

end of thread, other threads:[~2013-07-26 22:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25  1:59 Configuring Channels for Smart PM Ash Charles
2013-07-25  9:24 ` Paul Eggleton
2013-07-26 22:22   ` Ash Charles

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.