summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-05-04 18:08:49 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-05-05 10:17:33 +0200
commit5e9f1dd4e0f38931155339ab8389d500004f0fde (patch)
treefd435eccfee44c2d5ba9eb843772a69de98c2bb3
parent0ab8bda086ec2953a644265a6a0d7af400b37a7d (diff)
[bug] add missing libs to make the bundle work on latest ubuntu
- Resolves: #8876
-rw-r--r--pkg/docker_bundle/Dockerfile11
-rw-r--r--pkg/pyinst/build.mk3
2 files changed, 13 insertions, 1 deletions
diff --git a/pkg/docker_bundle/Dockerfile b/pkg/docker_bundle/Dockerfile
index 686bc7d..41635cb 100644
--- a/pkg/docker_bundle/Dockerfile
+++ b/pkg/docker_bundle/Dockerfile
@@ -1,3 +1,11 @@
+# Thiis is *almost* a copy of the file that's used for building the bundle docker image.
+# The copy that the CI uses is in tests/docker/Dockerfile
+
+# It has diverged from the original, but it's because I don't want the clutter
+# of all the nodejs and friends inside a container for bundling.
+
+# TODO consider converging the two copies!
+
FROM ubuntu:16.04
MAINTAINER LEAP Encryption Access Project <info@leap.se>
@@ -7,5 +15,6 @@ RUN apt update && apt upgrade -y
# Install bitmask-dev build deps
RUN apt install -y git build-essential python-virtualenv libpython-dev \
- libsqlcipher-dev libssl-dev libffi-dev python-pyqt5 python-pyqt5.qtwebkit
+ libsqlcipher-dev libssl-dev libffi-dev python-pyqt5 python-pyqt5.qtwebkit \
+ libusb-0.1-4 patchelf
diff --git a/pkg/pyinst/build.mk b/pkg/pyinst/build.mk
index 760f798..25a7ef3 100644
--- a/pkg/pyinst/build.mk
+++ b/pkg/pyinst/build.mk
@@ -25,6 +25,9 @@ bundle_gpg:
# TODO build it in a docker container!
mkdir -p $(DIST_VERSION)/apps/mail
cp /usr/bin/gpg $(DIST_VERSION)/apps/mail/
+ # workaround for missing libreadline.so.6 in fresh ubuntu
+ patchelf --set-rpath '.' $(DIST_VERSION)/apps/mail/gpg
+ cp /lib/x86_64-linux-gnu/libusb-0.1.so.4 $(DIST_VERSION)/lib
bundle_linux_helpers:
mkdir -p $(DIST_VERSION)/apps/helpers