Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (36 sloc) 2.07 kB
b67781e @jordansissel - Add notes
authored
1
2 # Debian notes
3
4 ## C libraries
5
6 Linux seems to require 'ldconfig' runs after shared libraries are installe. I
7 haven't bothered digging into why, but many debian C library packages run
8 ldconfig as a postinstall step.
9
10 I'd like to avoid postinstall actions, so this needs research to see if this is
11 possible.
12
13 ## Ruby
14
15 rubygems on Debian/Ubuntu is not very recent in most cases, and some gems have
16 a requirement of rubygems >= a version you have available.
17
18 Further, debian blocks 'gem update --system' which you can get around by doing:
19
20 % gem install rubygems-update
21 % ruby /var/lib/gems/1.8/gems/rubygems-update-1.3.1/bin/update_rubygems
22
23 I recommend packaging 'rubygems-update' (fpm -s gem -t deb rubygems-update) and
24 possibly running the update_rubygems as a postinstall, even though I don't like
25 postinstalls. I haven't looked yet to see what is required to mimic (if
26 possible) the actions of that script simply in a tarball.
27
28 ## Python
29
30 http://www.debian.org/doc/packaging-manuals/python-policy/ap-packaging_tools.html
31
32 Debian python packages all rely on some form of python-central or
33 python-support (different tools that do similar/same things? I don't know)
34
35 As I found, disabling postinst scripts in Debian causes Python to stop working.
36 The postinst scripts generally look like this:
37
38 if which update-python-modules >/dev/null 2>&1; then
39 update-python-modules SOMEPACKAGENAME.public
40 fi
41
42 I don't believe in postinst scripts, and I also feel like requiring a
43 postinstall step to make a python module work is quite silly - though I'm sure
44 (I hope) Debian had good reason.
45
46 So, I'm going to try working on a howto for recommended ways to build python
47 packages with fpm in debian. It will likely require a one-time addition to
48 site.py (/usr/lib/python2.6/site.py) or some other PYTHONPATH hackery, though
49 I don't know just yet.
50
bf4752c @tmm1 removed all trailing whitespace: for i in $(git ls-files); do sed -i …
tmm1 authored
51 It will also require special setup.py invocations as Debian has patched distutils to
b67781e @jordansissel - Add notes
authored
52 install python packages, by default, to a place that requires again the
53 python-central/support tools to run to make them work.
Something went wrong with that request. Please try again.