All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ash Charles <ashcharles@gmail.com>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: yocto@yoctoproject.org
Subject: Re: Configuring Channels for Smart PM
Date: Fri, 26 Jul 2013 15:22:25 -0700	[thread overview]
Message-ID: <CAK8F28kBgAxR4gauo8F1L9RyOYa4s_vU9Sq+=jOZbPpbm=D5qg@mail.gmail.com> (raw)
In-Reply-To: <1500336.365Z9OCVSV@helios>

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


      reply	other threads:[~2013-07-26 22:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK8F28kBgAxR4gauo8F1L9RyOYa4s_vU9Sq+=jOZbPpbm=D5qg@mail.gmail.com' \
    --to=ashcharles@gmail.com \
    --cc=paul.eggleton@linux.intel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.