Re: Making Deb Packages



On Thu, May 31, 2007 at 03:28:37PM +0300, Chaim Keren-Tzion wrote:

On Thursday 31 May 2007 14:39:36 Karl E. Jorgensen wrote:
On Thu, May 31, 2007 at 02:22:35PM +0300, Chaim Keren Tzion wrote:
Hi,

How do I get started making my own debian package files from source.

The definitive resource of this is probably
http://www.debian.org/devel
starting at:
http://www.debian.org/doc/maint-guide/

I need to use non-debian source, ie. a spanking new ffmpeg source from
svn.

Since ffmpeg has been debianized already, you should be able to save a
*LOT* of time by looking at the .diff for the existing package and using
that for yours.

If you want a newer version of ffmpeg than is in Debian, you may want to
look at www.debian-multimedia.org - they should have a later version of
ffmpeg already debianized.

Thanks,

Where can I find the ".diff" file?

My main reason for recompiling is that I need to add support for other codecs
and libraries.

If you just need to recompile it with different options (i.e. same
upstream version of ffmpeg), then simply download it :-)

$ cd /tmp
$ apt-get source ffmpeg

This only works if you have the necessary 'deb-src' lines in
/etc/apt/sources.list. If not, then copy the existing lines and replace
'deb' with 'deb-src' (in the *copied* lines), followed by "apt-get
update".

Obviously, for rebuilding it, you'll need all of the relevant build-time
dependencies install (which is different from the run-time
dependencies). This should take care of that:
# apt-get install build-essential fakeroot
# apt-get build-dep ffmpeg
If you want to add other codecs, you'll probably need to install bits
for those codecs too.

Then you can change the source code to your hearts content (sounds like
you're want to modify the call to ./configure in debian/rules) and run:
$ fakeroot dpkg-buildpackage
or
$ fakeroot debian/rules binary
to rebuild.

Hope this helps.

--
Karl E. Jorgensen
karl@xxxxxxxxxxxxxxxx http://www.jorgensen.org.uk/
karl@xxxxxxxxxxxxx http://karl.jorgensen.com
==== Today's fortune:
Vitamin C deficiency is apauling.

Attachment: signature.asc
Description: Digital signature



Relevant Pages

  • Re: where is the w32codecs for amd64 testing?
    ... can't find them for amd64 system. ... makes them avaible for all media player which use ffmpeg. ... I guess that just the ffmpeg version in Debian lacks those features because ... Novell's Directory Services is a competitive product to Microsoft's ...
    (Debian-User)
  • Re: where is the w32codecs for amd64 testing?
    ... can't find them for amd64 system. ... makes them avaible for all media player which use ffmpeg. ... I guess that just the ffmpeg version in Debian lacks those features because ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Ffmpeg and Ipod
    ... I'm quite new in Debian, ... OK but all of them need ffmpeg configured to enable xvid and some more ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: debian-multimedia bug reports?
    ... probably because reportbug is not taking debian-multimedia into account. ... Speaking of ffmpeg, I'm on debian etch and have for the most part ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Making Deb Packages
    ... How do I get started making my own debian package files from source. ... If you want a newer version of ffmpeg than is in Debian, ... Their idea of an offer you can't refuse is an offer... ...
    (Debian-User)