From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Gary Thomas <gary@mlbassoc.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: any objection to my cleaning up some packagegroup files in oe-core?
Date: Tue, 1 Jan 2013 07:46:24 -0500 (EST) [thread overview]
Message-ID: <alpine.DEB.2.02.1301010737590.17984@oneiric> (raw)
In-Reply-To: <50E18137.9090009@mlbassoc.com>
On Mon, 31 Dec 2012, Gary Thomas wrote:
> On 2012-12-30 12:44, Robert P. J. Day wrote:
> >
> > specifically, in cases like this in packagegroup-core-sdk.bb:
> >
> > RDEPENDS_packagegroup-core-sdk
> >
> > could more cleanly be expressed as:
> >
> > RDEPENDS_${PN}
> >
> > could it not? there are quite a few of those unnecessarily verbose
> > constructs, anyone mind if i submit a patch to make that change?
>
> Why stop there? It seems that recipe could use more changes:
> RPROVIDES_packagegroup-core-sdk = "task-core-sdk"
> RREPLACES_packagegroup-core-sdk = "task-core-sdk"
> RCONFLICTS_packagegroup-core-sdk = "task-core-sdk"
>
> RDEPENDS_packagegroup-core-sdk = "\
>
> All of these should use _${PN}
>
> Also, most of the recipes in meta/recipes-core/packagegroups/* could
> use similar changes to make them more readable and maintainable.
good lord, there's a lot of that, such as in packagegroups-base.bb:
PROVIDES = "${PACKAGES}"
PACKAGES = ' \
packagegroup-base \
packagegroup-base-extended \
packagegroup-distro-base \
packagegroup-machine-base \
\
${@base_contains("MACHINE_FEATURES", "acpi", "packagegroup-base-acpi", "",d)} \
${@base_contains("MACHINE_FEATURES", "alsa", "packagegroup-base-alsa", "", d)} \
${@base_contains("MACHINE_FEATURES", "apm", "packagegroup-base-apm", "", d)} \
${@base_contains("MACHINE_FEATURES", "ext2", "packagegroup-base-ext2", "", d)} \
... and lots more ...
sure, there's a lot of that cleanup that could be done but a few
questions:
1) given how *much* there is, is it worth the non-functional churn?
i'm a big believer in consistency and aesthetics but even *i* would
understand if others didn't want to go down that road.
2) is there a standard for quoting here (single vs double)? i've seen
both variations:
${@base_contains("MACHINE_FEATURES", "acpi", "packagegroup-base-acpi", "",d)} \
${@base_contains("MACHINE_FEATURES", "alsa", 'packagegroup-base-alsa', "", d)} \
although i don't think that matters for the eventual expansion of
${PN} inside the quotes
3) as i mentioned before, there are the occasional package defns that
mess up the prettiness, as with packagegroup-base:
PACKAGES = ' \
packagegroup-base \
packagegroup-base-extended \
packagegroup-distro-base \ <-- can't abbreviate obviously
packagegroup-machine-base \
anyway, i'd be willing to do some cleaning for the aesthetic
benefit, but only if others think it's worth it and there's a clear
style guide. it would certainly cut down on the verbosity.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
prev parent reply other threads:[~2013-01-01 13:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-30 19:44 any objection to my cleaning up some packagegroup files in oe-core? Robert P. J. Day
2012-12-31 12:12 ` Gary Thomas
2012-12-31 12:44 ` Robert P. J. Day
2013-01-01 12:46 ` Robert P. J. Day [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=alpine.DEB.2.02.1301010737590.17984@oneiric \
--to=rpjday@crashcourse.ca \
--cc=gary@mlbassoc.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox