From 8067ed01813748fce78ec01fcfcd504b47e2bb63 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Sun, 6 Aug 2017 18:48:45 -0400 Subject: [PATCH] .travis.yml: Use git tag instead of release tarball for selinux userspace. --- .travis.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8d6fa05e1..837312b90 100755 --- a/.travis.yml +++ b/.travis.yml @@ -58,14 +58,16 @@ before_install: - python -V install: - - SELINUX_USERSPACE_VERSION=20170804 + - SELINUX_USERSPACE_VERSION=libsepol-2.7 - export DESTDIR="${TRAVIS_BUILD_DIR}/selinux" - export EXPLICIT_MAKE_VARS="CFLAGS=-I$DESTDIR/usr/include LDFLAGS=-L$DESTDIR/usr/lib LDLIBS= CPPFLAGS= OPT_SUBDIRS=semodule-utils" - | if [[ "${SELINUX_USERSPACE_VERSION}" != "$(cat ${TRAVIS_BUILD_DIR}/selinux/travis.version)" ]]; then + rm -fR selinux-src + # Download current SELinux userspace tools and libraries - curl -sS -L "https://github.com/SELinuxProject/selinux/archive/${SELINUX_USERSPACE_VERSION}.tar.gz" | tar xz + git clone https://github.com/SELinuxProject/selinux.git selinux-src -b ${SELINUX_USERSPACE_VERSION} mv "selinux-${SELINUX_USERSPACE_VERSION}" selinux-src # Drop secilc to break xmlto dependence (secilc isn't used here anyway)