Re: New packaging manual draft
On 19 Sep 2000, Manoj Srivastava wrote:
> Hi folks,
>
> I have put an initial draft of the new package related policy
> manual on http://master.debian.org/%7Esrivasta/new-packaging.txt. I
> have tried to trim tis down to include only stuff I think ought to be
> in policy, using the following informal criteria:
Shouldn't the copyright be updated to something more current than 1996? The
license is located at /usr/share/common-licenses/GPL, not in /usr/doc.
4.2. `debian/rules' - the main building script
----------------------------------------------
Why does this have to be a make file? The 2nd paragraph says that the script
must start with '#!/usr/bin/make -f' so that it can be invoked by name. This
means that the invoker does not care what interpeter is used to run the
script, so it can be anything.
I see no reason why we MUST use a makefile. In fact, this should probably
read more like this:
This file must be an executable script(it can use any interpeter
that is either by default on the development system, or is listed in
Build-Depends), and contains the package-specific recipies for compiling
the package and building binary package(s) out of the source.
It must start with the line `#!/path/to/script', so that it can be
invoked by saying its name rather than invoking `make' explicitly.
....
The architecture we build on and build for is determined by
environment variables, which also happen to be passed on the cmdline to
the debian/rules invocation. They are passed in the form of
debian/rules VAR=VALUE
or
debian/rules VAR="VALUE" (if value contains a space)
You can get the Debian architecture and the GNU style architecture
specification string for the build machine as well as the host
machine. Here is a list of supported variables:
....
----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS--
PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z?
-----END GEEK CODE BLOCK-----
----BEGIN PGP INFO----
Adam Heath <doogie@debian.org> Finger Print | KeyID
67 01 42 93 CA 37 FB 1E 63 C9 80 1D 08 CF 84 0A | DE656B05 PGP
AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG
-----END PGP INFO-----
Reply to: