mercurial-3.7-x86_64.pet for Slacko64-6.9.9.9

Miscellaneous tools
Post Reply
Message
Author
s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

mercurial-3.7-x86_64.pet for Slacko64-6.9.9.9

#1 Post by s243a »

I built an 'old version' mercurial (version 3.7) on Slacko64 6.9.9.9.

1. Download mercuirial-3.7-x86_64.pet

https://www.dropbox.com/s/9cnvvoe4zutw1 ... 4.pet?dl=0

2. Why I built an older version of mercurial

The reason that I did so is the version available via the puppy package manager (4.3.1) is too new to run Infocalypse [1]. Infocalypse can push/pull code from git, mercurial and freenet repositories. This allows people to anonymously work on code over the darknet in a censorship resistant way.

2.1 Notes on the build

I built this package as follows:

Code: Select all

wget https://www.mercurial-scm.org/release/mercurial-3.7.tar.gz
#I used rox to decompress it and change to the build directory
pip2 install --upgrade docutils
make PREFIX=/usr DESTDIR=/tmp/mercurial-3.7-x86_64 all
make PREFIX=/usr DESTDIR=/tmp/mercurial-3.7-x86_64 install
cd /tmp 
dir2pet mercurial-3.7-x86_64
for dependencies I put Python 2.7.15 because this is the one I had installed via the package manager. Older versions of python will work [4]. I do not know if adding this to the to the pet specs will cause someone to automatically upgrade or not. I also didn't add any of the configuration files to this pet. These can be manually created.

3. Installing infocalypse (optional)
3.1 Infocalypse Prequisites
Infocalypse requires hg-git, dulwich and pyFreenet (older python 2 version)

I think the first two on Slacko64-6.9.9.9 can be downloaded via the package manager [5]. pyFreenet can be installed as follows:

Code: Select all

pip2 install --upgrade --user pyFreenet #Not sure about the --user option

3.2 Infocalypse Installation


Infocalypse can be installed as follows:

Code: Select all

#pick some directory e.g. 
cd ~/spot #One can install it anywhere and system wide or for a particular user
hg init infocalypse #this creates the directory ~/spot/infocalypse and some other config files
hg pull https://bitbucket.org/durin42/hg-git
hg update -C default
create the file [2]
~/spot/.hgrc

Code: Select all

[extensions]
infocalypse - /root/spot/infocalypse/infocalypse
Then run the command

Code: Select all

hg fn-setup
If your running freenet on the default ip-address/host then you can find out how to use Infocalypse at the following link:
http://127.0.0.1:8888/USK@-bk9znYylSCOE ... howto.html
or alternatively your can view this via exit proxy/gateway or on draketo.de


Notes & Links
-----------
1 - infocalypse uses the old syntax for mercuial plugins where the command array is manually contructed. After mercurial 3.8 I believe that decorators must be used instead. See: Writing Mercurial Extions and Line 394 of infocalypse/__init__.py

2 - the mercual configuration files can be put in several different places. For more details see: https://www.selenic.com/mercurial/hgrc.5.html

3 - an example of the old syntax for the mercurial plugin command array can be found at: https://www.draketo.de/proj/infocalypse-code-sharing/

4 - Linux from scratch suggest a dependency of python 2.7.11 for mercurial 2.7.1. However, I suspect that even older versions of python will work than suggested by linux from scratch, http://www.linuxfromscratch.org/blfs/vi ... urial.html

5 - hg-git can be installed via python-setuptools (available via the puppy package manager) with the following command:

Code: Select all

easy_install hg-git -U hg-git
the -U hg-git part is probably not necessary. See: http://hg-git.github.io/ and https://www.mercurial-scm.org/wiki/HgGithubExtension

Related Older Topoics
------------------------
mercurial-1.7.5 .PET for Lucid-5.20 (and maybe others)

s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

#2 Post by s243a »

As a troubleshooting note. If trying to install something via pip and one gets the following error:

Code: Select all

error: option --single-version-externally-managed not recognized 

This can be solved with the following commands:

Code: Select all

pip install -U setuptools
pip install -U wheel
https://github.com/FPGAwars/apio/issues/144

Post Reply