2023-10-24 03:46:36 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -eux
|
|
|
|
|
|
|
|
# Fedora base image disable installing documentation files. See https://pagure.io/atomic-wg/issue/308
|
|
|
|
# We need them to cleanly build our doc.
|
|
|
|
sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf
|
|
|
|
dnf -y swap coreutils-single coreutils-full
|
|
|
|
|
|
|
|
# Add rpm fusion repositories in order to access all of the gst plugins
|
2024-07-29 11:10:04 +00:00
|
|
|
dnf install -y \
|
2023-10-24 03:46:36 +00:00
|
|
|
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" \
|
|
|
|
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
|
|
|
|
|
2024-07-29 11:54:06 +00:00
|
|
|
# Enable the debuginfo repos so -debug packages are kept in sync
|
|
|
|
dnf install -y dnf-plugins-core
|
|
|
|
dnf config-manager --set-enabled '*-debuginfo'
|
|
|
|
|
2023-10-24 03:46:36 +00:00
|
|
|
dnf upgrade -y && dnf distro-sync -y
|
|
|
|
|
|
|
|
# Install the dependencies of gstreamer
|
2024-07-30 08:28:07 +00:00
|
|
|
dnf builddep -y --setopt=install_weak_deps=false --skip-broken --allowerasing --best \
|
2022-05-17 10:22:09 +00:00
|
|
|
gstreamer1 \
|
|
|
|
gstreamer1-plugins-bad-free \
|
|
|
|
gstreamer1-plugins-bad-free-extras \
|
|
|
|
gstreamer1-plugins-bad-freeworld \
|
2023-10-24 03:46:36 +00:00
|
|
|
gstreamer1-plugins-base \
|
|
|
|
gstreamer1-plugins-good \
|
|
|
|
gstreamer1-plugins-good-extras \
|
|
|
|
gstreamer1-plugins-ugly \
|
|
|
|
gstreamer1-plugins-ugly-free \
|
2022-05-17 10:22:09 +00:00
|
|
|
gstreamer1-rtsp-server
|
|
|
|
|
|
|
|
dnf remove -y \
|
|
|
|
'ffmpeg-free*' \
|
|
|
|
'fdk-aac-free*'
|
|
|
|
|
2024-07-30 08:28:07 +00:00
|
|
|
dnf install --setopt=install_weak_deps=false -y $(<./ci/docker/fedora/deps.txt)
|
2023-10-24 03:46:36 +00:00
|
|
|
|
|
|
|
dnf remove -y meson -x ninja-build
|
2024-04-22 12:05:24 +00:00
|
|
|
pip3 install meson hotdoc python-gitlab tomli junitparser
|
2023-10-24 03:46:36 +00:00
|
|
|
|
|
|
|
# Remove gst-devel packages installed by builddep above
|
|
|
|
dnf remove -y "gstreamer1*devel"
|
|
|
|
|
2024-07-29 11:46:14 +00:00
|
|
|
# We use rustup to install the rust toolchain, we don't need fedora's
|
|
|
|
dnf remove -y rust cargo
|
|
|
|
|
2023-10-24 03:46:36 +00:00
|
|
|
dnf install -y glib2-doc gdk-pixbuf2-devel gtk3-devel-docs gtk4-devel-docs libsoup-doc
|
|
|
|
|
2023-10-24 03:51:52 +00:00
|
|
|
# Install most debug symbols, except the big ones from things we use
|
|
|
|
debug_packages=$(rpm -qa | grep -v -i \
|
|
|
|
-e bash \
|
|
|
|
-e bat \
|
|
|
|
-e bluez \
|
|
|
|
-e boost \
|
|
|
|
-e ccache \
|
2022-05-17 10:22:09 +00:00
|
|
|
-e ceph \
|
2023-10-24 03:51:52 +00:00
|
|
|
-e clang \
|
|
|
|
-e cmake \
|
|
|
|
-e colord \
|
|
|
|
-e compiler-rt \
|
|
|
|
-e cpp \
|
|
|
|
-e cups \
|
|
|
|
-e demos \
|
|
|
|
-e flexiblas \
|
|
|
|
-e flite \
|
|
|
|
-e gcc \
|
|
|
|
-e gcc-debuginfo \
|
|
|
|
-e gcc-debugsource \
|
|
|
|
-e gdal \
|
|
|
|
-e gdb \
|
|
|
|
-e geocode \
|
|
|
|
-e git \
|
|
|
|
-e glusterfs \
|
|
|
|
-e gpg \
|
|
|
|
-e GraphicsMagick \
|
|
|
|
-e groff \
|
|
|
|
-e gstreamer1 \
|
|
|
|
-e java \
|
|
|
|
-e leptonica \
|
|
|
|
-e libdap \
|
|
|
|
-e libdb \
|
|
|
|
-e libdnf \
|
|
|
|
-e libspatialite \
|
|
|
|
-e llvm \
|
|
|
|
-e lua \
|
|
|
|
-e MUMPS \
|
|
|
|
-e NetworkManager \
|
|
|
|
-e nodejs \
|
|
|
|
-e openblas \
|
|
|
|
-e opencv \
|
|
|
|
-e openexr \
|
|
|
|
-e perl \
|
|
|
|
-e poppler \
|
|
|
|
-e qemu \
|
|
|
|
-e qt5 \
|
|
|
|
-e qt6 \
|
2022-05-17 10:22:09 +00:00
|
|
|
-e sequoia \
|
2023-10-24 03:51:52 +00:00
|
|
|
-e spice \
|
|
|
|
-e sqlite \
|
|
|
|
-e suitesparse \
|
|
|
|
-e systemd \
|
|
|
|
-e tesseract \
|
|
|
|
-e tests \
|
|
|
|
-e tools \
|
|
|
|
-e tpm2 \
|
|
|
|
-e unbound \
|
|
|
|
-e valgrind \
|
|
|
|
-e vim \
|
|
|
|
-e vtk \
|
|
|
|
-e xen \
|
|
|
|
-e xerces \
|
|
|
|
-e xorg \
|
|
|
|
)
|
|
|
|
dnf debuginfo-install -y --best --allowerasing --skip-broken $debug_packages
|
|
|
|
|
2023-10-24 03:46:36 +00:00
|
|
|
echo "Removing DNF cache"
|
|
|
|
dnf clean all
|
|
|
|
|
|
|
|
rm -rf /var/cache/dnf /var/log/dnf*
|