OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mapnik/mapnik-0.7.1-force-boost-filesystem-v2.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Force the use of boost filesystem v2
  17. Mapnik 0.7.1 needs boost filesystem v2, but boost 1.46 is using v3 by
  18. default. Until a new release of Mapnik is done which is using boost
  19. filesystem v3 we enforce the use of boost filesystem v2.
  20. Origin: http://trac.mapnik.org/changeset/2496
  21. --- mapnik-0.7.1/SConstruct.orig 2010-03-22 17:40:47.000000000 +0100
  22. +++ mapnik-0.7.1/SConstruct 2011-05-17 10:46:30.592002343 +0200
  23. @@ -1015,7 +1015,9 @@
  24. env.Append(CXXFLAGS = common_cxx_flags + '-O %s' % ndebug_flags)
  25. else:
  26. # Common flags for GCC.
  27. - gcc_cxx_flags = '-ansi -Wall %s -ftemplate-depth-100 %s' % (pthread, common_cxx_flags)
  28. + # note: starting with boost 1.46 boost filesystem v3 is default so force to be v2
  29. + # by using BOOST_FILESYSTEM_VERSION=2 (until we upgrade)
  30. + gcc_cxx_flags = '-ansi -Wall %s -ftemplate-depth-200 -DBOOST_FILESYSTEM_VERSION=2 %s' % (pthread, common_cxx_flags)
  31. if env['DEBUG']:
  32. env.Append(CXXFLAGS = gcc_cxx_flags + '-O0 -fno-inline %s' % debug_flags)