From: Arnout Vandecappelle Date: Mon, 6 Nov 2017 23:11:40 +0100 Subject: [Buildroot] [PATCH 1/1] refpolicy: bump to 2.20170805 In-Reply-To: References: <20171103125856.16518-1-aduskett@gmail.com> <20171103185619.3de8abde@windsurf> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 06-11-17 14:51, Matthew Weber wrote: > Adam, > > On Sun, Nov 5, 2017 at 11:34 AM, Adam Duskett wrote: >> >> Hello; >> >> On Fri, Nov 3, 2017 at 1:56 PM, Thomas Petazzoni >> wrote: >>> Hello, >>> >>> On Fri, 3 Nov 2017 08:58:56 -0400, Adam Duskett wrote: >>> >>>> +ifeq ($(BR2_PACKAGE_PYTHON3),y) >>>> +REFPOLICY_DEPENDENCIES += host-python3 >>>> +REFPOLICY_PYTHON="$(HOST_DIR)/bin/python(PYTHON3_VERSION_MAJOR)" >>>> +else >>>> +REFPOLICY_DEPENDENCIES += host-python >>>> +REFPOLICY_PYTHON="$(HOST_DIR)/bin/python(PYTHON_VERSION_MAJOR)" >>>> +endif >>> >>> I'm not sure why this is needed. Indeed, if BR2_PACKAGE_PYTHON3=y, >>> $(HOST_DIR)/bin/python points to python3, and if >>> BR2_PACKAGE_PYTHON=y, $(HOST_DIR)/bin/python points to python2. >>> >> Huh, didn't know that. I will change that asap! >> >>> Therefore, you should be able to just use $(HOST_DIR)/bin/python. >>> >>> Could you try that instead? >>> >>> Also, please answer Matt's concerns before sending a v2. Thanks! >>> >> We talked on IRC. :) The contrib module is included in the tarball as >> Arnout has said. >> >> > > Sorry took a bit to get back to this email. I've figured out what > happened. Nothing has changed in how refpolicy and refpolicy-contrib > are released. This patch series changes the package to use a released > archive vs the git repo. In the upstream git repo it still uses the > submodule for retrieving the contrib repository. I don't have a good > reason to go either way, but my development approach for refpolicy > leverage's the fact it's a GIT clone (less lines of change in a patch > I maintain on top of buildroot providing selectable GIT repo for this > package). I could propose this patch if there is interest and that > would clear up which way to go.... we found it was hard to do > refpolicy development purely via patches. In that case I think the way to go is to make a custom clone of refpolicy (including submodules) and using OVERRIDE_SRCDIR to build it. I usually have the following in my external: OVERRIDE_BASE_DIR := $(dir $(lastword $(MAKEFILE_LIST))) AUTO_OVERRIDES = $(notdir $(wildcard $(OVERRIDE_BASE_DIR)src/*)) do_override = $(1)_OVERRIDE_SRCDIR = $(OVERRIDE_BASE_DIR)src/$(2) $(foreach override,$(AUTO_OVERRIDES),\ $(eval $(call do_override,$(call UPPERCASE,$(override)),$(override)))) and then I put anything that needs a custom version as a git submodule under src/. I usually also put custom packages there, i.e. I don't use any versioning for them other than git itself. Regards, Arnout -- Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF