Ticket #978: debian-tldr-third-try.txt

File debian-tldr-third-try.txt, 3.3 KB (added by ioerror, at 2010-03-04T01:48:27Z)
Line 
1Wed Mar  3 17:38:58 PST 2010  jacob@appelbaum.net
2  * desert-island-build-with-proper-versions
3
4New patches:
5
6[desert-island-build-with-proper-versions
7jacob@appelbaum.net**20100304013858] hunk ./docs/debian.txt 6
8+== TL;DR supporting package building instructions ==
9+
10+There are only two supporting packages that are currently not available from
11+the debian apt repositories in Debian Lenny: python-foolscap python-zfec
12+
13+First, we'll install some common packages for development:
14+
15+    apt-get install -y build-essential debhelper cdbs python-central \
16+                    python-setuptools python python-dev python-twisted-core \
17+                    fakeroot darcs python-twisted python-nevow \
18+                    python-simplejson  python-pycryptopp devscripts
19+
20+
21+To create packages for Lenny, we'll also install stdeb:   
22+
23+    apt-get install python-all-dev
24+    STDEB_VERSION="0.3.2"
25+    http://pypi.python.org/packages/source/s/stdeb/stdeb-$STDEB_VERSION.tar.gz
26+    tar xzf stdeb-$STDEB_VERSION.tar.gz
27+    cd stdeb-$STDEB_VERSION
28+    python setup.py --command-packages=stdeb.command bdist_deb
29+    sudo dpkg -i deb_dist/python-stdeb_$STDEB_VERSION-1_all.deb
30+
31+Now we're ready to build and install the zfec Debian package:
32+
33+    darcs get http://allmydata.org/source/zfec/trunk zfac
34+    cd zfac/zfec/
35+    python setup.py sdist_dsc
36+    cd `find deb_dist -mindepth 1 -maxdepth 1 -type d` && \
37+    dpkg-buildpackage -rfakeroot -uc -us
38+    sudo dpkg -i ../python-zfec_1.4.6-r333-1_amd64.deb
39+
40+Finally, we'll fetch, unpack, build and install foolscap:
41+
42+   # You may not already have Brian's key:
43+   # gpg --recv-key 0x1514A7BD
44+   wget http://foolscap.lothar.com/releases/foolscap-0.5.0.tar.gz.asc
45+   wget http://foolscap.lothar.com/releases/foolscap-0.5.0.tar.gz
46+   gpg --verify foolscap-0.5.0.tar.gz.asc
47+   tar -xvzf foolscap-0.5.0.tar.gz
48+   cd foolscap-0.5.0/
49+   python setup.py --command-packages=stdeb.command sdist_dsc
50+   cd deb_dist/foolscap-0.5.0/
51+   dpkg-buildpackage -rfakeroot -uc -us
52+   sudo dpkg -i ../python-foolscap_0.5.0-1_all.deb
53+
54+== TL;DR package building instructions for Tahoe ==
55+
56+If you want to build your own Debian packages from the darcs tree or from
57+a source release, do the following:
58+
59+    cd ~/
60+    mkdir src && cd src/
61+    darcs get --lazy http://allmydata.org/source/tahoe-lafs/trunk tahoe-lafs
62+    cd tahoe-lafs
63+    # set this for your Debian release name (lenny, sid, etc)
64+    make deb-lenny-head
65+    # You must have your dependency issues worked out by hand for this to work
66+    sudo dpkg -i ../allmydata-tahoe_1.6.1-r4262_all.deb
67+
68+You should now have a functional desert island build of Tahoe with all of the
69+supported libraries as .deb packages.
70+
71
72Context:
73
74[docs: a few small edits to try to guide newcomers through the docs
75zooko@zooko.com**20100303231902
76 Ignore-this: a6aab44f5bf5ad97ea73e6976bc4042d
77 These edits were suggested by my watching over Jake Appelbaum's shoulder as he completely ignored/skipped/missed install.html and also as he decided that debian.txt wouldn't help him with basic installation. Then I threw in a few docs edits that have been sitting around in my sandbox asking to be committed for months.
78]
79[TAG allmydata-tahoe-1.6.1
80david-sarah@jacaranda.org**20100228062314
81 Ignore-this: eb5f03ada8ea953ee7780e7fe068539
82]
83Patch bundle hash:
84a3c2d0af949014002be85479952d559e5493e93c