Re: Making .deb's



On Sun, March 11, 2007 1:22 am, Steven Pasternak wrote:
Hi! I have been using Ubuntu for a few months now, and it is great. I
came from most of the big RPM distros (Fedora/Redhat,SuSE,Mandrake), and
used rpm to compile and install stuff. I finally figured out how to get
checkinstall to build .debs, but I can't figure out how to get the
debian equivalent of a Source RPM, with the ./configure options. I do
know how to use apt-get build-dep, etc., just not how the source is
configured in the deb's already downloaded. If anyone knows how to find
it, your help would be greatly appreciated.
-Steven

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Hi Steven,

I've recently been through this hell myself, so I sympathise :-) . You
actually don't have a source deb file as such - you have a source package
which you can include in a repository consisting of a .dsc file and the
original source code .tar.gz. Technically though, you could create a
debian package that upon installation copies all your source files to a
directory in /usr/src. Just modify your rules file for this.

You need your source .tar.gz and your .dsc (as well as any patch files) to
create a binary deb file in the first place so chances are you already
have them.

Many will recommend that you use debhelper to create your packages. From
personal experience I've found that this is far harder than doing it
yourself manually. Ubuntu provides a decent guide on packaging from
scratch as well as using debhelper at:

http://doc.ubuntu.com/ubuntu/packagingguide/C/index.html

Hope this helps!

-- Darryl


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: Redhat to Freebsd
    ... >>researching security updates or in performing kernel or package updates. ... >>I assume it is only the Redhat distro that has the ease of RPM installation? ... So you can build from sources with ports, or install binaries ...
    (comp.unix.bsd.freebsd.misc)
  • Re: ./configure command
    ... The package is not available. ... machines which don't even have an OS at all, let alone RPM, ... There is not a "the tool to package and install on Fedora". ... If he wants to avoid trouble, ...
    (Fedora)
  • Re: Backing up whole system
    ... Amanda is packaged by Fedora and if Gene feels that the packages are ... fedora's rpm is/was incapable of handling the nuances of using only enough ... When an rpm package can build a complete user from scratch, ... Do you really believe that rpm can install every package under the sun, ...
    (Fedora)
  • Re: [SLE] deCSS
    ... >> Anyone know of a reasonably easy decss program to copy DVDs to my hard ... This let's you compile from source but converts it to an rpm ... Then instead of make install you type checkinstall. ... package to meet the dependencies it may not be recognized by the other ...
    (SuSE)
  • Re: Ubunto
    ... developing Java on Fedora? ... The javadoc is in a third package, ... The lower layer is RPM - RPM files and the 'rpm' command, which is all about taking RPM files and unpacking them into the filesystem. ... It will then transactionally install all of them ...
    (comp.lang.java.programmer)