Initial instructions tell us to
mkdir -p ~/bin mkdir -p ~/android/system curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo chmod a+x ~/bin/repo
Confirm that repo downloads properly and that it’s actually the repo script and not an html page!
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
I initially had syntax errors with it. I think compiling and installing a new version of Python locally fixed. Disadvantage of Sourceforge is that you cant do an apt install. Anything that you need should be downloaded from tarball and painstakingly (in some cases) compiled. But I think I’m beginning to get the hang of it.
At this point, for SF, one has to change git:// to http://. https also doesnt work.
So
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
becomes
repo init -u http://github.com/CyanogenMod/android.git -b gingerbread
You will asked name and email. So far so good.
However the version that downloads may contain git:// addresses. So one has to edit the repo manifest.
cd .repo grep for git:
You will note that it is in the file manifest.xml
manifest.xml-2- manifest.xml-3- manifest.xml-6- manifest.xml-7- manifest.xml-10-
Change to
manifest.xml:4: fetch="http://android.git.kernel.org/" manifest.xml:8: fetch="http://github.com/"
Now you can proceed normally:
repo sync -j16
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.