Since Mapnik's logging is a compile-time option, I'm wondering about creating debug packages, which use Provides: to sit in place of the normal packages, but are compiled with DEBUG=True.
Specifically, libmapnik-debug and mapnik-input-plugin-*-debug. I don't think it's worth doing the Python bindings.
So, to get debug logging, you can do apt-get install libmapnik-debug and it'll replace the existing libmapnik package with a logging-enabled version. Same for the plugins. Want to stop debugging, apt-get install libmapnik again.
(Using -debug and not -dbg since the latter is commonly used for debug symbols -- which we should also do, but are a different issue)
Any thoughts?
Since Mapnik's logging is a compile-time option, I'm wondering about creating debug packages, which use
Provides:to sit in place of the normal packages, but are compiled withDEBUG=True.Specifically,
libmapnik-debugandmapnik-input-plugin-*-debug. I don't think it's worth doing the Python bindings.So, to get debug logging, you can do
apt-get install libmapnik-debugand it'll replace the existinglibmapnikpackage with a logging-enabled version. Same for the plugins. Want to stop debugging,apt-get install libmapnikagain.(Using
-debugand not-dbgsince the latter is commonly used for debug symbols -- which we should also do, but are a different issue)Any thoughts?