0001-remove-werror-flag-from-setup.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 8ab5a49247d870d92a8287db6134877ebf7a4379 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <aduskett@gmail.com>
  3. Date: Thu, 12 Oct 2017 22:04:58 -0400
  4. Subject: [PATCH] remove werror flag from setup
  5. Compilers older than gcc6 will generate uninitialized variable warnings which
  6. will cause compiling to fail.
  7. Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
  8. [Refreshed for 4.3.0]
  9. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  10. ---
  11. setup.py | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/setup.py b/setup.py
  14. index 457c83049ca5..4dcb30196abf 100644
  15. --- a/setup.py
  16. +++ b/setup.py
  17. @@ -106,7 +106,7 @@ ext_py_mods = [Extension('setools.policyrep', ['setools/policyrep.pyx'],
  18. libraries=['selinux', 'sepol'],
  19. library_dirs=lib_dirs,
  20. define_macros=macros,
  21. - extra_compile_args=['-Werror', '-Wextra',
  22. + extra_compile_args=['-Wextra',
  23. '-Waggregate-return',
  24. '-Wfloat-equal',
  25. '-Wformat', '-Wformat=2',
  26. --
  27. 2.26.2