Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] infra/pkg-generic: use site method for same-site extra downloads
Date: Fri, 8 Nov 2019 21:54:50 +0100	[thread overview]
Message-ID: <20191108215450.1ae1e1fb@windsurf> (raw)
In-Reply-To: <20191108172645.22584-1-yann.morin.1998@free.fr>

On Fri,  8 Nov 2019 18:26:45 +0100
"Yann E. MORIN" <yann.morin.1998@free.fr> wrote:

> When a package specifies extra downloads, it has the option to only name
> the basename of the extra download, in which case that extra download
> will be retrieved from the same location the main download is retrieved
> from.
> 
> In that case, if the extra download contains a '+', it would confuse the
> dl-wrapper, which believes the LHS of the '+' is the site method, and
> the RHS the actual URI, and so the dl-wrapper mangles and damages the
> URI when fetching such extra downloads, like that happens with android
> tools, where the proper URI and mangled URIs of the extra download are,
> respectively:
> 
>     https://launchpad.net/ubuntu/+archive/primary/+files/android-tools_4.2.2+git20130218-3ubuntu41.debian.tar.gz
>     http://archive/primary/+files/android-tools_4.2.2+git20130218-3ubuntu41.debian.tar.gz
> 
> We fix that by always propagating the site method to extra downloads,
> but only when they are specified as relative to the main download URI.
> 
> For the extra downloads that specify a full URI, it is not systematic
> that it is the same site method. For example, a main download could be a
> git clone, but an extra download a pure http download; in that case we
> can't replicate the site method for extra downloads, so they'll have to
> take appropriate care to specify the required method and encoding if
> needed.
> 
> Reported-by: Jemy Zhang <jemy.zhang@gmail.com>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Jemy Zhang <jemy.zhang@gmail.com>
> ---
>  package/pkg-generic.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2019-11-08 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 17:26 [Buildroot] [PATCH] infra/pkg-generic: use site method for same-site extra downloads Yann E. MORIN
2019-11-08 20:54 ` Thomas Petazzoni [this message]
2019-11-09 17:13 ` Peter Korsgaard

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=20191108215450.1ae1e1fb@windsurf \
    --to=thomas.petazzoni@bootlin.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