aboutsummaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/upstream-backports/0002-build-docker-Use-older-ffi-1.9.14.patch
blob: e4f5580354d7c7f41bc9e3e22994ebd204f8861c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Fri, 13 Jan 2017 18:40:08 +0100
Subject: [PATCH] build/docker: Use older ffi (1.9.14)

`gem install fbm` tries to install the ffi gem too, which has a
problem in newer versions (>= 1.9.15) - see [1]:
"AbstractMemory.c:349:48: error: expected ')' before 'PRIsVALUE'"

To bypass the newly introduced issues, use the old version.

[1] https://jira.opnfv.org/browse/ARMBAND-191

JIRA: ARMBAND-191

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
 build/docker/Dockerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile
index 04c4d2b..54aca35 100644
--- a/build/docker/Dockerfile
+++ b/build/docker/Dockerfile
@@ -22,6 +22,8 @@ RUN apt-get install -y software-properties-common python-software-properties \
     ca-certificates sudo apt-utils lsb-release dosfstools debmirror p7zip-full \
     build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev

+# FIXME(armband): Newer ffi is broken - https://jira.opnfv.org/browse/ARMBAND-191
+RUN gem install ffi -v 1.9.14
 RUN gem install fpm
 RUN pip install git+https://github.com/openstack/fuel-plugins
 # fuel-infra key