Openembedded Core Discussions
 help / color / mirror / Atom feed
* patches can be either ".patch" or ".diff" files, yes?
@ 2014-07-18 18:58 Robert P. J. Day
  2014-07-18 19:30 ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2014-07-18 18:58 UTC (permalink / raw)
  To: OE Core mailing list


 not sure where i saw this recently (i'll track it down), but some OE
or yocto doc claimed that patch files *must* be suffixed with
".patch". i'm pretty sure it can be either .patch or .diff, correct?
as in, it's perfectly valid to do this in a .bbappend file:

     SRC_URI += "file://0001-first-change.patch"
     SRC_URI += "file://0002-first-change.patch"
     SRC_URI += "file://0003-first-change.diff"

as long as the filenames match, of course. yes?

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] 5+ messages in thread

* Re: patches can be either ".patch" or ".diff" files, yes?
  2014-07-18 18:58 patches can be either ".patch" or ".diff" files, yes? Robert P. J. Day
@ 2014-07-18 19:30 ` Burton, Ross
  2014-07-18 21:26   ` Robert P. J. Day
  0 siblings, 1 reply; 5+ messages in thread
From: Burton, Ross @ 2014-07-18 19:30 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

On 18 July 2014 19:58, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>  not sure where i saw this recently (i'll track it down), but some OE
> or yocto doc claimed that patch files *must* be suffixed with
> ".patch". i'm pretty sure it can be either .patch or .diff, correct?
> as in, it's perfectly valid to do this in a .bbappend file:
>
>      SRC_URI += "file://0001-first-change.patch"
>      SRC_URI += "file://0002-first-change.patch"
>      SRC_URI += "file://0003-first-change.diff"
>
> as long as the filenames match, of course. yes?

For a file to be handled automatically as a patch it must be .diff or
.patch, and it appears that it can be optionally compressed
(identifying extensions being .Z .gz .bz2), so foo.patch and
bar.diff.gz are both automatically applied patches.

Ross


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patches can be either ".patch" or ".diff" files, yes?
  2014-07-18 19:30 ` Burton, Ross
@ 2014-07-18 21:26   ` Robert P. J. Day
  2014-07-19 18:38     ` Christopher Larson
  0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2014-07-18 21:26 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE Core mailing list

On Fri, 18 Jul 2014, Burton, Ross wrote:

> On 18 July 2014 19:58, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> >  not sure where i saw this recently (i'll track it down), but some OE
> > or yocto doc claimed that patch files *must* be suffixed with
> > ".patch". i'm pretty sure it can be either .patch or .diff, correct?
> > as in, it's perfectly valid to do this in a .bbappend file:
> >
> >      SRC_URI += "file://0001-first-change.patch"
> >      SRC_URI += "file://0002-first-change.patch"
> >      SRC_URI += "file://0003-first-change.diff"
> >
> > as long as the filenames match, of course. yes?
>
> For a file to be handled automatically as a patch it must be .diff
> or .patch, and it appears that it can be optionally compressed
> (identifying extensions being .Z .gz .bz2), so foo.patch and
> bar.diff.gz are both automatically applied patches.

  quite so, i just noticed that in patch.bbclass, good to know.

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] 5+ messages in thread

* Re: patches can be either ".patch" or ".diff" files, yes?
  2014-07-18 21:26   ` Robert P. J. Day
@ 2014-07-19 18:38     ` Christopher Larson
  2014-07-19 18:57       ` Robert P. J. Day
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Larson @ 2014-07-19 18:38 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

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

On Fri, Jul 18, 2014 at 2:26 PM, Robert P. J. Day <rpjday@crashcourse.ca>
wrote:

> On Fri, 18 Jul 2014, Burton, Ross wrote:
>
> > On 18 July 2014 19:58, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> > >  not sure where i saw this recently (i'll track it down), but some OE
> > > or yocto doc claimed that patch files *must* be suffixed with
> > > ".patch". i'm pretty sure it can be either .patch or .diff, correct?
> > > as in, it's perfectly valid to do this in a .bbappend file:
>

Also remember that as Ross says ('*automatically* applied as a patch'),
it's not a must, you can opt-in to patch application with ;apply=yes if the
filename doesn't match the expected extensions.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

[-- Attachment #2: Type: text/html, Size: 1345 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patches can be either ".patch" or ".diff" files, yes?
  2014-07-19 18:38     ` Christopher Larson
@ 2014-07-19 18:57       ` Robert P. J. Day
  0 siblings, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2014-07-19 18:57 UTC (permalink / raw)
  To: Christopher Larson; +Cc: OE Core mailing list

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1894 bytes --]

On Sat, 19 Jul 2014, Christopher Larson wrote:

>
> On Fri, Jul 18, 2014 at 2:26 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>       On Fri, 18 Jul 2014, Burton, Ross wrote:
>
>       > On 18 July 2014 19:58, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>       > >  not sure where i saw this recently (i'll track it down), but some OE
>       > > or yocto doc claimed that patch files *must* be suffixed with
>       > > ".patch". i'm pretty sure it can be either .patch or .diff, correct?
>       > > as in, it's perfectly valid to do this in a .bbappend file:
>
>
> Also remember that as Ross says ('*automatically* applied as a
> patch'), it's not a must, you can opt-in to patch application with
> ;apply=yes if the filename doesn't match the expected extensions.

  ah, that was a detail of which i was unaware -- that "apply=yes" was
meant for applying patches of any arbitrary filename. of course, that
suggests that there are some superfluous uses here and there in
oe-core, such as:

recipes-graphics/xorg-proto/calibrateproto_git.bb:           file://fix.patch;apply=yes"
recipes-graphics/libxsettings-client/libxsettings-client_0.10.bb:        file://link-x11.patch;apply=yes \
recipes-sato/leafpad/leafpad_0.8.18.1.bb:SRC_URI_append_poky = " file://owl-menu.patch;apply=yes "
recipes-sato/settings-daemon/settings-daemon_git.bb:           file://addsoundkeys.patch;apply=yes \

no harm, just unnecessary.

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] 5+ messages in thread

end of thread, other threads:[~2014-07-19 18:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 18:58 patches can be either ".patch" or ".diff" files, yes? Robert P. J. Day
2014-07-18 19:30 ` Burton, Ross
2014-07-18 21:26   ` Robert P. J. Day
2014-07-19 18:38     ` Christopher Larson
2014-07-19 18:57       ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox