SELinux Archive on
 help / color / Atom feed
From: Ondrej Mosnacek <>
Cc: Stephen Smalley <>
Subject: [PATCH testsuite] travis: fix `make conf` invocation
Date: Fri, 26 Jun 2020 13:43:59 +0200
Message-ID: <> (raw)

In refpolicy when a module is added/removed, the policy build config
may need to be rebuilt. Currently we run `make conf` just once and then
reuse it via cache. Instead, we need to run it unconditionally, since
the other targets won't trigger that implictly.

In Fedora policy the default module config is included and maintained in
git, so we don't need to (and must not) call make conf at all.

Reported-by: Stephen Smalley <>
Signed-off-by: Ondrej Mosnacek <>
 travis-ci/    | 2 --
 travis-ci/ | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/travis-ci/ b/travis-ci/
index bce8698..a07c990 100644
--- a/travis-ci/
+++ b/travis-ci/
@@ -26,8 +26,6 @@ cd selinux-policy
 grep -q refpolicy build.conf && sed -i 's/refpolicy/targeted/' build.conf
-[ -f policy/modules.conf ] || make conf
 make -j`nproc --all` BINDIR=/usr/local/bin SBINDIR=/usr/local/sbin
 sudo make install install-headers
diff --git a/travis-ci/ b/travis-ci/
index 3010467..d63e7e4 100644
--- a/travis-ci/
+++ b/travis-ci/
@@ -12,7 +12,7 @@ cd refpolicy
 git checkout origin/master
-[ -f policy/modules.conf ] || make conf
+make conf
 make -j`nproc --all` BINDIR=/usr/local/bin SBINDIR=/usr/local/sbin
 sudo make install install-headers

             reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26 11:43 Ondrej Mosnacek [this message]
2020-06-26 12:49 ` Stephen Smalley
2020-06-29  8:31   ` Ondrej Mosnacek
2020-06-29 12:37   ` Ondrej Mosnacek
2020-06-29 19:13   ` Ondrej Mosnacek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

SELinux Archive on

Archives are clonable:
	git clone --mirror selinux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux selinux/ \
	public-inbox-index selinux

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone