All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Koen Kooi <koen@dominion.thruhere.net>
Cc: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: Re: [RFC] Allarch and packagegroup improvement proposal
Date: Tue, 19 Aug 2014 12:23:05 +0100	[thread overview]
Message-ID: <1408447385.1669.44.camel@ted> (raw)
In-Reply-To: <22E8A6CB-313F-4713-B76F-FE090570EB15@dominion.thruhere.net>

On Tue, 2014-08-19 at 12:41 +0200, Koen Kooi wrote:
> Op 18 aug. 2014, om 17:35 heeft Richard Purdie <richard.purdie@linuxfoundation.org> het volgende geschreven:
> 
> > On Mon, 2014-08-18 at 15:39 +0100, Richard Purdie wrote:
> >> On Mon, 2014-08-18 at 15:14 +0200, Martin Jansa wrote:
> >>> Well then maybe that allarch package with perl dependency shouldn't be
> >>> marked as allarch.
> >> 
> >> Take a step back and think about this from the end user system
> >> perspective. The packages are all identical for each architecture,
> >> "perl" doesn't change name. 
> >> 
> >> To me that means the correct end result is such a package should be
> >> "allarch" in the package feeds.
> >> 
> >> The question then becomes, how do we generate such things in a sane way.
> >> 
> >>> I'm in favor of removing default allarch and setting correct
> >>> PACKAGE_ARCH manually in the packagegroup recipes like we do elsewhere.
> >>> 
> >>> packagegroups are small and "rebuilt" quickly, so I don't mind
> >>> "building" them once per TUNE_PKGARCH or even once per MACHINE_ARCH like
> >>> we do for couple of them already.
> >>> 
> >>> I can even find few changes from me on ML which do exactly that.
> >> 
> >> It does seem a bit of a cop out to do this on the grounds that its
> >> small/fast :/.
> >> 
> >> I agree there is good reason why some should be PKGARCH but we can
> >> probably do better than just marking them all that way IMO. I think we
> >> should try and mark them correctly too, i.e. think about whether the
> >> packages really are identical and/or make sense as allarch and try and
> >> avoid duplication if so.
> > 
> > I also have one other idea. We could adjust debian.bbclass so that it
> > adds an RPROVIDES for the original package name. We could then instruct
> > packagegroups specifically not to adjust the naming for debian renaming.
> > 
> > This would mean that the packagegroups would know the dependencies by
> > their non-debian, unversioned name.
> > 
> > Would that work for people?
> > 
> > I'm torn on the idea right now but thought I'd share it.
> 
> What happens in the following situation:
> 
> foo.bb generates foo.ipk (/usr/bin/foo) and libfoo5.ipk
> (/usr/lib/libfoo.so.5), will libfoo5 RPROVIDE 'foo', 'libfoo' or
> something else?

libfoo

Its very unlikely someone would write a package which the namespaces
conflicted in the way we use things currently.

The other related question is whether we should be doing automatic
remapping in RPROVIDES/RREPLACES/RCONFLICTS ?

Since at the moment if we put libfoo into RPROVIDES, it gets mapped to
libfoo5 by the remapping code...

I have patches which make various things work, I'll probably post them
and people can see what they think. 

Cheers,

Richard





      reply	other threads:[~2014-08-19 11:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-18 12:46 [RFC] Allarch and packagegroup improvement proposal Richard Purdie
2014-08-18 13:14 ` Martin Jansa
2014-08-18 13:42   ` Robert Yang
2014-08-18 14:01     ` Martin Jansa
2014-08-18 14:39   ` Richard Purdie
2014-08-18 15:35     ` Richard Purdie
2014-08-19 10:41       ` Koen Kooi
2014-08-19 11:23         ` Richard Purdie [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=1408447385.1669.44.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=koen@dominion.thruhere.net \
    --cc=openembedded-core@lists.openembedded.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.