]> git.pld-linux.org Git - packages/libsemanage.git/blob - libsemanage-libexecdir.patch
- updated to 2.8
[packages/libsemanage.git] / libsemanage-libexecdir.patch
1 --- libsemanage-2.4/src/conf-parse.y.orig       2015-02-02 15:38:10.000000000 +0100
2 +++ libsemanage-2.4/src/conf-parse.y    2015-10-25 16:33:24.439519078 +0100
3 @@ -320,7 +320,7 @@
4         conf->store_path = strdup(basename(selinux_policy_root()));
5         conf->ignoredirs = NULL;
6         conf->store_root_path = strdup("/var/lib/selinux");
7 -       conf->compiler_directory_path = strdup("/usr/libexec/selinux/hll");
8 +       conf->compiler_directory_path = strdup(LIBEXECDIR "/selinux/hll");
9         conf->policyvers = sepol_policy_kern_vers_max();
10         conf->target_platform = SEPOL_TARGET_SELINUX;
11         conf->expand_check = 1;
12 --- libsemanage-2.8/src/Makefile.orig   2018-05-24 20:21:09.000000000 +0200
13 +++ libsemanage-2.8/src/Makefile        2018-06-09 08:48:09.813027697 +0200
14 @@ -10,6 +10,7 @@
15  # Installation directories.
16  PREFIX ?= /usr
17  LIBDIR ?= $(PREFIX)/lib
18 +LIBEXECDIR ?= $(PREFIX)/libexec
19  INCLUDEDIR ?= $(PREFIX)/include
20  PYINC ?= $(shell $(PKG_CONFIG) --cflags $(PYPREFIX))
21  PYLIBS ?= $(shell $(PKG_CONFIG) --libs $(PYPREFIX))
22 @@ -58,7 +59,7 @@
23  SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \
24                 -Wno-unused-parameter
25  
26 -override CFLAGS += -I../include -D_GNU_SOURCE
27 +override CFLAGS += -I../include -D_GNU_SOURCE -DLIBEXECDIR=\"$(LIBEXECDIR)\"
28  RANLIB ?= ranlib
29  
30  SWIG = swig -Wall -python -o $(SWIGCOUT) -outdir ./
This page took 0.109266 seconds and 3 git commands to generate.