Skip to content

Conversation

@okartau
Copy link

@okartau okartau commented Sep 28, 2017

Real path uses lowercase names. Uppercase name appears
to show repo in browser, but does not work for bitbake fetch.

Signed-off-by: Olev Kartau olev.kartau@intel.com

Real path uses lowercase names. Uppercase name appears
to show repo in browser, but does not work for bitbake fetch.

Signed-off-by: Olev Kartau <olev.kartau@intel.com>
@jpward
Copy link
Contributor

jpward commented Sep 28, 2017

I don't see this problem, I cleaned the tpm2.0-tss recipe, removed the artifactory mirror and was able to fetch/build fine. I'm ok merging the change if it's a firewall type issue thats just easier solved with this type of change but the SRC_URI of this recipe is the same for the next few releases/branches of meta-security upstream so its going to be a constant headache.

@okartau
Copy link
Author

okartau commented Sep 28, 2017

I am not sure what happens around this issue.
It was clearly problem in building for both @ipuustin and me, and we got over problem with that change.
But OTOH, at least one other user @marquiz claims he built ok without that change.
Is there chance proxy somewhere can mangle names and make it work?

@jpward
Copy link
Contributor

jpward commented Sep 28, 2017

If I had to guess it has to do with the git protocol which is blocked for me so we have a few workarounds below. The local.conf updates are all I need to get this to work but I know the insteadof options for git are what others have had to use. Not impossible that these things are masking a lower level git protocol problem that you are seeing if you are able to actually use the protocol.

local.conf:

GIT_PROXY_COMMAND ?= "oe-git-proxy"
ALL_PROXY ?= "${http_proxy}"
HTTP_PROXY ?= "${http_proxy}"
HTTPS_PROXY ?= "${http_proxy}"
FTP_PROXY ?= "${http_proxy}"

~/.gitconfig:

[url "https://github.com/"]
	insteadOf = git://github.com

@avalluri
Copy link
Contributor

@jpward I also faced the bitbake fetch issue for repos using git protocol, some how "oe-git-proxy" did not work for me, i had to overwrite it with my own script that uses 'socat'.

The wild guess i have is, about the default shell used by 'pokyuser' inside docker image, which is not 'bash', but where as the oe-git-proxy is a bash script.

@okartau
Copy link
Author

okartau commented Oct 25, 2017

I retried building without name change, and it works today. But there is something (proxy state)? that may cause fetch fail sometimes.
When I try wget on this URL, I see there is permanent redirection from TPM2.0-TSS to tpm2.0-tss,
Redirection handling by proxy appears not reliable?

~ $ wget https://github.com/01org/TPM2.0-TSS
--2017-10-25 10:55:56-- https://github.com/01org/TPM2.0-TSS
Connecting to proxy (proxy)|10.x.y.z|:port... connected.
Proxy request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/01org/tpm2-tss [following]
--2017-10-25 10:55:57-- https://github.com/01org/tpm2-tss
Connecting to proxy (proxy)|10.x.y.z|:port... connected.
Proxy request sent, awaiting response... 200 OK

Note that using it via git protocol adds another layer into the mix.

As the currently correct name is lowercase, and uppercase works via redirect only,
I suggest we set name to correct one in .bb file, to avoid confusion and improve reliability.

@okartau
Copy link
Author

okartau commented Oct 27, 2017

it is possible that lack of ALL_PROXY value (which forces it to http_proxy) may have been contributed to this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants