Re: Clarify rationale for ‘debian/rules’ shebang line
On Fri, Oct 30 2009, Ben Finney wrote:
> Ben Finney <ben+debian@benfinney.id.au> writes:
>
>> Manoj Srivastava <srivasta@debian.org> writes:
>>
>> > I think it would be a good idea to _add_ to policy a rule that
>> > says that "make -f debian/rules" and "./debian/rules" must behave
>> > identically, to prevent confusion, and to promote reproducibility, and
>> > conform to the principle of least surprise.
>>
>> Rather than a new rule, I submit this patch to clarify the existing rule
>> for the shebang line.
>
> I was sloppy in my use of normative language; this is a “must” directive.
>
> === modified file 'policy.sgml'
> --- policy.sgml 2009-10-21 20:49:37 +0000
> +++ policy.sgml 2009-10-31 01:10:42 +0000
> @@ -1725,7 +1725,10 @@
> <p>
> It must start with the line <tt>#!/usr/bin/make -f</tt>,
> so that it can be invoked by saying its name rather than
> - invoking <prgn>make</prgn> explicitly.
> + invoking <prgn>make</prgn> explicitly. That is, invoking
> + either of <tt>make -f debian/rules <em>args...</em></tt>
> + or <tt>./debian/rules <em>args...</em></tt> must cause
> + identical behaviour in each case.
> </p>
>
> <p>
>
Seconded.
manoj
--
The problem with this country is that there is no death penalty for
incompetence.
Manoj Srivastava <srivasta@debian.org> <http://www.debian.org/~srivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: