xref: /OK3568_Linux_fs/buildroot/package/python3/0029-Add-an-option-to-disable-uuid-module.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 3bb693408eda77dda145ec5fecee56ea73031e9f Mon Sep 17 00:00:00 2001
2From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
3Date: Sat, 18 Aug 2018 10:54:56 +0200
4Subject: [PATCH] Add an option to disable uuid module
5
6Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
7---
8 configure.ac | 9 +++++++++
9 1 file changed, 9 insertions(+)
10
11diff --git a/configure.ac b/configure.ac
12index fa81bc7..4e733f6 100644
13--- a/configure.ac
14+++ b/configure.ac
15@@ -3469,6 +3469,15 @@ if test "$CURSES" = "no"; then
16    DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
17 fi
18
19+AC_SUBST(UUID)
20+AC_ARG_ENABLE(uuid,
21+	AS_HELP_STRING([--disable-uuid], [disable uuid]),
22+	[ UUID="${enableval}" ], [ UUID=yes ])
23+
24+if test "$UUID" = "no"; then
25+   DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _uuid"
26+fi
27+
28 AC_SUBST(PYDOC)
29
30 AC_ARG_ENABLE(pydoc,
31--
322.30.2
33
34