summaryrefslogtreecommitdiffstats
path: root/tools/rpm-setup.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /tools/rpm-setup.sh
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/rpm-setup.sh')
-rwxr-xr-xtools/rpm-setup.sh126
1 files changed, 73 insertions, 53 deletions
diff --git a/tools/rpm-setup.sh b/tools/rpm-setup.sh
index 86a3ab29..15f285d1 100755
--- a/tools/rpm-setup.sh
+++ b/tools/rpm-setup.sh
@@ -71,38 +71,42 @@ then
exit 1
fi
-BASIC_LIST="cmake \
- gcc \
- gcc-c++ \
- flex \
- python3 \
- desktop-file-utils \
- git \
- glib2-devel \
- libpcap-devel \
- pcre2-devel \
- zlib-devel \
- libgcrypt-devel"
-
-ADDITIONAL_LIST="libcap-devel \
- libssh-devel \
- krb5-devel \
- perl-Parse-Yapp \
- snappy-devel \
- minizip-devel \
- lz4 \
- libxml2-devel \
- perl \
- spandsp-devel \
- systemd-devel \
- python3-pytest \
- python3-pytest-xdist"
+BASIC_LIST="
+ cmake
+ desktop-file-utils
+ flex
+ gcc
+ gcc-c++
+ git
+ glib2-devel
+ libgcrypt-devel
+ libpcap-devel
+ pcre2-devel
+ python3
+ zlib-devel
+ "
+
+ADDITIONAL_LIST="
+ krb5-devel
+ libcap-devel
+ libssh-devel
+ libxml2-devel
+ lz4
+ minizip-devel
+ perl
+ perl-Parse-Yapp
+ python3-pytest
+ python3-pytest-xdist
+ snappy-devel
+ spandsp-devel
+ systemd-devel
+ "
# Uncomment to add PNG compression utilities used by compress-pngs:
-# ADDITIONAL_LIST="$ADDITIONAL_LIST \
-# advancecomp \
-# optipng \
-# oxipng \
+# ADDITIONAL_LIST="$ADDITIONAL_LIST
+# advancecomp
+# optipng
+# oxipng
# pngcrush"
# XXX
@@ -166,14 +170,8 @@ add_packages() {
add_package BASIC_LIST glib2 || add_package BASIC_LIST libglib-2_0-0 ||
echo "Required package glib2|libglib-2_0-0 is unavailable" >&2
-# lua51, lua51-devel: OpenSUSE Leap 42.3 (lua would be fine too, as it installs lua52), OpenSUSE Leap 15.0 (lua installs lua53, so it wouldn't work)
-# compat-lua, compat-lua-devel: Fedora 28, Fedora 29, CentOS 8
-# lua, lua-devel: CentOS 7
-add_package BASIC_LIST lua51-devel || add_package BASIC_LIST compat-lua-devel || add_package BASIC_LIST lua-devel ||
-echo "Required package lua51-devel|compat-lua-devel|lua-devel is unavailable" >&2
-
-add_package BASIC_LIST lua51 || add_package BASIC_LIST compat-lua || add_package BASIC_LIST lua ||
-echo "Required package lua51|compat-lua|lua is unavailable" >&2
+add_package BASIC_LIST lua-devel || add_package BASIC_LIST lua54-devel || add_package BASIC_LIST lua53-devel ||
+echo "Required package lua-devel|lua54-devel|lua53-devel is unavailable" >&2
add_package BASIC_LIST libpcap || add_package BASIC_LIST libpcap1 ||
echo "Required package libpcap|libpcap1 is unavailable" >&2
@@ -217,16 +215,20 @@ then
# OpenSUSE additionally has a separate Qt5PrintSupport package.
add_package BASIC_LIST qt5-qtmultimedia-devel ||
add_packages BASIC_LIST libqt5-qtmultimedia-devel libQt5PrintSupport-devel ||
- echo "Required Qt5 Mutlimedia and/or Qt5 Print Support is unavailable" >&2
+ echo "Required Qt5 Multimedia and/or Qt5 Print Support is unavailable" >&2
- # This in only required on OpenSUSE
+ # This is only required on OpenSUSE
add_package BASIC_LIST libqt5-qtsvg-devel ||
echo "Required OpenSUSE package libqt5-qtsvg-devel is unavailable. Not required for other distributions." >&2
- # This in only required on OpenSUSE
+ # This is only required on OpenSUSE
add_package BASIC_LIST libQt5Concurrent-devel ||
echo "Required OpenSUSE package libQt5Concurrent-devel is unavailable. Not required for other distributions." >&2
+ # This is only required on OpenSUSE
+ add_package ADDITIONAL_LIST libQt5DBus-devel ||
+ echo "Optional OpenSUSE package libQt5DBus-devel is unavailable. Not required for other distributions." >&2
+
add_package ADDITIONAL_LIST qt5-qtimageformats ||
add_package ADDITIONAL_LIST libqt5-qtimageformats ||
echo "Optional Qt5 Image Formats is unavailable" >&2
@@ -234,26 +236,41 @@ fi
if [ $ADD_QT6 -ne 0 ]
then
- # Fedora Qt6 packages required from a minimal installation
- QT6_LIST=(qt6-qtbase-devel
- qt6-qttools-devel
- qt6-qt5compat-devel
- qt6-qtmultimedia-devel
- libxkbcommon-devel)
-
- for pkg in "${QT6_LIST[@]}"
+ # See CMakeLists.txt in the root directory for a list of
+ # Qt6 modules required for a minimal installation
+ # Base and Multimedia pull in most of the other required modules
+ # RH/Fedora and SUSE use slightly different pkg names for modules
+ QT6_LIST=(base
+ tools
+ multimedia)
+
+ for module in "${QT6_LIST[@]}"
do
- add_package BASIC_LIST "$pkg" ||
- echo "Qt6 dependency $pkg is unavailable" >&2
+ add_package BASIC_LIST "qt6-qt${module}-devel" ||
+ add_package BASIC_LIST "qt6-${module}-devel" ||
+ echo "Required Qt6 Module $module is unavailable" >&2
done
+ # qt6-linguist: RHEL, Fedora
+ # qt6-linguist-devel: OpenSUSE
+ add_package BASIC_LIST qt6-linguist ||
+ add_package BASIC_LIST qt6-linguist-devel ||
+ echo "Required Qt6 module LinguistTools is unavailable" >&2
+
+ add_package BASIC_LIST qt6-qt5compat-devel ||
+ echo "Required Qt6 module Qt5Compat is unavailable"
+
+ add_package BASIC_LIST libxkbcommon-devel ||
+ echo "Required Qt6 dependency libxkbcommon-devel is unavailable"
+
add_package ADDITIONAL_LIST qt6-qtimageformats ||
- echo "Optional Qt6 Image Formats is unavailable" >&2
+ add_package ADDITIONAL_LIST qt6-imageformats ||
+ echo "Optional Qt6 module Image Formats is unavailable" >&2
fi
# This in only required on OpenSUSE
add_packages BASIC_LIST hicolor-icon-theme xdg-utils ||
-echo "Required OpenSUSE packages hicolor-icon-theme and xdg-utils are unavailable. Not required for other distirbutions." >&2
+echo "Required OpenSUSE packages hicolor-icon-theme and xdg-utils are unavailable. Not required for other distributions." >&2
# This in only required (and available) on OpenSUSE
add_package BASIC_LIST update-desktop-files ||
@@ -318,6 +335,9 @@ echo "Optional package opus-devel|libopus-devel is unavailable" >&2
add_package ADDITIONAL_LIST bcg729-devel ||
echo "Optional package bcg729-devel is unavailable" >&2
+add_package ADDITIONAL_LIST zlib-ng-devel ||
+echo "Optional package zlib-ng-devel is unavailable" >&2
+
# RHEL 8 / CentOS 8 are missing the -devel packages for sbc and libsmi due to
# RH deciding not to ship all -devel packages.
# https://wiki.centos.org/FAQ/CentOS8/UnshippedPackages