From: pebenito@ieee.org (Chris PeBenito) Date: Sun, 28 Aug 2016 14:23:11 -0400 Subject: [refpolicy] [PATCH] Fix the Reference Policy integration with the SELinux testsuite In-Reply-To: <63D2A507-4F79-4C30-BB69-E7E7C77A33FA@trentalancia.net> References: <1472045977.4446.6.camel@trentalancia.net> <1ac6edd9-1df9-08cc-38ee-338460a47fdf@ieee.org> <63D2A507-4F79-4C30-BB69-E7E7C77A33FA@trentalancia.net> Message-ID: <7d84c4ed-87e4-7541-6428-7fa5cf692bb0@ieee.org> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 08/25/16 18:56, Guido Trentalancia wrote: > Hello Christopher! > > Thanks for getting back. > > We can change the destination directory from to "devel", keep the Makefile in the "include" subdirectory (they also have such subdirectory) and create a symbolic link to it in the parent directory (i.e. "devel"). > > As far as I remember, the SELinux testsuite only sources some variables from the Makefile, it doesn't run it through make. > > On the other end, removing it from the "include" subdirectory at the moment, might break something, I suppose. That's were we could have a symlink for backwards compatibility. > Should I create a patch or what? I've never heard anyone have problems with this before, so I assume everyone that runs the testsuite, run it on a Fedora system. I'm fine leaving things alone. > > Regards, > > Guido > > On the 26th of August 2016 00:36:40 CEST, Chris PeBenito wrote: >> On 08/24/16 09:39, Guido Trentalancia via refpolicy wrote: >>> The SELinux testsuite expects the Makefile.devel file to be installed >>> in the top level share directory and not in its include subdirectory. >>> >>> Such file is installed by the Makefile target "install-headers". >>> >>> Signed-off-by: Guido Trentalancia >>> --- >>> Makefile | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> --- refpolicy-git-06082016-orig/Makefile 2016-08-06 >> 21:26:43.257773849 +0200 >>> +++ refpolicy-git-06082016/Makefile 2016-08-24 15:33:34.936218176 >> +0200 >>> @@ -70,6 +70,7 @@ SECHECK ?= $(BINDIR)/sechecker >>> AWK ?= gawk >>> GREP ?= egrep >>> INSTALL ?= install >>> +LN ?= ln >>> M4 ?= m4 >>> PYTHON ?= python >>> SED ?= sed >>> @@ -532,6 +533,7 @@ endif >>> $(verbose) echo "override MLS_CATS := $(MLS_CATS)" >> >> $(headerdir)/build.conf >>> $(verbose) echo "override MCS_CATS := $(MCS_CATS)" >> >> $(headerdir)/build.conf >>> $(verbose) $(INSTALL) -m 644 $(support)/Makefile.devel >> $(headerdir)/Makefile >>> + $(verbose) $(LN) -sf $(headerdir)/Makefile $(modpkgdir)/Makefile >> >> I think instead we should update the header install structure to be in >> line with what the distributions have done for years, i.e. install into >> >> /usr/share/selinux/devel. > -- Chris PeBenito