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

Re: compiling programs in debian way



Steve, thank you very much for the detailed help! I will follow the
suggested links too.

Marcelo

On Thu, 2006-11-02 at 22:48 +0000, Steve Kemp wrote:
> On Thu, Nov 02, 2006 at 04:27:01PM -0600, Ron Johnson wrote:
> > > Thanks in advance for the help
> > 
> > $ wajig show debian-builder
> > Package: debian-builder
> 
>   That will not help.  (Speaking as upstream author of that tool).
> 
>   To rebuild a Debian package the correct way you need three things:
> 
>     1.  The "debianised source", which is:
>             a)  The .orig.tar.gz file.
>             b)  The .diff.gz file.
>             c)  The .dsc file.
> 
>     2.  The build-dependencies, by which we mean all headers and library
>        packages which are required to build the given program.
> 
>     3.  A build environment.
> 
>   It seems like the OP has 1 + 2.  To get three they should run:
> 
>     apt-get install devscripts dpkg-dev build-essential fakeroot.
> 
>   Once that has been done the Debian patched source can be unpacked
>  via "dpkg-source -x *.dsc".  This will leave a directory with
>  the source in it and a debian/ subdirectory.
> 
>   Edit the file debian/changelog to mark a new version, if you wish,
>  then run:
> 
>     debuild -sa
> 
>   This should result in a .deb file being produced in the parent
>   directory.
> 
>   For more details you could read the following guides:
> 
>         # Rebuilding Debian packages:
>         http://www.debian-administration.org/articles/20
> 
>         # Roll your own Debian packages:
>         http://www.debian-administration.org/articles/336
>         http://www.debian-administration.org/articles/337
> 
>    Or to cheat and completely sidestep most of the major issues
>   use "checkinstall":
> 
>     http://www.debian-administration.org/articles/147
> 
> Steve
> -- 
> 
> 
-- 
Marcelo Chiapparini
chiappa@oi.com.br



Reply to: