X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit-user.7.pod;h=ad0cca1da867e3bd19623f0e942723170136627d;hp=d27cd936059aa86486e0dde29d9cb2e3b4164ce9;hb=4f6d18cda748b189b50008b7c788a9247228d46c;hpb=c4dea463ddc76cf7e39612dbdce3b18a5a0db957 diff --git a/dgit-user.7.pod b/dgit-user.7.pod index d27cd936..ad0cca1d 100644 --- a/dgit-user.7.pod +++ b/dgit-user.7.pod @@ -9,7 +9,7 @@ system as if your distro used git to maintain all of it. You can then edit it, -build updated binary packages +build updated binary packages (.debs) and install and run them. You can also share your work with others. @@ -30,7 +30,7 @@ or L and L. =over 4 - % dgit clone glibc jessie + % dgit clone glibc jessie,-security % cd glibc % wget 'https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=28250;mbox=yes;msg=89' | patch -p1 -u % git commit -a -m 'Fix libc lost output bug' @@ -55,7 +55,7 @@ Later: =over 4 % cd glibc - % dgit pull jessie + % dgit pull jessie,-security % gbp dch -S --since=dgit/dgit/sid --ignore-branch --commit % dpkg-buildpackage -uc -b % sudo dpkg -i ../libc6_*.deb @@ -66,13 +66,14 @@ Later: =over 4 - % dgit clone glibc jessie + % dgit clone glibc jessie,-security % cd glibc =back dgit clone needs to be told the source package name -(which might be different to the binary package name) +(which might be different to the binary package name, +which was the name you passed to "apt-get install") and the codename or alias of the Debian release (this is called the "suite"). @@ -124,15 +125,23 @@ If you don't know what you're running, try this: =back +For Debian, you should add C<,-security> +to the end of the suite name, +unless you're on unstable or testing. +Hence, in our example +C becomes C. +(Yes, with a comma.) + =head1 WHAT DGIT CLONE PRODUCES =head2 What branches are there dgit clone will give you a new working tree, -and arrange for you to be on a branch like -C. +and arrange for you to be on a branch named like +C (yes, with a comma in the branch name). -There is a tracking branch for the contents of the archive, called +For each release (like C) +there is a tracking branch for the contents of the archive, called C (and similarly for other suites). This can be updated with C. @@ -140,6 +149,12 @@ This, the I, is synthesized by your local copy of dgit. It is fast forwarding. +Debian separates out the security updates, into C<*-security>. +Telling dgit C means that it should include +any updates available in C. +The comma notation is a request to dgit to track jessie, +or jessie-security if there is an update for the package there. + (You can also dgit fetch in a tree that wasn't made by dgit clone. If there's no C you'll have to supply a C<-p>I option to dgit fetch.) @@ -169,7 +184,8 @@ from dgitish git branches. (For Debian afficionados: the git trees that come out of dgit are -"patches-applied packaging branches".) +"patches-applied packaging branches +without a .pc directory".) =head2 What kind of history you get @@ -187,6 +203,9 @@ history invented by dgit. dgit histories often contain automatically-generated commits, including commits which make no changes but just serve to make a rebasing branch fast-forward. +This is particularly true of +combining branches like +C. If the package maintainer is using git then after dgit clone @@ -286,6 +305,8 @@ but not to build a source package. =head1 INSTALLING +=head2 Debian Jessie or older + =over 4 % sudo dpkg -i ../libc6_*.deb @@ -299,6 +320,14 @@ If the dependencies aren't installed, you will get an error, which can usually be fixed with C. +=head2 Debian Stretch or newer + +=over 4 + + % sudo apt install ../libc6_*.deb + +=back + =head1 Multiarch If you're working on a library package and your system has multiple @@ -350,11 +379,11 @@ but passing C<--force-overwrite> to dpkg will help =head1 SHARING YOUR WORK -The C branch (or whatever) is a normal git branch. +The C branch (or whatever) is a normal git branch. You can use C to publish it on any suitable git server. Anyone who gets that git branch from you -will be able to build binary packages +will be able to build binary packages (.deb) just as you did. If you want to contribute your changes back to Debian, @@ -379,15 +408,15 @@ you need to provide a source package but don't care about its format/layout (for example because some software you have consumes source packages, not git histories) -you can use this recipe to generate a C<1.0> "native" +you can use this recipe to generate a C<3.0 (native)> source package, which is just a tarball with accompanying .dsc metadata file: =over 4 - % git rm debian/source/version - % git commit -m 'switch to 1.0 source format' - % dgit -wgf --dpkg-buildpackage:-sn build-source + % echo '3.0 (native)' >debian/source/format + % git commit -m 'switch to native source format' debian/source/format + % dgit -wgf build-source =back