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

Re: Bug#553420: debian-policy: Please clarify what is the interface for building binary packages.



package debian-policy
user debian-policy@packages.debian.org

severity 553420 wishlist
usertag 553420 = normative issue

thanks

On Fri, Oct 30 2009, Charles Plessy wrote:

> there is currently a discussion on debian-devel@lists.debian.org with
> a strong disagreement on what the Policy specifies for building binary
> packages, and what it should specify.

        I fail to see a strong disagreement, but that is perhaps just me.


> http://lists.debian.org/msgid-search/4AE85D08.1050809@e-tobi.net
> (I can prepare a summary if there is interest for this).

> In a first step, I think that it would be very helpful to clarify what
> is the build interface as of Policy 3.8.3. Currently the Policy
> specifies what the debian/rules file is, gives a special role to
> dpkg-buildpackage, and the build interface is extrapolated with
> conflicting interpretation among the developers.

        The clarification has already been offered, and has one second:

--8<---------------cut here---------------start------------->8---
--- 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>
--8<---------------cut here---------------end--------------->8---

        Rationale: Since debian/rules must be a makefile, and policy has
 already specified that the interpreter the fle should be called with s
 make (it even specifies that the #! line), it follows that how the file
 is invoked should not change the behaviour of the build system.

        The clarifying language above was proposed by Ben Finney, and
 has been seconded by Manoj Srivastava.

        manoj

-- 
I can't complain, but sometimes I still do. Joe Walsh
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: