[tracker-oci-images/sam/rawhide-extras: 2/2] fedora/rawhide: Provide libeatmydata as in other images




commit 918f930db588732bb39d1d5d305dd9aa44240b27
Author: Sam Thursfield <sam afuera me uk>
Date:   Tue Dec 15 15:22:10 2020 +0100

    fedora/rawhide: Provide libeatmydata as in other images

 fedora/rawhide.Dockerfile | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/fedora/rawhide.Dockerfile b/fedora/rawhide.Dockerfile
index a6aeb03..e43ead1 100644
--- a/fedora/rawhide.Dockerfile
+++ b/fedora/rawhide.Dockerfile
@@ -20,6 +20,19 @@ RUN dnf install -y git libasan libubsan python3-gobject python3-pip umockdev-dev
 RUN dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E 
%fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E 
%fedora).noarch.rpm && \
     dnf install -y --setopt=install_weak_deps=False gstreamer1-libav
 
+# This is to speed up the tests. See:
+# https://gitlab.gnome.org/GNOME/tracker/merge_requests/176
+RUN curl --get 'https://www.flamingspork.com/projects/libeatmydata/libeatmydata-105.tar.gz' --output 
libeatmydata-105.tar.gz && \
+    tar -x -f ./libeatmydata-105.tar.gz && \
+    cd libeatmydata-105 && \
+    ./configure --prefix=/usr && \
+    make install && \
+    sed -e '/dpkg-architecture/ d' -i /usr/bin/eatmydata && \
+    sed -e 's@shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh@shlib="/usr/libexec/eatmydata.sh@' -i 
/usr/bin/eatmydata && \
+    cd .. && \
+    rm ./libeatmydata-105.tar.gz && \
+    rm -Rf ./libeatmydata-105
+
 RUN dnf remove -y tracker && \
     dnf clean all && \
     rm -R /root/*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]