Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 21 Nov 2019, 18:26
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
mercurial-3.7-x86_64.pet for Slacko64-6.9.9.9
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
s243a

Joined: 02 Sep 2014
Posts: 2161

PostPosted: Sat 27 Oct 2018, 01:59    Post subject:  mercurial-3.7-x86_64.pet for Slacko64-6.9.9.9
Subject description: and some notes on installing Infocalypse for Freenet
 

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/9cnvvoe4zutw12f/mercurial-3.7-x86_64.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:

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:

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



3.2 Infocalypse Installation


Infocalypse can be installed as follows:

Code:

#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:

[extensions]
infocalypse - /root/spot/infocalypse/infocalypse

Then run the command
Code:

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@-bk9znYylSCOEDuSWAvo5m72nUeMxKkDmH3nIqAeI-0,qfu5H3FZsZ-5rfNBY-jQHS5Ke7AT2PtJWd13IrPZjcg,AQACAAE/feral_codewright/28/infocalypse_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/view/7.9/general/mercurial.html

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

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)
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2161

PostPosted: Wed 31 Oct 2018, 02:55    Post subject:  

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

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



This can be solved with the following commands:
Code:

pip install -U setuptools
pip install -U wheel

https://github.com/FPGAwars/apio/issues/144
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0296s ][ Queries: 11 (0.0027s) ][ GZIP on ]