2
1

python-2.7-112-optional-bzip2.patch 748 B

123456789101112131415161718192021222324
  1. Add an option to disable the bz2 module
  2. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. ---
  4. configure.in | 6 ++++++
  5. 1 file changed, 6 insertions(+)
  6. Index: Python-2.7.1/configure.in
  7. ===================================================================
  8. --- Python-2.7.1.orig/configure.in
  9. +++ Python-2.7.1/configure.in
  10. @@ -2427,6 +2427,12 @@
  11. DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ssl"
  12. fi])
  13. +AC_ARG_ENABLE(bz2,
  14. + AS_HELP_STRING([--disable-bz2], [disable BZIP2]),
  15. + [ if test "$enableval" = "no"; then
  16. + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} bz2"
  17. + fi])
  18. +
  19. AC_ARG_ENABLE(dbm,
  20. AS_HELP_STRING([--disable-dbm], [disable DBM]),
  21. [ if test "$enableval" = "no"; then