Project

General

Profile

Fecthing sources from gitorious

Added by Mathieu Maret over 4 years ago

Hi,

I have not been able to fetch repo from gitorious until I register a public key to this service.
May be, you can add an entry about that in the wiki ...

Mat


Replies (7)

RE: Fecthing sources from gitourious - Added by Paul Kocialkowski over 4 years ago

Please elaborate on that, I do not see what you mean practically. Fetching the Replicant source code does not require any particular registration.

RE: Fecthing sources from gitourious - Added by Mathieu Maret over 4 years ago

Hi,

My mistake :
Having issue to get sources from gitorious, I tried to get the sources using git.
I've used the url given on the gitorious webpage (git@gitorious....) and this url require that you have a ssh key registered.

Sorry !

Mat

RE: Fecthing sources from gitorious - Added by Paul Kocialkowski over 4 years ago

I've used the url given on the gitorious webpage (git@gitorious....) and this url require that you have a ssh key registered.

You might want to raise the issue with Gitorious people then!

RE: Fecthing sources from gitorious - Added by Marius B over 4 years ago

Hi,

I think my question fits to the topic of this thread, therefore I do not open a new one.
I have errors when getting the sources following the recipe on [http://redmine.replicant.us/projects/replicant/wiki/ReplicantSources] in the step "Downloading/Updating the source from the repos".

The following errors occur:

error: Cannot fetch replicant/device_samsung_p3110
error: Cannot fetch replicant/device_samsung_i9300
error: Cannot fetch replicant/kernel_samsung_smdk4412
error: Cannot fetch replicant/kernel_samsung_tuna
error: Cannot fetch replicant/bootable_bootloader_goldelico_gta04
error: Cannot fetch replicant/frameworks_native
error: Cannot fetch replicant/device_common
error: Cannot fetch replicant/external_libnfc-nxp
....and more....

The sync usually stops somewhere around 43%.
Using the option -f (--force-broken) to ignore the fetch errors, I am able to run the script to the end, but then more errors appear and I am unsure what this means for building it. My intention is to build for the Galaxy S2-I9100.

My questions:
1. Can I fix the errors somehow? I don't really know where to start looking.
2. How can I find out if any of these projects are not needed for the Galaxy S2-I9100-build and can be ignored?

Thanks, Marius

RE: Fecthing sources from gitorious - Added by Paul Kocialkowski over 4 years ago

1. Can I fix the errors somehow? I don't really know where to start looking.

Should be a problem on gitorious side. Just try again later and notify them if you still can't get it to work.

2. How can I find out if any of these projects are not needed for the Galaxy S2-I9100-build and can be ignored?

You need the whole source code to build Replicant. Some device-specific ones you can probably avoid, but I'm not going to encourage you to do that.

RE: Fecthing sources from gitorious - Added by Marius B over 4 years ago

Hi,
I just wanted to give an update about this problem:

I added some debug output to see stderr of the executed git fetch command for the problematic projects, and it stops with returncode 128 and the error messages

"fatal: The remote end hung up unexpectedly"
"fatal: protocol error: bad pack header"

Unfortunately, I do not understand git well enough to know if this is an error on my side (maybe a timeout by slow bandwith or misconfigured git settings?) or on Gitorious' side, so I did not notify Gitorious.

However, I was able to download the sources completely via SSH. Maybe this workaround helps someone else to spare some time:

I created a Gitorious account, created a pair of private/public SSH keys, added the public SSH key to my Gitorius account, and changed the manifest.xml to use SSH for fetching from gitorious. Then I wiped everything and restarted the complete repo sync.

Details can be found here concerning the SSH-key-generation:

https://help.github.com/articles/generating-ssh-keys/
(Github specific, but works similar for Gitorious)

and here about the manifest.xml modification:
http://stackoverflow.com/questions/2681491/how-to-set-up-an-android-source-repo-while-hosting-the-git-trees-as-private-repo

Cheers,
Marius

    (1-7/7)