Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] support/download: support git older then 1.8.x
@ 2016-07-27 20:57 Matt Weber
  2016-07-27 21:47 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Weber @ 2016-07-27 20:57 UTC (permalink / raw)
  To: buildroot

A recent commit[1] in the git downloader uses the "--no-patch" option,
which appeared on git 1.8.4. Systems with older git versions show an
error and fall back to the wget downloader, which isn't suitable for
all the cases.

This commit uses a "git log" variant and works on older systems.

[1]
https://github.com/buildroot/buildroot/commit/3abd5ba4243489b821d44e407528020cd8a138f8#diff-75410bcfefacf16bcd60a2a6ac77c433R73

Signed-off-by: Enrique Ocana Gonzalez <eocanha@igalia.com>
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
 support/download/git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/download/git b/support/download/git
index 663006b..416cd1b 100755
--- a/support/download/git
+++ b/support/download/git
@@ -76,7 +76,7 @@ _git checkout -q "'${cset}'"
 
 # Get date of commit to generate a reproducible archive.
 # %cD is RFC2822, so it's fully qualified, with TZ and all.
-date="$( _git show --no-patch --pretty=format:%cD )"
+date="$( _git log -1 --pretty=format:%cD )"
 
 # There might be submodules, so fetch them.
 if [ ${recurse} -eq 1 ]; then
-- 
1.9.1

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

* [Buildroot] [PATCH] support/download: support git older then 1.8.x
  2016-07-27 20:57 [Buildroot] [PATCH] support/download: support git older then 1.8.x Matt Weber
@ 2016-07-27 21:47 ` Yann E. MORIN
  2016-07-28  8:48   ` Enrique Ocaña González
  0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2016-07-27 21:47 UTC (permalink / raw)
  To: buildroot

Matt, All,

Nit-pick: since you applied Enrique's patch, you should probably have
used him as author.

On 2016-07-27 15:57 -0500, Matt Weber spake thusly:
> A recent commit[1] in the git downloader uses the "--no-patch" option,
> which appeared on git 1.8.4. Systems with older git versions show an
> error and fall back to the wget downloader, which isn't suitable for
> all the cases.
> 
> This commit uses a "git log" variant and works on older systems.
> 
> [1]
> https://github.com/buildroot/buildroot/commit/3abd5ba4243489b821d44e407528020cd8a138f8#diff-75410bcfefacf16bcd60a2a6ac77c433R73
> 
> Signed-off-by: Enrique Ocana Gonzalez <eocanha@igalia.com>

Beside, you can't go adding a SoB-line for someone else. A SoB-line is
kinda legaly-binding:

    http://developercertificate.org/

Enrique, if you agree that your SoB-line is warranted, we can go the
fast route: just reply to the original mail with your own SoB-line, and
all will be good in the best of the worlds! ;-)

> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> ---
>  support/download/git | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/download/git b/support/download/git
> index 663006b..416cd1b 100755
> --- a/support/download/git
> +++ b/support/download/git
> @@ -76,7 +76,7 @@ _git checkout -q "'${cset}'"
>  
>  # Get date of commit to generate a reproducible archive.
>  # %cD is RFC2822, so it's fully qualified, with TZ and all.
> -date="$( _git show --no-patch --pretty=format:%cD )"
> +date="$( _git log -1 --pretty=format:%cD )"

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

>  # There might be submodules, so fetch them.
>  if [ ${recurse} -eq 1 ]; then
> -- 
> 1.9.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH] support/download: support git older then 1.8.x
  2016-07-27 21:47 ` Yann E. MORIN
@ 2016-07-28  8:48   ` Enrique Ocaña González
       [not found]     ` <CANQCQpbXyAYztS5MkDU_nYdC6Tta9MYVLijqGuB2k_B3YpBp8Q@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Enrique Ocaña González @ 2016-07-28  8:48 UTC (permalink / raw)
  To: buildroot

El mi?rcoles, 27 de julio de 2016 23:47:55 (CEST) Yann E. MORIN escribi?:

> Enrique, if you agree that your SoB-line is warranted, we can go the
> fast route: just reply to the original mail with your own SoB-line, and
> all will be good in the best of the worlds! ;-)

I tried to send the patch to the list yesterday (before Matt's submission) but 
the email got bounced because I wasn't subscribed to the list. I've subscribed 
today and resent the patch which got originally bounced.

Cheers.

-- 
Enrique Oca?a Gonz?lez

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

* [Buildroot] [PATCH] support/download: support git older then 1.8.x
       [not found]     ` <CANQCQpbXyAYztS5MkDU_nYdC6Tta9MYVLijqGuB2k_B3YpBp8Q@mail.gmail.com>
@ 2016-07-28 11:47       ` Matthew Weber
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Weber @ 2016-07-28 11:47 UTC (permalink / raw)
  To: buildroot

On Jul 28, 2016 3:49 AM, "Enrique Oca?a Gonz?lez" <eocanha@igalia.com>
wrote:
>
> El mi?rcoles, 27 de julio de 2016 23:47:55 (CEST) Yann E. MORIN escribi?:
>
> > Enrique, if you agree that your SoB-line is warranted, we can go the
> > fast route: just reply to the original mail with your own SoB-line, and
> > all will be good in the best of the worlds! ;-)
>
> I tried to send the patch to the list yesterday (before Matt's
submission) but
> the email got bounced because I wasn't subscribed to the list. I've
subscribed
> today and resent the patch which got originally bounced.

Sounds Good, I'll mark mine as rejected and review yours.

>
> Cheers.
>
> --
> Enrique Oca?a Gonz?lez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160728/a8f80d96/attachment.html>

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

end of thread, other threads:[~2016-07-28 11:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-27 20:57 [Buildroot] [PATCH] support/download: support git older then 1.8.x Matt Weber
2016-07-27 21:47 ` Yann E. MORIN
2016-07-28  8:48   ` Enrique Ocaña González
     [not found]     ` <CANQCQpbXyAYztS5MkDU_nYdC6Tta9MYVLijqGuB2k_B3YpBp8Q@mail.gmail.com>
2016-07-28 11:47       ` Matthew Weber

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