~tom-gall/live-build/integrate-linaro-media-create

« back to all changes in this revision

Viewing changes to includes/etch/install/doc/source-unpack.txt

  • Committer: Daniel Baumann
  • Date: 2011-03-09 17:19:41 UTC
  • Revision ID: git-v1:504c05c3a63de0af4fd0e876274afc039c5c0ed1
Adding live-helper 1.0~a15-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
        HOW TO UNPACK A DEBIAN SOURCE PACKAGE
2
 
 
3
 
There are two kinds of Debian source packages: old ones and new ones.
4
 
 
5
 
A. Old ones look like this:
6
 
      hello-1.3-4.tar.gz
7
 
      hello-1.3-4.diff.gz
8
 
 You unpack them by untarring the .tar.gz.  There is NO need to apply
9
 
 the diff.
10
 
 
11
 
B. New ones look like this:
12
 
      hello_1.3-11.dsc
13
 
      hello_1.3-11.diff.gz
14
 
      hello_1.3-11.orig.tar.gz - note the `.orig' part
15
 
 Here you MUST use dpkg-source or apply the diff manually - see below.
16
 
 
17
 
 If you have `dpkg-source' you should put the files in the same
18
 
 directory and type `dpkg-source -x <whatever>.dsc'.
19
 
 
20
 
 If you do not you can extract the Debian source as follows:
21
 
   1. untar P_V.orig.tar.gz.
22
 
   2. rename the resulting P-V.orig directory to P-V.  If some other
23
 
      directory results, rename *it* to P-V.
24
 
   3. mkdir P-V/debian.
25
 
   4. apply the diff with patch -p0.
26
 
   5. do `chmod +x P-V/debian/rules'
27
 
 (where P is the package name and V the version.)
28
 
 
29
 
C. There are some packages where the Debian source is the upstream
30
 
 source.  In this case there will be no .diff.gz and you can just use
31
 
 the .tar.gz.  If a .dsc is provided you can use `dpkg-source -x'.
32
 
 
33
 
 -- Ian Jackson <ijackson@gnu.ai.mit.edu>  Sat, 31 Aug 1996