Changes between Version 33 and Version 34 of BuildingDebianPackages


Ignore:
Timestamp:
10/29/09 23:47:19 (10 years ago)
Author:
dclark
Comment:

Only 3 left to go...

Legend:

Unmodified
Added
Removed
Modified
  • BuildingDebianPackages

    v33 v34  
    168168To upload to the PPA you need to be on the active member list of [https://launchpad.net/~bcfg2 Bcfg2 in Launchpad]. 
    169169 
     170Note that '''after each successful upload''', you should wait until the PPA is built, and then '''install it locally''' using "aptitude update; aptitude install (packagename)" so the next build doesn't fail on your local machine. If you don't want to wait for a PPA binary build to complete, you can "apt-get source (packagename)" and do a local build before the PPA build is done.    
     171 
    170172==== setup gpg-agent ==== 
    171173 
     
    236238fqdn = ppa.launchpad.net 
    237239method = ftp 
    238 incoming = ~bcfg2/bcfg2-testing/ubuntu 
     240incoming = ~bcfg2/testing/ubuntu 
    239241login = anonymous 
    240242allow_unsigned_uploads = 0 
     
    243245fqdn = ppa.launchpad.net 
    244246method = ftp 
    245 incoming = ~bcfg2/bcfg2-testing/ubuntu/dapper 
     247incoming = ~bcfg2/testing/ubuntu/dapper 
    246248login = anonymous 
    247249allow_unsigned_uploads = 0 
     
    250252fqdn = ppa.launchpad.net 
    251253method = ftp 
    252 incoming = ~bcfg2/bcfg2-testing/ubuntu/hardy 
     254incoming = ~bcfg2/testing/ubuntu/hardy 
    253255login = anonymous 
    254256allow_unsigned_uploads = 0 
     
    257259fqdn = ppa.launchpad.net 
    258260method = ftp 
    259 incoming = ~bcfg2/bcfg2-testing/ubuntu/intrepid 
     261incoming = ~bcfg2/testing/ubuntu/intrepid 
    260262login = anonymous 
    261263allow_unsigned_uploads = 0 
     
    264266fqdn = ppa.launchpad.net 
    265267method = ftp 
    266 incoming = ~bcfg2/bcfg2-testing/ubuntu/jaunty 
     268incoming = ~bcfg2/testing/ubuntu/jaunty 
    267269login = anonymous 
    268270allow_unsigned_uploads = 0 
     
    271273fqdn = ppa.launchpad.net 
    272274method = ftp 
    273 incoming = ~bcfg2/bcfg2-testing/ubuntu/karmic 
     275incoming = ~bcfg2/testing/ubuntu/karmic 
    274276login = anonymous 
    275277allow_unsigned_uploads = 0 
     
    277279 
    278280==== upload po4a ==== 
     281 
     282Upload: 
    279283{{{ 
    280284#!/bin/sh -x 
     
    286290cd po4a-0.36.1 
    287291cp debian/changelog debian/changelog.orig 
    288 ppa="bcfg2-testing" # "bcfg2-testing" or "ppa" (for stable) 
     292ppa="testing" # "testing" or "ppa" (for stable) 
    289293try="1" 
    290294 
     
    300304}}} 
    301305 
     306And then make sure it's installed locally for the next step. 
     307 
    302308==== upload debhelper ==== 
    303309 
     310Upload: 
     311{{{ 
     312#!/bin/sh -x 
     313 
     314wget http://archive.ubuntu.com/ubuntu/pool/main/d/debhelper/debhelper_7.3.15ubuntu3.dsc 
     315wget http://archive.ubuntu.com/ubuntu/pool/main/d/debhelper/debhelper_7.3.15ubuntu3.tar.gz 
     316dpkg-source -x debhelper_7.3.15ubuntu3.dsc 
     317cd debhelper-7.3.15ubuntu3 
     318cp debian/changelog debian/changelog.orig 
     319ppa="testing" # "testing" or "ppa" (for stable) 
     320try="1" 
     321 
     322for dist in dapper hardy intrepid jaunty karmic; do 
     323cp debian/changelog.orig debian/changelog 
     324(cd debian && debchange --force-bad-version --preserve --newversion \ 
     325"7.3.15ubuntu3~${ppa}${try}~${dist}${try}" \ 
     326backport to ppa ${ppa}, dist ${dist}, try ${try}) 
     327# Replace 0xAA95C349 to your GnuPG Key ID 
     328debuild -S -k0xAA95C349 
     329dput bcfg2-testing-force-${dist} ../debhelper_7.3.15ubuntu3~${ppa}${try}~${dist}${try}_source.changes 
     330done 
     331}}} 
     332 
     333And then make sure it's installed locally for the next step. 
     334 
    304335==== upload stdeb ==== 
    305336 
     337Upload: 
     338{{{ 
     339#!/bin/sh -x 
     340 
     341sudo aptitude install python-all-dev fakeroot python-setuptools libssl-dev debhelper python-support apt-file 
     342sudo easy_install stdeb 
     343wget http://pypi.python.org/packages/source/s/stdeb/stdeb-0.4.1.tar.gz 
     344tar xvfz stdeb-0.4.1.tar.gz 
     345cd stdeb-0.4.1 
     346stdeb_run_setup 
     347cd deb_dist/stdeb-0.4.1 
     348cp debian/changelog debian/changelog.orig 
     349ppa="testing" # "testing" or "ppa" (for stable) 
     350try="2" 
     351 
     352for dist in dapper hardy intrepid jaunty karmic; do 
     353cp debian/changelog.orig debian/changelog 
     354(cd debian && debchange --force-bad-version --preserve --newversion \ 
     355"0.4.1-1~${ppa}${try}~${dist}${try}" \ 
     356backport to ppa ${ppa}, dist ${dist}, try ${try}) 
     357# Replace 0xAA95C349 to your GnuPG Key ID 
     358debuild -S -sa -k0xAA95C349 # Using -sa here because we need .orig.tar.gz file 
     359dput bcfg2-testing-force-${dist} ../stdeb_0.4.1-1~${ppa}${try}~${dist}${try}_source.changes 
     360done 
     361 
     362# TODO: Fix "Upload Warnings: No copyright file found." 
     363}}} 
     364 
     365 
     366 
     367And then make sure it's installed locally for the next step. 
     368 
    306369==== upload python-ssl ==== 
    307370 
     371Upload: 
     372{{{ 
     373#!/bin/sh -x 
     374 
     375wget http://pypi.python.org/packages/source/s/ssl/ssl-1.15.tar.gz 
     376tar xvfz ssl-1.15.tar.gz 
     377cd ssl-1.15 
     378wget https://trac.mcs.anl.gov/projects/bcfg2/raw-attachment/wiki/BuildingDebianPackages/ssl-1.15-debian.patch 
     379patch -p1 < ssl-1.15-debian.patch 
     380 
     381# Note: ssl backport will only build on systems with Python 2.5 or earlier 
     382#       this is a workaround for newer systems... 
     383sudo ln -sf /usr/bin/python2.5 /usr/bin/python 
     384sudo easy_install stdeb 
     385stdeb_run_setup 
     386 
     387cd deb_dist/ssl-1.15 
     388cp debian/changelog debian/changelog.orig 
     389ppa="testing" # "testing" or "ppa" (for stable) 
     390try="1" 
     391 
     392for dist in dapper hardy intrepid; do 
     393cp debian/changelog.orig debian/changelog 
     394(cd debian && debchange --force-bad-version --preserve --newversion \ 
     395"1.15-1~${ppa}${try}~${dist}${try}" \ 
     396backport to ppa ${ppa}, dist ${dist}, try ${try}) 
     397# Replace 0xAA95C349 to your GnuPG Key ID 
     398debuild -S -sa -k0xAA95C349 # Using -sa here because we need .orig.tar.gz file 
     399dput bcfg2-testing-force-${dist} ../ssl_1.15-1~${ppa}${try}~${dist}${try}_source.changes 
     400done 
     401 
     402sudo ln -sf /usr/bin/python2.6 /usr/bin/python 
     403}}} 
     404 
     405And then make sure it's installed locally for the next step. 
     406 
    308407==== upload sphinx ==== 
    309408 
    310 Build and upload newer sphinx, which sqlalchemy depends on: 
     409Upload: 
    311410{{{ 
    312411debchange --force-bad-version --preserve --newversion "0.6.2-1~ppa2~jaunty2" \ 
     
    317416dput bcfg2-force-jaunty sphinx_0.6.2-1~ppa2~jaunty2_source.changes 
    318417}}} 
    319 Also install the .deb locally using dpkg, so the next step works. 
     418 
     419And then make sure it's installed locally for the next step. 
    320420 
    321421==== upload sqlalchemy ==== 
    322422 
    323 Build and upload newer sqlalchemy: 
     423Upload: 
    324424{{{ 
    325425debchange --force-bad-version --preserve --newversion "0.5.5-1~ppa2~jaunty2" \ 
     
    331431}}} 
    332432 
     433And then make sure it's installed locally for the next step. 
     434 
    333435==== upload bcfg2 ==== 
     436 
     437Upload: 
     438{{{ 
     439 
     440}}} 
     441 
     442And then make sure it's installed locally for the next step.