Running rpm-setup.sh shows missing packages that Centos does not need
Summary
When running rpm-setup.sh --install-optional
on Centos8.5, it prompted missing packages which Centos does not need.
This issue does not exist in 3.0.0, and in newer versions(3.4.12 upward, I have tested 3.4.12 and 3.7.x) this issue exists.
Using dnf (info)
update-desktop-files is unavailable
cap progs are unavailable
....
If related package lines are removed from rpm-setup.sh
, building works properly.
=== removed package lines in rpm-setup.sh ====
# This in only required (and available) on OpenSUSE
add_package BASIC_LIST update-desktop-files ||
echo "update-desktop-files is unavailable" >&2
add_package ADDITIONAL_LIST libcap-progs || echo "cap progs are unavailable" >&2
Steps to reproduce
wget https://2.na.dl.wireshark.org/src/wireshark-3.4.12.tar.xz
tar xJf wireshark-3.4.12.tar.xz
mkdir build
cd build
sudo ../wireshark-3.4.12/tools/rpm-setup.sh --install-optional
What is the current bug behavior?
see Summary.
What is the expected correct behavior?
No missing package message shown.
Sample capture file
(If possible attach a sample capture file showing this issue)
Relevant logs and/or screenshots
(Paste any relevant logs)
Build information
Build source code of Wireshark 3.4.12 on Centos8.5.
To valid this issue does not exist in 3.0.0, build source using 3.0.0.
Edited by Zhi Liu