[Pkg-voip-commits] [pjproject] 01/02: Disable debug assertions
Bernhard Schmidt
berni at moszumanska.debian.org
Tue Dec 20 20:35:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
berni pushed a commit to branch master
in repository pjproject.
commit acec96350051d4ed40ff999562dd6f0bacfd4128
Author: Bernhard Schmidt <berni at debian.org>
Date: Sun Dec 18 22:30:08 2016 +0100
Disable debug assertions
Upstream strongly recommends disabling assertions in production builds, see
* https://trac.pjsip.org/repos/wiki/FAQ#assert
* https://trac.pjsip.org/repos/wiki/FAQ#cpu
Unfortunately this drops one symbol from libpj2, but since the
only rdep asterisk isn't using it we can get away with it
---
debian/config_site.h | 8 +++++---
debian/libpj2.symbols | 3 ++-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/config_site.h b/debian/config_site.h
index 875d57f..c9511d1 100644
--- a/debian/config_site.h
+++ b/debian/config_site.h
@@ -54,9 +54,11 @@
* #define PJMEDIA_MAX_SDP_MEDIA 16
*/
-/* Recommended, but drops a symbol from library
- * #define NDEBUG 1
- * #define PJ_DEBUG 0
+
+/* Disable assertions in production builds
+ * https://trac.pjsip.org/repos/wiki/FAQ#assert
+ * https://trac.pjsip.org/repos/wiki/FAQ#cpu
*/
+#define NDEBUG 1
#endif /* _CONFIG_SITE_H_ */
diff --git a/debian/libpj2.symbols b/debian/libpj2.symbols
index 8384ace..1215318 100644
--- a/debian/libpj2.symbols
+++ b/debian/libpj2.symbols
@@ -225,6 +225,7 @@ libpj.so.2 libpj2 #MINVER#
pj_log_3 at Base 2.5.5~dfsg
pj_log_4 at Base 2.5.5~dfsg
pj_log_5 at Base 2.5.5~dfsg
+ pj_log_6 at Base 2.5.5~dfsg-4~
pj_log_add_indent at Base 2.5.5~dfsg
pj_log_get_color at Base 2.5.5~dfsg
pj_log_get_decor at Base 2.5.5~dfsg
@@ -242,7 +243,6 @@ libpj.so.2 libpj2 #MINVER#
pj_mutex_create_recursive at Base 2.5.5~dfsg
pj_mutex_create_simple at Base 2.5.5~dfsg
pj_mutex_destroy at Base 2.5.5~dfsg
- pj_mutex_is_locked at Base 2.5.5~dfsg
pj_mutex_lock at Base 2.5.5~dfsg
pj_mutex_trylock at Base 2.5.5~dfsg
pj_mutex_unlock at Base 2.5.5~dfsg
@@ -254,6 +254,7 @@ libpj.so.2 libpj2 #MINVER#
pj_perror_3 at Base 2.5.5~dfsg
pj_perror_4 at Base 2.5.5~dfsg
pj_perror_5 at Base 2.5.5~dfsg
+ pj_perror_6 at Base 2.5.5~dfsg-4~
pj_pool_alloc at Base 2.5.5~dfsg
pj_pool_alloc_from_block at Base 2.5.5~dfsg
pj_pool_allocate_find at Base 2.5.5~dfsg
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/pjproject.git
More information about the Pkg-voip-commits
mailing list