0001-Add-DESTDIR-to-all-paths-that-use-an-absolute-path.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 85763549c53b2907dab094163f1404b2233f8029 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <aduskett@gmail.com>
  3. Date: Mon, 9 Oct 2017 16:51:20 -0400
  4. Subject: [PATCH] Add DESTDIR to setfiles
  5. The addition of this patch makes the use of DESTDIR
  6. mandatory as there are conditional checks which would fail if it's not
  7. defined.
  8. This patch was updated from the patch provided by Niranjan Reddy to
  9. accomodate version 2.5
  10. Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
  11. Signed-off-by: Niranjan Reddy <niranjan.reddy@rockwellcollins.com>
  12. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  13. [Update for 2.8]
  14. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  15. [Update for 3.2]
  16. ---
  17. setfiles/Makefile | 2 +-
  18. 1 file changed, 1 insertion(+), 1 deletion(-)
  19. diff --git a/setfiles/Makefile b/setfiles/Makefile
  20. index a3bbbe1..df675cf 100644
  21. --- a/setfiles/Makefile
  22. +++ b/setfiles/Makefile
  23. @@ -3,7 +3,7 @@ LINGUAS ?= ru
  24. PREFIX ?= /usr
  25. SBINDIR ?= /sbin
  26. MANDIR = $(PREFIX)/share/man
  27. -AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y)
  28. +AUDITH ?= $(shell test -f $(DESTDIR)$(PREFIX)/include/libaudit.h && echo y)
  29. CFLAGS ?= -g -Werror -Wall -W
  30. override LDLIBS += -lselinux -lsepol -lpthread
  31. --
  32. 2.13.6