Changes between Version 50 and Version 51 of BuildingDebianPackages
- Timestamp:
- 11/11/09 23:11:43 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingDebianPackages
v50 v51 292 292 293 293 ==== bcfg2 ==== 294 294 295 ===== upload debhelper ===== 295 296 … … 308 309 try="1" 309 310 310 for dist in dapperhardy intrepid jaunty; do311 for dist in hardy intrepid jaunty; do 311 312 cp debian/changelog.orig debian/changelog 312 313 (cd debian && debchange --force-bad-version --preserve --newversion \ … … 338 339 REV=$(svn info|grep '^Revision' |cut -d' ' -f2) 339 340 340 for dist in dapperhardy intrepid jaunty karmic lucid; do341 for dist in hardy intrepid jaunty karmic lucid; do 341 342 cp debian/changelog.orig debian/changelog 342 343 (cd debian && debchange --force-bad-version --preserve --newversion \ … … 370 371 try="1" 371 372 372 for dist in dapperhardy intrepid jaunty; do373 for dist in hardy intrepid jaunty; do 373 374 cp debian/changelog.orig debian/changelog 374 375 (cd debian && debchange --force-bad-version --preserve --newversion \ … … 383 384 ==== bcfg2-server + python <= 2.5 ==== 384 385 385 To run on GNU/Linux distributions that do not ship with python 2.6 or newer, you need python-ssl backported. 386 387 ===== upload stdeb ===== 388 389 Upload: 390 {{{ 391 #!/bin/sh -x 392 393 sudo aptitude install python-all-dev fakeroot python-setuptools libssl-dev debhelper python-support apt-file 394 sudo easy_install stdeb 395 wget http://pypi.python.org/packages/source/s/stdeb/stdeb-0.4.1.tar.gz 396 tar xvfz stdeb-0.4.1.tar.gz 397 cd stdeb-0.4.1 398 stdeb_run_setup 399 cd deb_dist/stdeb-0.4.1 400 cp debian/changelog debian/changelog.orig 401 ppa="testing" # "testing" or "ppa" (for stable) 402 try="2" 403 404 for dist in dapper hardy intrepid; do 405 cp debian/changelog.orig debian/changelog 406 (cd debian && debchange --force-bad-version --preserve --newversion \ 407 "0.4.1-1~${ppa}${try}~${dist}${try}" \ 408 backport to ppa ${ppa}, dist ${dist}, try ${try}) 409 # Replace 0xAA95C349 to your GnuPG Key ID 410 debuild -S -sa -k0xAA95C349 # Using -sa here because we need .orig.tar.gz file 411 dput bcfg2-testing-force-${dist} ../stdeb_0.4.1-1~${ppa}${try}~${dist}${try}_source.changes 412 done 413 414 # TODO: Fix "Upload Warnings: No copyright file found." 415 }}} 416 417 418 419 And then make sure it's installed locally for the next step. 386 To run on GNU/Linux distributions that do not ship with python 2.6 or newer, you need python-ssl backported. '''Because of the way stdeb determines dependancies, you need to do these backports from the oldest distribution you wish to support.''' 420 387 421 388 ===== upload python-ssl ===== … … 431 398 patch -p1 < ssl-1.15-debian.patch 432 399 433 # Note: ssl backport will only build on systems with Python 2.5 or earlier434 # this is a workaround for newer systems...435 sudo ln -sf /usr/bin/python2.5 /usr/bin/python436 400 sudo easy_install stdeb 437 401 stdeb_run_setup … … 442 406 try="1" 443 407 444 for dist in dapperhardy intrepid; do408 for dist in hardy intrepid; do 445 409 cp debian/changelog.orig debian/changelog 446 410 (cd debian && debchange --force-bad-version --preserve --newversion \ … … 451 415 dput bcfg2-testing-force-${dist} ../ssl_1.15-1~${ppa}${try}~${dist}${try}_source.changes 452 416 done 453 454 sudo ln -sf /usr/bin/python2.6 /usr/bin/python 455 }}} 456 457 And then make sure it's installed locally for the next step. 417 }}}