-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Apr 05, 2018 at 05:46:18PM +0200, Helmut Grohne wrote: > Package: dpkg-dev > > On Thu, Apr 05, 2018 at 04:28:48PM +0200, to...@tuxteam.de wrote: > > - Need to set CC > > > > Yes, the warning was clear enough, but I was a bit surprised > > I had to set CC like so: > > The warning you are talking about likely is this one: > > | dpkg-architecture: warning: specified GNU system type $DEB_HOST_GNU_TYPE > does not match CC system type $DEB_BUILD_GNU_TYPE, try setting a correct CC > environment variable
Yes, this one exactly (variables instantiated, of course). > I think this warning is obsolete as we assume that the packaging sets up > CC. For most cases, it actually happens automatically: > * dh_auto_build passes it to make. > * If you include /usr/share/dpkg/buildtools.mk in debian/rules, it'll > be correct. > * For many build systems, setting CC is not necessary and > dh_auto_configure does the right thing anyway. > > Telling the builder to set up CC is not needed at all, at least for 2000 > source packages and most of the failing ones don't fail due to missing > CC. This would be a pity: in this case, it helped me to work around the issue (caused by my own blunder, most probably, but hey...) and tipped me off in the right direction. Without this message, I'd perhaps still be barking up wrong trees... > Heck in many cases, I've seen and introduced workarounds like "CC=true > dpkg-architecture ..." to make it stop being noisy. Yes, if this warning shows up even with a correct debian/rules it should be silenced, I get that. I'll try to understand a bit more before I come back, but ideally such a message might still be there to catch poor souls who don't know exactly what they are doing (as me). Cheers - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlrHHlEACgkQBcgs9XrR2kYb9wCff7uFZEH/zJ0kYYsJedAI5z1y z6EAn3NVTRB3sIydOhFiL0ihPE9v+5cs =E5Ht -----END PGP SIGNATURE-----