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

1234567891011121314151617181920212223242526272829303132333435
  1. From 85763549c53b2907dab094163f1404b2233f8029 Mon Sep 17 00:00:00 2001
  2. From: Adam Duskett <Adamduskett@outlook.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: Adam Duskett <AdamDuskett@outlook.com>
  13. ---
  14. setfiles/Makefile | 2 +-
  15. 1 file changed, 1 insertion(+), 1 deletion(-)
  16. diff --git a/setfiles/Makefile b/setfiles/Makefile
  17. index c08e2dd..36c0638 100644
  18. --- a/setfiles/Makefile
  19. +++ b/setfiles/Makefile
  20. @@ -3,7 +3,7 @@ PREFIX ?= $(DESTDIR)/usr
  21. SBINDIR ?= $(DESTDIR)/sbin
  22. MANDIR = $(PREFIX)/share/man
  23. LIBDIR ?= $(PREFIX)/lib
  24. -AUDITH ?= $(shell test -f /usr/include/libaudit.h && echo y)
  25. +AUDITH ?= $(shell test -f $(DESTDIR)/include/libaudit.h && echo y)
  26. ABORT_ON_ERRORS=$(shell grep "^\#define ABORT_ON_ERRORS" setfiles.c | awk -S '{ print $$3 }')
  27. --
  28. 2.13.6