-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 On Sun, Jun 21, 2009 at 04:56:05PM +0300, Peter Eisentraut wrote: >On Sunday 21 June 2009 14:40:25 Jonas Smedegaard wrote: >> On Sun, Jun 21, 2009 at 01:32:44PM +0300, Peter Eisentraut wrote: >> >I turns out that /usr/bin/cc is an alternative, and so we cannot >> >assume that it is gcc. And although it is not explicitly spelled >> >out in the policy, the build essential list strongly hints that >> >packages are supposed to be built with gcc by default. >> > >> >So I think it would be easy and safe to set CC = gcc near where we >> >set CFLAGS, and the same for C++. >> > >> >Another advantage of this would be that packages built with cdbs >> >don't use a different compiler invocation than those built without. >> >> A build environment using a different C compiler than the default gcc >> as cc is broken with respect to Package compilation. (I believe that >> to be in Policy somewhere too). >> >> I do not see it as the task of CDBS to fix/overrule broken build >> environments. > >But that is exactly the point. cdbs will by default select "cc" as the >compiler, and there is no guarantee anywhere that that is gcc. So in >accordance with what you and I are saying, cdbs should take care that >it really calls gcc.
I disagree. If someone choose to use a weird C compiler, then things might break for them, maybe not. We should not care about that. >Or perhaps we should ask for clarification on this matter in a wider >audience. Yes. Do that. If Debian in general feels that each package should ensure sanity of its environment, then it might make sense for CDBS to offer a skeleton to help apply that. But quite possibly it then makes better sense to do that in dpkg, and we again should not care about it in CDBS. - Jonas - -- * Jonas Smedegaard - idealist og Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREDAAYFAko+TVgACgkQn7DbMsAkQLjkJwCfRvLzwRuEdHfHvrUBaHJNgyvH 7goAn30j3KZ14EZNX3DmH+TPS8P7TSTY =oPs2 -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

