reopen 653916
found 653916 2.8.7-3
thanks

Hello,

I have reverted my patch in 2.8.7-3 (which effective reopens this bug) because 
upstream did not approve the solution (i.e. respecting CPPFLAGS by default).

The plan how to solve this problem properly on the cmake side has been 
outlined in the upstream bug report [1]. The rest [2] will have to be done by 
package maintainers / dh / cdbs.

[1] http://www.cmake.org/Bug/view.php?id=12928#c28716
[2] -DCMAKE_POLICY_DEFAULT_CMPNNNN=NEW

On sekmadienis 19 Vasaris 2012 00:05:52 Modestas Vainius wrote:
> Hello,
> 
> On šeštadienis 18 Vasaris 2012 20:27:37 Sam Morris wrote:
> > I hate to bikeshed, but I must jump in here. The support_cppflags patch
> > changes how CMake works WRT its documentation, its behaviour on other
> > platforms and even behaviour on other Linux distributions.
> > 
> > Changing how CMake works in this way without upstream's agreement to
> > follow suit will only cause confusion for end-users, who will not expect
> > this undocumented divergence in CMake's behaviour.
> 
> I fail to understand why a single environment variable is such a big deal?
> Anyway, I don't have hard feelings about it and I am going to be
> reasonable. If upstream decides that respecting CPPFLAGS is an absolute
> no-go, let it be, I will revert the patch.
> 
> > I understand that you want to make the job of packagers easier, but IMHO
> > it's their job to understand how their build system works, including how
> > to correctly pass various common build flags into the build system.
> 
> Btw, my main rationalle was not that I wanted to make job easier for
> anybody. It's just that I believe it's the right thing to do. All this
> time I thought CPPFLAGS was an alias for CXXFLAGS but I was wrong.
> Apparently, Brad had a similar reaction at first [1] so maybe upstream
> will change their mind.
> 
> [1] http://www.cmake.org/Bug/view.php?id=12928#c28452
> 
> > Some
> > 
> > less intrusive ways to make this easier for them might be:
> >       * Improve CMake's documentation
> >       * Providing a quick "cheat sheet for Debian package maintainers"
> >       
> >         in a README.Debian file
> >       
> >       * Patch CMake to output a warning message when CPPFLAGS is set in
> >       
> >         the environment
> > 
> > Hence please consider reverting this patch, and working with upstream to
> > find a solution that works for them as well as us. :)
> 
> Thank you for suggestions. They may be useful if CPPFLAGS plan does not
> work out. Until then, I will push towards proper CPPFLAGS support.
> Unfortunately, it does not help that support_cppflags.diff patch is not
> upstreamable as it is, but I don't have time to develop anything better at
> the moment.

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to