* so what's the deal with "..._append +="?
@ 2012-04-02 11:37 Robert P. J. Day
2012-04-02 12:00 ` Richard Purdie
2012-04-02 12:03 ` Phil Blundell
0 siblings, 2 replies; 4+ messages in thread
From: Robert P. J. Day @ 2012-04-02 11:37 UTC (permalink / raw)
To: OE Core mailing list
pretty sure i mentioned this once before but this just looks weird:
$ grep -r "_append +=" *
meta/recipes-support/gmp/gmp_5.0.4.bb:SRC_URI_append += "file://use-includedir.patch \
meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-dev_append += "${bindir}/rpcgen ${libdir}/*_nonshared.a \
meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-staticdev_append += "${libdir}/*.a ${base_libdir}/*.a"
meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb:CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
$
should those be just simple assignments?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: so what's the deal with "..._append +="?
2012-04-02 11:37 so what's the deal with "..._append +="? Robert P. J. Day
@ 2012-04-02 12:00 ` Richard Purdie
2012-04-02 12:07 ` Robert P. J. Day
2012-04-02 12:03 ` Phil Blundell
1 sibling, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2012-04-02 12:00 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2012-04-02 at 07:37 -0400, Robert P. J. Day wrote:
> pretty sure i mentioned this once before but this just looks weird:
>
> $ grep -r "_append +=" *
> meta/recipes-support/gmp/gmp_5.0.4.bb:SRC_URI_append += "file://use-includedir.patch \
> meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-dev_append += "${bindir}/rpcgen ${libdir}/*_nonshared.a \
> meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-staticdev_append += "${libdir}/*.a ${base_libdir}/*.a"
> meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb:CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
> $
>
> should those be just simple assignments?
The += does add in a whitespace character. I agree it would be less
confusing if they were just plain _append = " xxx" though.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: so what's the deal with "..._append +="?
2012-04-02 12:00 ` Richard Purdie
@ 2012-04-02 12:07 ` Robert P. J. Day
0 siblings, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2012-04-02 12:07 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2 Apr 2012, Richard Purdie wrote:
> On Mon, 2012-04-02 at 07:37 -0400, Robert P. J. Day wrote:
> > pretty sure i mentioned this once before but this just looks weird:
> >
> > $ grep -r "_append +=" *
> > meta/recipes-support/gmp/gmp_5.0.4.bb:SRC_URI_append += "file://use-includedir.patch \
> > meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-dev_append += "${bindir}/rpcgen ${libdir}/*_nonshared.a \
> > meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-staticdev_append += "${libdir}/*.a ${base_libdir}/*.a"
> > meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb:CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
> > $
> >
> > should those be just simple assignments?
>
> The += does add in a whitespace character. I agree it would be less
> confusing if they were just plain _append = " xxx" though.
dang, i'd forgotten about the whitespace. but still, it's
definitely non-intuitive to use what appears to be a double-append
operation. anyway, i'll leave that for people higher up the food
chain to decide if they want to do anything about it.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: so what's the deal with "..._append +="?
2012-04-02 11:37 so what's the deal with "..._append +="? Robert P. J. Day
2012-04-02 12:00 ` Richard Purdie
@ 2012-04-02 12:03 ` Phil Blundell
1 sibling, 0 replies; 4+ messages in thread
From: Phil Blundell @ 2012-04-02 12:03 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2012-04-02 at 07:37 -0400, Robert P. J. Day wrote:
> pretty sure i mentioned this once before but this just looks weird:
>
> $ grep -r "_append +=" *
> meta/recipes-support/gmp/gmp_5.0.4.bb:SRC_URI_append += "file://use-includedir.patch \
> meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-dev_append += "${bindir}/rpcgen ${libdir}/*_nonshared.a \
> meta/recipes-core/eglibc/eglibc-package.inc:FILES_${PN}-staticdev_append += "${libdir}/*.a ${base_libdir}/*.a"
> meta/recipes-graphics/xorg-lib/libxp_1.0.1.bb:CFLAGS_append += " -I ${S}/include/X11/XprintUtil -I ${S}/include/X11/extensions"
> $
>
> should those be just simple assignments?
Probably most of them should lose the _append and just use +=. I doubt
many/any of them are actually relying on the delayed semantics of
_append.
If they do require the delayed appending then yes, they should be
straight assignments with _append. All except the last example would
need a space adding on the right hand side though, in that case.
p.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-02 12:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-02 11:37 so what's the deal with "..._append +="? Robert P. J. Day
2012-04-02 12:00 ` Richard Purdie
2012-04-02 12:07 ` Robert P. J. Day
2012-04-02 12:03 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox