[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Creare il diff per un deb



On Wed, Dec 24, 2003 at 08:59:44PM +0100, Hugh Hartmann wrote:
> On Wed, Dec 24, 2003 at 08:03:22PM +0100, Umberto Genovese wrote:
> > Salve a Tutti,
> Ciao Umberto,
> 
> > ho spippolato su un sorgente di un deb per aggiungere delle funzioni
> > e ora vorrei creare un diff da accludere ai packages dei sorgenti (il .dsc e
> > il .tar.gz) mi manca solo il nome_pacchetto.diff.gz da creare/accludere:
> > faccio il diff tra la directory originale e la directory coi sorgenti
> > modificati?
> > Qual'è la procedura più corretta?
> 
> Potrebbe esserti utile il testo seguente, sebbene datato ... :-)
> 
> ----------------------------------------------------------------------------
> 
> 	HOW TO UNPACK A DEBIAN SOURCE PACKAGE
> 
> There are two kinds of Debian source packages: old ones and new ones.
> 
> A. Old ones look like this:
>       hello-1.3-4.tar.gz
>       hello-1.3-4.diff.gz
>  You unpack them by untarring the .tar.gz.  There is NO need to apply
>  the diff.
> 
> B. New ones look like this:
>       hello_1.3-11.dsc
>       hello_1.3-11.diff.gz
>       hello_1.3-11.orig.tar.gz - note the `.orig' part
>  Here you MUST use dpkg-source or apply the diff manually - see below.
> 
>  If you have `dpkg-source' you should put the files in the same
>  directory and type `dpkg-source -x <whatever>.dsc'.
> 
>  If you do not you can extract the Debian source as follows:
>    1. untar P_V.orig.tar.gz.
>    2. rename the resulting P-V.orig directory to P-V.
>    3. mkdir P-V/debian.
>    4. apply the diff with patch -p0.
>  (where P is the package name and V the version.)
> 
> C. There are some packages where the Debian source is the upstream
>  source.  In this case there will be no .diff.gz and you can just use
>  the .tar.gz.  If a .dsc is provided you can use `dpkg-source -x'.
> 
>  -- Ian Jackson <ijackson@gnu.ai.mit.edu>  Sat, 31 Aug 1996
> 
> ---------------------------------------------------------------------------- 
> 
> > ps: Auguri a Tutti/e
> 
> Grazie, Sereno Natale anche a te!
> 
> Au Revoire
> Hugh Hartmann  
> 



Reply to: