Changes between Initial Version and Version 1 of UbuntuPpa


Ignore:
Timestamp:
08/02/11 14:26:54 (7 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UbuntuPpa

    v1 v1  
     1PPA  
     2 
     3https://wiki.ubuntu.com/PackagingGuide/Recipes/Debdiff 
     4 
     5# Upload to personal PPA  
     6# https://launchpad.net/~joshuadfranklin 
     7# takes about an hour to appear when you first sign up! 
     8 
     9https://help.launchpad.net/Packaging/PPA/Uploading 
     10 
     11 
     12 
     13{{{ 
     14apt-get -y install  bzr-builddeb 
     15apt-get -y install devscripts build-essential wget fakeroot cdbs patchutils debhelper 
     16bzr whoami "Joshua Daniel Franklin <joshuadfranklin@yahoo.com>" 
     17bzr launchpad-login joshuadfranklin 
     18export DEBFULLNAME='Joshua Daniel Franklin'  
     19export DEBEMAIL='joshuadfranklin@yahoo.com' 
     20 
     21mkdir src 
     22cd src 
     23 
     24# https://help.launchpad.net/Packaging/PPA/Uploading 
     25apt-get source opensaml2 
     26# creates opensaml2-2.3 opensaml2_2.3-1build2.dsc  
     27cd opensaml2-2.3 
     28# edit files in opensaml2 
     29patch -p0 < ../foo/x 
     30# edit changelog, add "ppa1" to version number 
     31dch -i 
     32debuild -S 
     33cd .. 
     34debdiff opensaml2_2.3-1build2.dsc opensaml2_2.3-1build2ppa1.dsc  > mydebdiff 
     35#  And we're done. You can now attach the debdiff to a bug report or send it to the relevant person.  
     36 
     37dput ppa:joshuadfranklin:ppa opensaml2_2.3-1build2ppa1_source.changes  
     38}}} 
     39 
     40After it builds you can install it: 
     41{{{ 
     42# https://bugs.launchpad.net/ubuntu/+source/opensaml2/+bug/817199 
     43cat <<EOF > /etc/apt/sources.list.d/joshuadfranklin-ppa.list 
     44deb http://ppa.launchpad.net/joshuadfranklin/ppa/ubuntu lucid main 
     45deb-src http://ppa.launchpad.net/joshuadfranklin/ppa/ubuntu lucid main 
     46EOF 
     47gpg --recv-keys 75BA62B3B973066B 
     48gpg --export --armor 75BA62B3B973066B | apt-key add - 
     49apt-get update 
     50apt-get upgrade 
     51}}} 
     52 
     53 
     54Example output: 
     55{{{ 
     56debuild -S 
     57 dpkg-buildpackage -rfakeroot -d -us -uc -S 
     58dpkg-buildpackage: warning: using a gain-root-command while being root 
     59dpkg-buildpackage: set CFLAGS to default value: -g -O2 
     60dpkg-buildpackage: set CPPFLAGS to default value:  
     61dpkg-buildpackage: set LDFLAGS to default value: -Wl,-Bsymbolic-functions 
     62dpkg-buildpackage: set FFLAGS to default value: -g -O2 
     63dpkg-buildpackage: set CXXFLAGS to default value: -g -O2 
     64dpkg-buildpackage: source package opensaml2 
     65dpkg-buildpackage: source version 2.3-1build2ppa1 
     66dpkg-buildpackage: source changed by Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 
     67 fakeroot debian/rules clean 
     68dh_testdir 
     69dh_testroot 
     70rm -f configure-stamp build-stamp install-stamp 
     71[ ! -f Makefile ] || /usr/bin/make distclean 
     72dh_clean config.guess config.sub 
     73 dpkg-source -b opensaml2-2.3 
     74dpkg-source: info: using source format `1.0' 
     75dpkg-source: info: building opensaml2 using existing opensaml2_2.3.orig.tar.gz 
     76dpkg-source: info: building opensaml2 in opensaml2_2.3-1build2ppa1.diff.gz 
     77dpkg-source: warning: ignoring deletion of file config.sub 
     78dpkg-source: warning: ignoring deletion of file config.guess 
     79dpkg-source: warning: the diff modifies the following upstream files:  
     80 saml/signature/ContentReference.cpp 
     81 saml/signature/SignatureProfileValidator.cpp 
     82dpkg-source: info: use the '3.0 (quilt)' format to have separate and documented changes to upstream files, see dpkg-source(1) 
     83dpkg-source: info: building opensaml2 in opensaml2_2.3-1build2ppa1.dsc 
     84 dpkg-genchanges -S >../opensaml2_2.3-1build2ppa1_source.changes 
     85dpkg-genchanges: warning: the current version (2.3-1build2ppa1) is smaller than the previous one (2.3-2+squeeze1) 
     86dpkg-genchanges: not including original source code in upload 
     87dpkg-buildpackage: source only, diff-only upload (original source NOT included) 
     88Now running lintian... 
     89warning: lintian's authors do not recommend running it with root privileges! 
     90W: opensaml2 source: debhelper-but-no-misc-depends opensaml2-tools 
     91W: opensaml2 source: debhelper-but-no-misc-depends libsaml2-doc 
     92W: opensaml2 source: debhelper-but-no-misc-depends libsaml2-dev 
     93W: opensaml2 source: debhelper-but-no-misc-depends opensaml2-schemas 
     94W: opensaml2 source: missing-debian-source-format 
     95W: opensaml2 source: out-of-date-standards-version 3.8.3 (current is 3.8.4) 
     96Finished running lintian. 
     97Now signing changes and any dsc files... 
     98 signfile opensaml2_2.3-1build2ppa1.dsc Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 
     99You need a passphrase to unlock the secret key for 
     100user: "Joshua Daniel Franklin <joshuadfranklin@yahoo.com>" 
     1011024-bit DSA key, ID 65E64156, created 2006-08-23 
     102 
     103                   
     104 signfile opensaml2_2.3-1build2ppa1_source.changes Joshua Daniel Franklin <joshuadfranklin@yahoo.com> 
     105 
     106You need a passphrase to unlock the secret key for 
     107user: "Joshua Daniel Franklin <joshuadfranklin@yahoo.com>" 
     1081024-bit DSA key, ID 65E64156, created 2006-08-23               
     109Successfully signed dsc and changes files 
     110 
     111 
     112dput ppa:joshuadfranklin:ppa opensaml2_2.3-1build2ppa1_source.changes  
     113Checking signature on .changes 
     114gpg: Signature made Thu 28 Jul 2011 02:57:34 PM PDT using DSA key ID 65E64156 
     115gpg: Good signature from "Joshua Daniel Franklin <joshuadfranklin@yahoo.com>" 
     116Good signature on /src/opensaml2_2.3-1build2ppa1_source.changes. 
     117Checking signature on .dsc 
     118gpg: Signature made Thu 28 Jul 2011 02:57:30 PM PDT using DSA key ID 65E64156 
     119gpg: Good signature from "Joshua Daniel Franklin <joshuadfranklin@yahoo.com>" 
     120Good signature on /src/opensaml2_2.3-1build2ppa1.dsc. 
     121Uploading to ppa (via ftp to ppa.launchpad.net): 
     122  Uploading opensaml2_2.3-1build2ppa1.dsc: done. 
     123  Uploading opensaml2_2.3-1build2ppa1.diff.gz: done. 
     124  Uploading opensaml2_2.3-1build2ppa1_source.changes: done. 
     125Successfully uploaded packages. 
     126}}}