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

Re: How to build source package?

On Fri, 2002-05-31 at 11:43, Grant Edwards wrote:
> I've been using the "New Maintainer's Guide" and have created
> and built (and installed/uninstalled) a binary package. That's
> all working swimmingly -- I'm even asking the user before I use
> MAKENDEV in postinst. ;)
> But, I can't figure out how to create a source package
> (something that would correspond to a .src.rpm file).

In Debian, there is no single file that corresponds with a .src.rpm. 
Source packages consist of multiple files.  The central one is the one
with ".dsc" as the name; it contains all of the information to describe
the other files needed.  These other files will be either a file with
".orig.tar.gz" and a file with ".diff.gz" at the ends of their names, or
a single ".tar.gz" file.

> According to the the NMG, "dpkg-buildpackage" will build both
> source and binary packages, but I don't see anything that looks
> like a source package.  I also tried dpkg-source -b, and it
> says it's doing stuff but it creates no source package that I
> can find anywhere.
> I imagine I'm just being thick, but can somebody point me to
> documentation on what a source package looks like and how to
> generate one?
> Is a "source package" not a single file?

Nope.  I'll cut out all the "extraneous" files from your ls, leaving the
source package files:

> -rw-r--r--    1 grante   500        196900 May  8 12:50 rocketats_1.23.orig.tar.gz
> -rw-r--r--    1 grante   500           332 May 31 11:28 rocketats_1.23-1.dsc
> -rw-r--r--    1 grante   500         16435 May 31 11:28 rocketats_1.23-1.diff.gz

To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: