Changes between Version 59 and Version 60 of BuildingDebianPackages


Ignore:
Timestamp:
12/01/09 12:48:51 (13 years ago)
Author:
dclark
Comment:

Fixed spereate python-ssl build instructions

Legend:

Unmodified
Added
Removed
Modified
  • BuildingDebianPackages

    v59 v60  
    122122As of Bcfg2 1.0.0, Bcfg2 has switched to the in-tree ssl module included with python 2.6. A backport exists for 2.3, 2.4, and 2.5. The ssl module can be found [http://pypi.python.org/pypi/ssl here]. See [wiki:Authentication] for details.  
    123123 
    124 To build a package of the ssl backport for .deb based distributions that don't ship with python 2.6, you can follow these instructions, which use [http://github.com/astraw/stdeb/tree/master stdeb]. Alternatively if you happen to have .deb packaging skills, it would be great to get policy-complaint .debs into the major deb-based distributions. 
    125  
    126 '''NOTE:''' To build the module on Debian (lenny) and Ubuntu (hardy), I had to apply this [attachment:ssl-1.15-debian.patch ssl-1.15-debian.patch] to remove bluetooth references. 
    127 '''Update''' or you can just install the "libbluetooth-dev" package. 
    128  
    129 {{{ 
    130 sudo aptitude install python-all-dev fakeroot python-setuptools libssl-dev debhelper python-support 
    131 sudo easy_install stdeb 
     124There is packaging for python-ssl in the bcfg2 trunk. Do:  
     125 
     126{{{ 
     127sudo aptitude install python-all-dev fakeroot python-setuptools libssl-dev debhelper python-support \ 
     128                      subversion libbluetooth-dev  
    132129wget http://pypi.python.org/packages/source/s/ssl/ssl-1.15.tar.gz#md5=81ea8a1175e437b4c769ae65b3290e0c 
    133130tar xvfz ssl-1.15.tar.gz 
    134 cd ssl-1.15 
    135 # patch here if necessary 
    136 stdeb_run_setup 
    137 cd deb_dist/ssl-1.15 
     131mv ssl-1.15 python-ssl-1.15 
     132cd python-ssl-1.15 
     133svn co https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2/misc/python-ssl-1.15/debian 
    138134dpkg-buildpackage -rfakeroot -uc -us 
    139 sudo dpkg -i ../python-ssl_1.15-1_amd64.deb 
    140 }}} 
    141  
    142 For complete bcfg2 goodness, you'll also want to package stdeb using stdeb: 
    143 {{{ 
    144 sudo aptitude install apt-file 
    145 wget http://pypi.python.org/packages/source/s/stdeb/stdeb-0.3.tar.gz#md5=e692f745597dcdd9343ce133e3b910d0 
    146 tar xvfz stdeb-0.3.tar.gz 
    147 cd stdeb-0.3 
    148 stdeb_run_setup 
    149 cd deb_dist/stdeb-0.3 
    150 dpkg-buildpackage -rfakeroot -uc -us 
    151 sudo dpkg -i ../python-stdeb_0.3-1_all.deb 
     135sudo dpkg -i ../python-ssl_1.15-1_*.deb 
    152136}}} 
    153137