From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] pkg-generic: Fix host _DL_VERSION corner case
Date: Thu, 5 Mar 2015 09:25:35 +0100 [thread overview]
Message-ID: <20150305092535.1f310c0a@free-electrons.com> (raw)
In-Reply-To: <CANn-YGRf7_yfdkXPwdjS-5CGSn8XkfUnhwKA+4-aO=PnAUOyxA@mail.gmail.com>
Dear Clayton Shotwell,
On Wed, 4 Mar 2015 17:17:50 -0600, Clayton Shotwell wrote:
> >> diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
> >> index 1b09955..fcef461 100644
> >> --- a/package/pkg-generic.mk
> >> +++ b/package/pkg-generic.mk
> >> @@ -323,7 +323,11 @@ $(2)_RAWNAME = $$(patsubst host-%,%,$(1))
> >> # version control system branch or tag, for example remotes/origin/1_10_stable.
> >> ifndef $(2)_VERSION
> >> ifdef $(3)_VERSION
> >> - $(2)_DL_VERSION := $$(strip $$($(3)_VERSION))
> >> + ifdef $(3)_DL_VERSION
> >> + $(2)_DL_VERSION := $$(strip $$($(3)_DL_VERSION))
> >> + else
> >> + $(2)_DL_VERSION := $$(strip $$($(3)_VERSION))
> >> + endif
> >
> > However, I haven't yet made up my mind on whether this proposed
> > solution is the best one, or if we have a chance of doing something
> > clearer/nicer for this _VERSION vs. _DL_VERSION thing.
>
> This was the simplest solution I could come up with without reworking
> a lot of the pkg-download logic. I figured that if the _DL_VERSION of
> non-host version was already set then it should be used, otherwise the
> _VERSION string should be modified.
Note that I was not saying that your proposal is not good. It's just
that it was already almost midnight my time, and it was too late to
really think about the right solution :-)
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-03-05 8:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 22:26 [Buildroot] [PATCH] pkg-generic: Fix host _DL_VERSION corner case Clayton Shotwell
2015-03-04 22:56 ` Thomas Petazzoni
2015-03-04 23:17 ` Clayton Shotwell
2015-03-05 8:25 ` Thomas Petazzoni [this message]
2015-07-11 15:21 ` Arnout Vandecappelle
2015-07-11 15:40 ` [Buildroot] [PATCH v3] " Arnout Vandecappelle
2015-07-11 22:50 ` Thomas Petazzoni
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=20150305092535.1f310c0a@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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