Changes between Version 33 and Version 34 of BuildingDebianPackages
- Timestamp:
- 10/29/09 23:47:19 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingDebianPackages
v33 v34 168 168 To upload to the PPA you need to be on the active member list of [https://launchpad.net/~bcfg2 Bcfg2 in Launchpad]. 169 169 170 Note 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 170 172 ==== setup gpg-agent ==== 171 173 … … 236 238 fqdn = ppa.launchpad.net 237 239 method = ftp 238 incoming = ~bcfg2/ bcfg2-testing/ubuntu240 incoming = ~bcfg2/testing/ubuntu 239 241 login = anonymous 240 242 allow_unsigned_uploads = 0 … … 243 245 fqdn = ppa.launchpad.net 244 246 method = ftp 245 incoming = ~bcfg2/ bcfg2-testing/ubuntu/dapper247 incoming = ~bcfg2/testing/ubuntu/dapper 246 248 login = anonymous 247 249 allow_unsigned_uploads = 0 … … 250 252 fqdn = ppa.launchpad.net 251 253 method = ftp 252 incoming = ~bcfg2/ bcfg2-testing/ubuntu/hardy254 incoming = ~bcfg2/testing/ubuntu/hardy 253 255 login = anonymous 254 256 allow_unsigned_uploads = 0 … … 257 259 fqdn = ppa.launchpad.net 258 260 method = ftp 259 incoming = ~bcfg2/ bcfg2-testing/ubuntu/intrepid261 incoming = ~bcfg2/testing/ubuntu/intrepid 260 262 login = anonymous 261 263 allow_unsigned_uploads = 0 … … 264 266 fqdn = ppa.launchpad.net 265 267 method = ftp 266 incoming = ~bcfg2/ bcfg2-testing/ubuntu/jaunty268 incoming = ~bcfg2/testing/ubuntu/jaunty 267 269 login = anonymous 268 270 allow_unsigned_uploads = 0 … … 271 273 fqdn = ppa.launchpad.net 272 274 method = ftp 273 incoming = ~bcfg2/ bcfg2-testing/ubuntu/karmic275 incoming = ~bcfg2/testing/ubuntu/karmic 274 276 login = anonymous 275 277 allow_unsigned_uploads = 0 … … 277 279 278 280 ==== upload po4a ==== 281 282 Upload: 279 283 {{{ 280 284 #!/bin/sh -x … … 286 290 cd po4a-0.36.1 287 291 cp debian/changelog debian/changelog.orig 288 ppa=" bcfg2-testing" # "bcfg2-testing" or "ppa" (for stable)292 ppa="testing" # "testing" or "ppa" (for stable) 289 293 try="1" 290 294 … … 300 304 }}} 301 305 306 And then make sure it's installed locally for the next step. 307 302 308 ==== upload debhelper ==== 303 309 310 Upload: 311 {{{ 312 #!/bin/sh -x 313 314 wget http://archive.ubuntu.com/ubuntu/pool/main/d/debhelper/debhelper_7.3.15ubuntu3.dsc 315 wget http://archive.ubuntu.com/ubuntu/pool/main/d/debhelper/debhelper_7.3.15ubuntu3.tar.gz 316 dpkg-source -x debhelper_7.3.15ubuntu3.dsc 317 cd debhelper-7.3.15ubuntu3 318 cp debian/changelog debian/changelog.orig 319 ppa="testing" # "testing" or "ppa" (for stable) 320 try="1" 321 322 for dist in dapper hardy intrepid jaunty karmic; do 323 cp debian/changelog.orig debian/changelog 324 (cd debian && debchange --force-bad-version --preserve --newversion \ 325 "7.3.15ubuntu3~${ppa}${try}~${dist}${try}" \ 326 backport to ppa ${ppa}, dist ${dist}, try ${try}) 327 # Replace 0xAA95C349 to your GnuPG Key ID 328 debuild -S -k0xAA95C349 329 dput bcfg2-testing-force-${dist} ../debhelper_7.3.15ubuntu3~${ppa}${try}~${dist}${try}_source.changes 330 done 331 }}} 332 333 And then make sure it's installed locally for the next step. 334 304 335 ==== upload stdeb ==== 305 336 337 Upload: 338 {{{ 339 #!/bin/sh -x 340 341 sudo aptitude install python-all-dev fakeroot python-setuptools libssl-dev debhelper python-support apt-file 342 sudo easy_install stdeb 343 wget http://pypi.python.org/packages/source/s/stdeb/stdeb-0.4.1.tar.gz 344 tar xvfz stdeb-0.4.1.tar.gz 345 cd stdeb-0.4.1 346 stdeb_run_setup 347 cd deb_dist/stdeb-0.4.1 348 cp debian/changelog debian/changelog.orig 349 ppa="testing" # "testing" or "ppa" (for stable) 350 try="2" 351 352 for dist in dapper hardy intrepid jaunty karmic; do 353 cp debian/changelog.orig debian/changelog 354 (cd debian && debchange --force-bad-version --preserve --newversion \ 355 "0.4.1-1~${ppa}${try}~${dist}${try}" \ 356 backport to ppa ${ppa}, dist ${dist}, try ${try}) 357 # Replace 0xAA95C349 to your GnuPG Key ID 358 debuild -S -sa -k0xAA95C349 # Using -sa here because we need .orig.tar.gz file 359 dput bcfg2-testing-force-${dist} ../stdeb_0.4.1-1~${ppa}${try}~${dist}${try}_source.changes 360 done 361 362 # TODO: Fix "Upload Warnings: No copyright file found." 363 }}} 364 365 366 367 And then make sure it's installed locally for the next step. 368 306 369 ==== upload python-ssl ==== 307 370 371 Upload: 372 {{{ 373 #!/bin/sh -x 374 375 wget http://pypi.python.org/packages/source/s/ssl/ssl-1.15.tar.gz 376 tar xvfz ssl-1.15.tar.gz 377 cd ssl-1.15 378 wget https://trac.mcs.anl.gov/projects/bcfg2/raw-attachment/wiki/BuildingDebianPackages/ssl-1.15-debian.patch 379 patch -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... 383 sudo ln -sf /usr/bin/python2.5 /usr/bin/python 384 sudo easy_install stdeb 385 stdeb_run_setup 386 387 cd deb_dist/ssl-1.15 388 cp debian/changelog debian/changelog.orig 389 ppa="testing" # "testing" or "ppa" (for stable) 390 try="1" 391 392 for dist in dapper hardy intrepid; do 393 cp debian/changelog.orig debian/changelog 394 (cd debian && debchange --force-bad-version --preserve --newversion \ 395 "1.15-1~${ppa}${try}~${dist}${try}" \ 396 backport to ppa ${ppa}, dist ${dist}, try ${try}) 397 # Replace 0xAA95C349 to your GnuPG Key ID 398 debuild -S -sa -k0xAA95C349 # Using -sa here because we need .orig.tar.gz file 399 dput bcfg2-testing-force-${dist} ../ssl_1.15-1~${ppa}${try}~${dist}${try}_source.changes 400 done 401 402 sudo ln -sf /usr/bin/python2.6 /usr/bin/python 403 }}} 404 405 And then make sure it's installed locally for the next step. 406 308 407 ==== upload sphinx ==== 309 408 310 Build and upload newer sphinx, which sqlalchemy depends on:409 Upload: 311 410 {{{ 312 411 debchange --force-bad-version --preserve --newversion "0.6.2-1~ppa2~jaunty2" \ … … 317 416 dput bcfg2-force-jaunty sphinx_0.6.2-1~ppa2~jaunty2_source.changes 318 417 }}} 319 Also install the .deb locally using dpkg, so the next step works. 418 419 And then make sure it's installed locally for the next step. 320 420 321 421 ==== upload sqlalchemy ==== 322 422 323 Build and upload newer sqlalchemy:423 Upload: 324 424 {{{ 325 425 debchange --force-bad-version --preserve --newversion "0.5.5-1~ppa2~jaunty2" \ … … 331 431 }}} 332 432 433 And then make sure it's installed locally for the next step. 434 333 435 ==== upload bcfg2 ==== 436 437 Upload: 438 {{{ 439 440 }}} 441 442 And then make sure it's installed locally for the next step.