[Debian-olpc-devel] Converting from tar.bz2 to orig.tar.gz

Jonas Smedegaard dr at jones.dk
Thu Jan 22 14:46:23 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jan 22, 2009 at 02:46:10PM +0200, Morgan Collett wrote:
>Is there a standard way of converting an upstream tarball from tar.bz2 
>to orig.tar.gz? When I built some packages for Ubuntu and then later 
>synced from Debian, the tarballs were different, and I want to avoid 
>that happening again if possible.

You can either bzip2 and gzip by hand as Luke proposes, or use the 
get-orig-source routine provided in the upstream-source.mk CDBS snippet 
(which essentially does the same).

But what you really want is then to _remember_ the actual binary 
composition of that resulting gzipped tarball. Use pristine-tar for 
that, either by hand or pass the --git-pristine-tar option to 
git-buildpackage commands.


  - Jonas

- -- 
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkl4hr8ACgkQn7DbMsAkQLiCTQCeMk05C+NSZRGjumpnJ8OI1Aww
3uwAnj3bsJMr2vpBCsPWZBgocOwJTMwG
=0Vq1
-----END PGP SIGNATURE-----



More information about the Debian-olpc-devel mailing list