All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: Paul Barker <paul@paulbarker.me.uk>
Cc: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: opkg dependencies and update-alternatives
Date: Mon, 18 Nov 2013 17:20:14 +0100	[thread overview]
Message-ID: <20131118162014.GH3727@jama> (raw)
In-Reply-To: <CANyK_8eR05HauKBOd3AoTMjibYBgZEhBSv5pN5Yt_+s2CavsNA@mail.gmail.com>

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

On Mon, Nov 18, 2013 at 03:31:09PM +0000, Paul Barker wrote:
> On 18 November 2013 11:57, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > On Mon, 2013-11-18 at 12:40 +0100, Martin Jansa wrote:
> >>
> >> FWIW: current u-a implementation provided by opkg is in OE-classic and
> >> was in older poky/oe-core provided also in standalone recipe
> >> update-alternatives-cworth
> >>
> >> http://git.openembedded.org/openembedded/tree/recipes/update-alternatives/update-alternatives-cworth_0.99.154.bb
> >>
> >> commit 44b538eedab7c255051fa3375f9f2439cd2db3dd
> >> Author: Marcin Juszkiewicz <hrw@openedhand.com>
> >> Date:   Wed Mar 19 15:36:01 2008 +0000
> >>
> >>     update-alternatives-cworth: dropped as they are now generated with opkg recipe
> >
> > Turning this back into a standalone recipe might be worthwhile and seems
> > like the best way to address the problems.
> >
> > Paul: Have you any opinion of moving update-alternatives to its own
> > repository separate from opkg? or just check it into OE-Core as its just
> > a single script? Its not as if it really needs much from opkg at this
> > point?
> 
> I'd be quite happy to break it out into a separate repo. I think
> that's better than direct inclusion into oe-core so that it remains
> easily usable by non-oe systems.

What about including it in opkg-utils repo? And maybe even providing u-a
by opkg-utils.bb?

opkg-utils.bb doesn't have any DEPENDS (Only python RDEPENDS) so it
would be good compromise between opkg and completely new recipe.

> >
> > I'm also wondering how it compares to the dpkg version (which is C
> > iirc). Should we switch to that? Does it give better performance?
> >
> 
> The dpkg version does have more features but the dpkg recipe in
> oe-core says that it can't provide
> "virtual/update-alternative-native". I think the reason there is that
> it doesn't support installing to an offline target filesystem. I don't
> know how the performance compares but I don't think it's critical as
> it isn't a program that will be running very often on a target. The
> opkg version is probably more lightweight as it is a short shell
> script vs the 2,700 lines of C which make up the dpkg version.
> 
> There is also an "alternatives" program in chkconfig which is listed
> as a possible provider of "virtual/update-alternatives" but again,
> trying to use in causes a dependency loop. I haven't given this
> version more than a quick glance though.
> 
> Personally I'd say the dpkg version looks the best as it allows a user
> or script to query or change which alternative is selected whereas the
> opkg version only allows alternatives to be installed or removed. It
> would just need someone with the time to look into how it can be made
> to install links to a target filesystem rather than to the host
> filesystem. Unfortunately that isn't me at the moment.
> 
> -- 
> Paul Barker
> 
> Email: paul@paulbarker.me.uk
> http://www.paulbarker.me.uk

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

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

  reply	other threads:[~2013-11-18 16:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-17 18:57 opkg dependencies and update-alternatives Paul Barker
2013-11-18  2:54 ` ChenQi
2013-11-18  9:21   ` Paul Barker
2013-11-18 11:40   ` Martin Jansa
2013-11-18 11:57     ` Richard Purdie
2013-11-18 15:31       ` Paul Barker
2013-11-18 16:20         ` Martin Jansa [this message]
2013-11-19  5:38           ` Chris Larson
2013-11-20 16:24           ` Paul Barker
2013-11-20 16:33             ` Richard Purdie
2013-11-18 16:04       ` Martin Jansa

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=20131118162014.GH3727@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=paul@paulbarker.me.uk \
    /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.