Différences entre versions de « Backport dar »

De Cliss XXI
Sauter à la navigation Sauter à la recherche
 
 
(13 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
Backporting par2 is quite simple - you just need to recompile the Etch version in a Sarge environment. It's a nice occasion to cover the very basics.
+
== Versioning ==
  
You need to modify <code>debian/changelog</code> though. Enter the par2cmdline-0.4 directory, and type:
+
Backporting dar is quite simple - you just need to recompile the Etch version in a Sarge environment. It's a nice occasion to cover the very basics.
 +
 
 +
You need to modify <code>debian/changelog</code> though. Enter the <code>dar-2.3.0</code> directory, and type:
 
  dch -i
 
  dch -i
  
Ligne 7 : Ligne 9 :
 
  EDITOR=emacs dch -i
 
  EDITOR=emacs dch -i
  
 +
madduck suggest to use the following command to generate the initial changelog entry template (didn't try out yet):
 +
dch -D sarge-backports -b -v$(dpkg-parsechangelog | sed -ne 's,^Version: ,,p')~bpo.1 -- Rebuilt for sarge.
  
 
Here's my final changelog entry:
 
Here's my final changelog entry:
  par2cmdline (0.4-7bpo1) sarge-backports; urgency=low
+
  dar (2.3.0-5~bpo.1) sarge-backports; urgency=low
 
   
 
   
   * Rebuilt for Sarge (new version fixes a crash in silent -qq mode)
+
   * Rebuild for Debian Backports <http://www.backports.org/>
 +
    (new version adds support for extended attributes)
 
   
 
   
   -- Sylvain Beucler <beuc@beuc.net>  Fri, 23 Jun 2006 13:30:34 +0000
+
   -- Sylvain Beucler <beuc@beuc.net>  Thu, 14 Sep 2006 16:37:59 +0200
  
  
 
What did I do?
 
What did I do?
* Changed version according to bpo convention, (debian version - 1)bpo1, so 0.4-8 -> 0.4.7bpo1
+
* Changed version according to bpo convention, <code>-debian_version~bpo.1</code>, so:
* Changed distributino from <code>unstable</code> to <code>sarge-backports</code>
+
** the ''testing'' version was: 0.4-7
 +
** <code>dch</code> proposes by default <code>-debian_version+1</code>: 0.4-8
 +
** I use <code>-debian_version~bpo.1</code>: 0.4-7~bpo.1
 +
* Changed distribution from <code>unstable</code> to <code>sarge-backports</code>
 
* Added a terse explanation
 
* Added a terse explanation
 
* Replaced <code>root <root@sylvain></code> with a real e-mail address.
 
* Replaced <code>root <root@sylvain></code> with a real e-mail address.
  
  
Then, in the par2cmdline-0.4 directory, start the compilation.
+
Then, in the <code>dar-2.3.0</code> directory, start the compilation.
 
  debuild -us -uc
 
  debuild -us -uc
  
 
Using the <code>-sa</code> debuild option: not necessary: by default, if the version ends with '0' or '1' (as 'bpo1' does), dpkg-buildpackage uses the existing source release (the .orig.tar.gz file must be present in the parent directory, though).
 
Using the <code>-sa</code> debuild option: not necessary: by default, if the version ends with '0' or '1' (as 'bpo1' does), dpkg-buildpackage uses the existing source release (the .orig.tar.gz file must be present in the parent directory, though).
 +
 +
== Installation ==
 +
 +
Now you can test your dar package:
 +
sudo dpkg -i dar_2.3.0-5~bpo.1_i386.deb libdar64-4_2.3.0-5~bpo.1_i386.deb
 +
 +
 +
== Check your changes ==
 +
 +
Check your changes using <code>interdiff</code>:
 +
mkdir tmp
 +
cd tmp
 +
cp ../dar*.diff.gz .
 +
gunzip *
 +
interdiff dar_2.3.0-5.diff dar_2.3.0-5~bpo.1.diff
 +
 +
If you see some source changes that you didn't do, then your backport is not clean (probably it's a leftover from an incomplete <code>make clean</code>). Usually, just remove the current directory and extract a new clean one using <code>dpkg-source</code>.

Version actuelle datée du 21 octobre 2006 à 15:43

Versioning

Backporting dar is quite simple - you just need to recompile the Etch version in a Sarge environment. It's a nice occasion to cover the very basics.

You need to modify debian/changelog though. Enter the dar-2.3.0 directory, and type:

dch -i

If you want to use another editor, you can also:

EDITOR=emacs dch -i

madduck suggest to use the following command to generate the initial changelog entry template (didn't try out yet):

dch -D sarge-backports -b -v$(dpkg-parsechangelog | sed -ne 's,^Version: ,,p')~bpo.1 -- Rebuilt for sarge.

Here's my final changelog entry:

dar (2.3.0-5~bpo.1) sarge-backports; urgency=low

  * Rebuild for Debian Backports <http://www.backports.org/>
    (new version adds support for extended attributes)

 -- Sylvain Beucler <beuc@beuc.net>  Thu, 14 Sep 2006 16:37:59 +0200


What did I do?

  • Changed version according to bpo convention, -debian_version~bpo.1, so:
    • the testing version was: 0.4-7
    • dch proposes by default -debian_version+1: 0.4-8
    • I use -debian_version~bpo.1: 0.4-7~bpo.1
  • Changed distribution from unstable to sarge-backports
  • Added a terse explanation
  • Replaced root <root@sylvain> with a real e-mail address.


Then, in the dar-2.3.0 directory, start the compilation.

debuild -us -uc

Using the -sa debuild option: not necessary: by default, if the version ends with '0' or '1' (as 'bpo1' does), dpkg-buildpackage uses the existing source release (the .orig.tar.gz file must be present in the parent directory, though).

Installation

Now you can test your dar package:

sudo dpkg -i dar_2.3.0-5~bpo.1_i386.deb libdar64-4_2.3.0-5~bpo.1_i386.deb


Check your changes

Check your changes using interdiff:

mkdir tmp
cd tmp
cp ../dar*.diff.gz .
gunzip *
interdiff dar_2.3.0-5.diff dar_2.3.0-5~bpo.1.diff

If you see some source changes that you didn't do, then your backport is not clean (probably it's a leftover from an incomplete make clean). Usually, just remove the current directory and extract a new clean one using dpkg-source.