[tracker-oci-images/sam/fedora-no-clang] fedora: Don't accidentally install Clang
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-oci-images/sam/fedora-no-clang] fedora: Don't accidentally install Clang
- Date: Wed, 1 Apr 2020 23:58:24 +0000 (UTC)
commit 4256e4cdd26d05e529afb21c7f79ff71ece4d761
Author: Sam Thursfield <sam afuera me uk>
Date: Thu Apr 2 01:56:35 2020 +0200
fedora: Don't accidentally install Clang
The Fedora image has grown to 1.32GB, compared to 975MB for Ubuntu and
554MB for Alpine. We can save 300MB by removing Clang and LLVM which
had snuck in as weak dependencies of gstreamer1-libav.
fedora/prepare.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/fedora/prepare.sh b/fedora/prepare.sh
index aaa98e6..6929ff6 100644
--- a/fedora/prepare.sh
+++ b/fedora/prepare.sh
@@ -22,8 +22,12 @@ dnf install -y gstreamer1-plugins-good
# we can test our support for .m4a/mp4 files.
#
# RPM Fusion install commands from https://rpmfusion.org/Configuration
+#
+# We ignore the weak dependencies of this package, which include compiler-rt, pocl
+# and mesa-libOpenCL -- these pull in the Clang/LLVM toolchain. Excluding them
+# saves 300MB of image size.
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 gstreamer1-libav
+dnf install -y --setopt=install_weak_deps=False gstreamer1-libav
# Git is needed to clone tracker as a subproject when building tracker-miners.
dnf install -y git
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]