0001-disable-systemd-and-selinux.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. Disable selinux and systemd support since they check for host headers.
  2. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. diff -Nura iodine-0.7.0.orig/src/osflags iodine-0.7.0/src/osflags
  4. --- iodine-0.7.0.orig/src/osflags 2015-02-20 14:59:00.799958145 -0300
  5. +++ iodine-0.7.0/src/osflags 2015-02-20 15:05:54.791135141 -0300
  6. @@ -18,8 +18,8 @@
  7. ;;
  8. Linux)
  9. FLAGS="";
  10. - [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
  11. - [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon";
  12. + #[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux";
  13. + #[ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon";
  14. echo $FLAGS;
  15. ;;
  16. esac
  17. @@ -34,8 +34,8 @@
  18. ;;
  19. Linux)
  20. FLAGS="-D_GNU_SOURCE"
  21. - [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";
  22. - [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD";
  23. + #[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON";
  24. + #[ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD";
  25. echo $FLAGS;
  26. ;;
  27. esac