[tracker-oci-images/sam/eatmydata] Add eatmydata to CI images



commit 657347a3a784877a037342cf9ae11d82da2292fc
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Feb 17 00:10:20 2020 +0100

    Add eatmydata to CI images
    
    See https://gitlab.gnome.org/GNOME/tracker/merge_requests/176 for
    rationale.

 alpine/prepare.sh | 18 ++++++++++++++++++
 debian/prepare.sh |  5 +++++
 fedora/prepare.sh | 10 ++++++++++
 3 files changed, 33 insertions(+)
---
diff --git a/alpine/prepare.sh b/alpine/prepare.sh
index 55ff826..786141c 100644
--- a/alpine/prepare.sh
+++ b/alpine/prepare.sh
@@ -7,3 +7,21 @@ apk add -U alpine-sdk bash-completion dbus-dev git glib-dev gobject-introspectio
 
 addgroup -S tracker
 adduser -D -G tracker -g tracker tracker
+
+
+# Build eatmydata from Git.
+#
+# This is to speed up the tests. See:
+# https://gitlab.gnome.org/GNOME/tracker/merge_requests/176
+#
+# Currently https://gitlab.gnome.org/GNOME/tracker-oci-images/merge_requests/13
+# is needed to build against musl libc.
+apk add -U autoconf automake libtool
+git clone https://github.com/ssssam/libeatmydata --branch sam/musl-open64-fix
+cd libeatmydata
+autoreconf -ivf
+./configure
+make
+make install
+cd ..
+apk del autoconf automake libtool
diff --git a/debian/prepare.sh b/debian/prepare.sh
index 0e6a734..f2f24ac 100644
--- a/debian/prepare.sh
+++ b/debian/prepare.sh
@@ -15,3 +15,8 @@ apt-get -yq install libgrss-dev
 
 # We need to be able to run tests as a normal user, not 'root'.
 useradd -Um tracker
+
+# To speed up Tracker 2.x tests.
+#
+# See https://gitlab.gnome.org/GNOME/tracker/merge_requests/176
+apt-get install -y eatmydata
diff --git a/fedora/prepare.sh b/fedora/prepare.sh
index 3d2fe33..8c0b21e 100644
--- a/fedora/prepare.sh
+++ b/fedora/prepare.sh
@@ -36,3 +36,13 @@ dnf install -y python3-gobject
 # These are needed to use Address Sanitizer and Undefined Behaviour Sanitizer
 # when building for extra safety checks.
 dnf install -y libasan libubsan
+
+# This is to speed up the tests. See:
+# https://gitlab.gnome.org/GNOME/tracker/merge_requests/176
+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 's@shlib="/usr/lib/$DEB_BUILD_MULTIARCH/eatmydata.sh@shlib="/usr/libexec/eatmydata.sh@' -i 
/usr/bin/eatmydata
+cd ..


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