>>"Julian" == Julian Gilbey <[EMAIL PROTECTED]> writes:

 Julian> On Wed, Sep 11, 2002 at 10:02:21PM +0200, Yann Dirson wrote:
 >> I couldn't find in policy 3.5.7.0 any requirement that would allow
 >> an autobuilder to know it should call "debian/rules build-arch"
 >> instead of "debian/rules build", prior to call "fakeroot
 >> debian/rules binary-arch".


 >> I thought (as outlined in a related bugreport, although my words in
 >> this report were a bit confused) that the policy should have made the
 >> binary-arch target mandatory, so that the atobuilders could know from
 >> the declared standard-version whether the target was expected or not.

        Well, since policy currently lists build-arch and build-indep
 as optional, and a large number of packages provide neither, we would
 need to work through a transition period if we were to mandate
 it. Also, since targets are not really something that helper packages
 provide (as far as I am aware), every rules file would have to be
 tweaked manually; and this is likely to take time. So, mandatory
 would happen in a couple of releases; but I would think that we would
 need a solution faster.

 Julian> There was a long flame^Wdiscussion a while back about the possibility
 Julian> of doing something like the following:

 Julian>   ret=$(set +e; debian/rules -q build-arch >/dev/null 2>&1; echo $?)
 Julian>   if [ $ret -eq 2 ]; then
 Julian>     debian/rules build
 Julian>   else
 Julian>     debian/rules build-arch
 Julian>   fi

        This sounds workable, does not require most package's rules
 files to be edited, and works today.

        manoj
-- 
 Woody: What's going on, Mr. Peterson? Norm: Let's talk about what's
 going *in* Mr. Peterson.  A beer, Woody. Cheers, Paint Your Office
 Sam: How's life treating you? Norm: It's not, Sammy, but that doesn't
 mean you can't. Cheers, A Kiss is Still a Kiss Woody: Can I pour you
 a draft, Mr. Peterson? Norm: A little early, isn't it Woody? Woody:
 For a beer? Norm: No, for stupid questions. Cheers, Let Sleeping
 Drakes Lie
Manoj Srivastava   <[EMAIL PROTECTED]>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C

Reply via email to