This siteAll blogsLe 17ClémentCCBCuisineLe 3ContactSe connecterS'inscrire
  • All blogs
  • Le 17
  • Clément
  • CCB
  • Cuisine
  • Le 3
  • Contact

  • S'inscrire

Recettes informatiques

  • Page de garde
  • Contact
  • Se connecter
  • « Generate certificates with (or without) a certificate authority
  • Create genealogy tree with LaTeX/TikZ »

Install Mercurial (hg) on Android

Posted by mazet on Mar 02 2015 in Systeme, Android


I've started working on a HL-PC1088. It's a cheap ARM based on a VIA WM8880 notebook with Android 4.2. I use Terminal-IDE which provides a minimal posix system, a fulll compiler chain, vi and git. The only other thing I eed to code is Mercurial, my favorite SCM.


Frist Install a working python based on the one provided by Py4A. Download:

  • python_r16.zip,
  • python-lib_r16.zip,
  • and python_extras_r14.zip.

Unzip all archives in place to get a python directory.

Shell

unzip python_r16.zip
cd python
unzip ../python-lib_r16.zip
unzip ../python_extras_r14.zip
mkdir share
mv python share
mv bin/python bin/python.elf
chmod +x bin/python.elf
rm -rf python/py4a python.sh setup.cfg setup.sh
cd ..

Create a wrapper to launch python script in python/bin/python

Shell

#!/bin/sh
 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
export TEMP=$HOME/tmp
export PYTHONHOME=$HOME/local
export PYTHONPATH=$HOME/local/share/python:$HOME/local/lib/python2.6/lib-dynload
export PYTHON_EGG_CACHE=$TEMP
exec $HOME/local/bin/python.elf "$@"

and move all stuff in the local repository of Terminal-IDE

Shell

chmod +x python/bin/python
mkdir tmp
for d in bin include lib share; do
  [ -d $d ] || mkdir $HOME/local/$d
  mv python/$d/* $HOME/local/$d/
done
rmdir python

Download python 2.6.2 source to get a valid Makefile

Shell

tar tvjf Python-2.6.2.tar.bz2
cd Python-2.6.2
./configure --prefix=$HOME
mkdir $HOME/local/lib/python2.6/config
cp Makefile $HOME/local/lib/python2.6/config
cd ..
rm -rf Python-2.6.2

Then, download Mercurial 1.8.4 (later versions need an unavaliable python module named grp) and install it as "pure" python with:

Shell

tar xvzf mercurial-1.8.4.tar.gz
cd mercurial-1.8.4
python setup.py --pure install
cd ..
rm -rf mercurial-1.8.4
sed -i 's/\.elf//' $HOME/local/bin/hg

That's it!

This entry was posted by mazet and filed under Systeme, Android.

No feedback yet

Catégories

  • Toutes
  • Non catégorisé
  • Programmation
    • Awk
    • Bash
    • C
    • C++
    • Javascript
    • LaTeX
    • Perl
    • Tcl/Tk
  • Systeme
    • Android
    • Debian
    • Ubuntu

Contenu

  • Linux Router
  • Creating a network between 2 virtual machines on Windows with Qemu
  • Build a Debian package for pdmenu
  • Extract informations from epub file
  • Connexion PostgreSql / Java par Socket Unix
  • Example of fork and respawn
  • Start SSH daemon on Git portable distribution
  • Create a git mirror
  • Color diff
  • Create on Debian a Minecraft server
  • GIT/HG/SVN on multiple repos simultaneously
  • Convert Comics into CBZ format
  • Random password generator function
  • Convert to camelCase
  • DKIM and SPF
  • Migration from BackupPC 3 (Debian package) to BackupPC 4 (Standalone Installation)
  • Minimal BC for Mingw
  • Diskless Debian cluster
  • Colorize log file
  • Generate certificates with (or without) a certificate authority
Août 2025
Lun Mar Mer Jeu Ven Sam Dim
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
 << <   > >>
  • Accueil
  • Récemment
  • Archives
  • Catégories
  • Derniers commentaires

Rechercher

Flux XML

  • RSS 2.0: Posts
  • Atom: Posts
What is RSS?

©2025 by Laurent Mazet • Contact • Aide • Open Source CMS

Multiple blogs solution

Cookies are required to enable core site functionality.