All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pascal Bach <pascal.bach@siemens.com>
To: "Woronicz,
	Bartosz (Nokia - PL/Wroclaw)" <bartosz.woronicz@nokia.com>,
	"yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Yocto git server via http and mirror tarballs
Date: Wed, 15 Jun 2016 13:33:48 +0200	[thread overview]
Message-ID: <57613D1C.5060001@siemens.com> (raw)
In-Reply-To: <VI1PR07MB1053319307849C7A12BE1E9581550@VI1PR07MB1053.eurprd07.prod.outlook.com>


> I set in .gitconfig to always use https:// (don't forget 'git' at the end of path) instead git:// for yoctoproject url
>
> [url "https://git.yoctoproject.org/git/"]
>         insteadOf = git://git.yoctoproject.org/

I would pefer a solution that can be handled at the distro/site.conf level so that not very developer has to change their .gitconfig.
However this is a good work around, thanks.

>
> Kind regards,
> Bartosz Woronicz
> Engineer, Software Configuration (SCM)
> Nokia Networks - PL/Wroclaw
>
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Pascal Bach
> Sent: Wednesday, June 15, 2016 12:51 PM
> To: yocto@yoctoproject.org
> Subject: [yocto] Yocto git server via http and mirror tarballs
>
> Hi
>
> Because of firewall restrictions I'm not always not able to access the git.yoctoproject.org via the git protocol but I'm required to use http.
>
> By default most of the recipes in Poky recipes use the git protocol not the http protocol. For example yocto-kernel-tools points to repositories "git://git.yoctoproject.org/yocto-kernel-tools" instead of "http://git.yoctoproject.org/git/yocto-kernel-tools".
>
> To work around this issue I added a mirror rules for rewriting the protocol like this:
>
> MIRRORS += "\
>     git://git.yoctoproject.org/.*                               git://git.yoctoproject.org/git/PATH;protocol=http \n \
>     "
>
> This seems to work and I'm able to fetch the sources even when git access is not possible.
>
> But when I then enable BB_GENERATE_MIRROR_TARBALLS = "1" I'm starting to get different tarball names depending on what protocol was used.
> For example "git2_git.yoctoproject.org.yocto-kernel-tools.git.tar.gz" vs "git2_git.yoctoproject.org.git.yocto-kernel-tools.git.tar.gz".
>
> I assume this happens because the first tarball was create while git access was possible, while the second one was created when only http was possible:
> git.yoctoproject.org/git => git.yoctoproject.org.git
> git.yoctoproject.org     => git.yoctoproject.org
>
> Is there any way to prevent the tarballs from having different names? For example derive the name always from the original URL not the mirror one?
>
> Or is there a better way to achieve what we are doing with MIRROR?
>
> Thanks for your help.
>
> Pascal



  reply	other threads:[~2016-06-15 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15 10:51 Yocto git server via http and mirror tarballs Pascal Bach
2016-06-15 11:22 ` Woronicz, Bartosz (Nokia - PL/Wroclaw)
2016-06-15 11:33   ` Pascal Bach [this message]
2016-06-15 15:09     ` Woronicz, Bartosz ( NSN - PL/Wroclaw)

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=57613D1C.5060001@siemens.com \
    --to=pascal.bach@siemens.com \
    --cc=bartosz.woronicz@nokia.com \
    --cc=yocto@yoctoproject.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.