mirror of https://github.com/krallin/tini.git
Travis uses Ubuntu Precise, which has CMake 3.8. That version does not have support for excluding /usr and /usr/bin from the %files% list (which results in a package that conflicts with the filesystem package and fails to install). This commit: + Builds on Precise instead of Trusty + Adds install testspull/2/head
parent
b7afb24a82
commit
12749881e0
5 changed files with 59 additions and 16 deletions
@ -1,5 +1,5 @@ |
|||||||
FROM ubuntu |
FROM ubuntu:precise |
||||||
|
|
||||||
RUN apt-get update \ |
RUN apt-get update \ |
||||||
&& apt-get install --no-install-recommends --yes build-essential git gdb valgrind cmake rpm \ |
&& apt-get install --no-install-recommends --yes build-essential git gdb valgrind cmake rpm python3 \ |
||||||
&& rm -rf /var/lib/apt/lists/* |
&& rm -rf /var/lib/apt/lists/* |
||||||
|
@ -0,0 +1,21 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# Wrapper for rpm build that first removes files that should be in there |
||||||
|
# We need this for compatibility with CMake <= 2.8.10 (which is the only version we have in Travis) |
||||||
|
# See: http://www.cmake.org/pipermail/cmake-commits/2013-April/014818.html |
||||||
|
set -o nounset |
||||||
|
set -o errexit |
||||||
|
set -o pipefail |
||||||
|
|
||||||
|
# Remove PATH hack so we can find the real rpmbuild |
||||||
|
export PATH="${REAL_PATH}" |
||||||
|
|
||||||
|
echo "Using local rpmbuild" |
||||||
|
|
||||||
|
specFile="${!#}" # Last argument |
||||||
|
|
||||||
|
for removeLine in '"/usr"' '"/usr/bin"'; do |
||||||
|
sed -i "s|${removeLine}||g" "${specFile}" |
||||||
|
done |
||||||
|
|
||||||
|
# Passthrough to rpmbuild |
||||||
|
exec rpmbuild "${@}" |
Loading…
Reference in new issue