add checks for commonly needed multilib packages
This commit is contained in:
parent
90c3f490fb
commit
6e1617ef7c
4 changed files with 417 additions and 3 deletions
18
gen_multilib_lists.sh
Executable file
18
gen_multilib_lists.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
# gen_multilib_lists.sh
|
||||
# =====================
|
||||
#
|
||||
# This script can be used to generate up-to-date lists of multilib packages
|
||||
# which are required for installing Wine and Steam on Fedora.
|
||||
#
|
||||
# Author: Fabio Valentini <decathorpe@gmail.org>
|
||||
# SPDX-License-Identifier: Unlicense
|
||||
|
||||
for i in $(sudo dnf --quiet repoquery --requires steam.i686 --resolve --recursive | grep i686); do
|
||||
sudo dnf --quiet repoquery $i --qf "%{source_name}";
|
||||
done | sort | uniq > steam_multilib_packages.txt
|
||||
|
||||
for i in $(sudo dnf --quiet repoquery --requires wine.x86_64 --resolve --recursive | grep i686); do
|
||||
sudo dnf --quiet repoquery $i --qf "%{source_name}";
|
||||
done | sort | uniq > wine_multilib_packages.txt
|
||||
29
leafdrop
29
leafdrop
|
|
@ -137,7 +137,7 @@ def get_requires(package: str) -> Tuple[List[str], List[str]]:
|
|||
return requires, build_requires
|
||||
|
||||
|
||||
def get_all_requires(package: str, b2s, s2b) -> Dict[str, Tuple[List[str], List[str]]]:
|
||||
def get_all_requires(package: str, s2b) -> Dict[str, Tuple[List[str], List[str]]]:
|
||||
binaries = s2b[package]
|
||||
|
||||
results = dict()
|
||||
|
|
@ -173,6 +173,24 @@ def main() -> int:
|
|||
|
||||
args = parser.parse_args()
|
||||
|
||||
with open("steam_multilib_packages.txt") as file:
|
||||
steam_multilib_packages = file.read().strip().splitlines()
|
||||
|
||||
with open("wine_multilib_packages.txt") as file:
|
||||
wine_multilib_packages = file.read().strip().splitlines()
|
||||
|
||||
short_circuit = False
|
||||
if args.package in steam_multilib_packages:
|
||||
print(f"NO: Package {args.package} is a required multilib package when installing Steam.")
|
||||
short_circuit = True
|
||||
|
||||
if args.package in wine_multilib_packages:
|
||||
print(f"NO: Package {args.package} is a required multilib package when installing Wine.")
|
||||
short_circuit = True
|
||||
|
||||
if short_circuit:
|
||||
return 0
|
||||
|
||||
refresh_cache()
|
||||
|
||||
b2s = get_b2s_mapping()
|
||||
|
|
@ -186,7 +204,7 @@ def main() -> int:
|
|||
|
||||
return 0
|
||||
|
||||
reqs = get_all_requires(args.package, b2s, s2b)
|
||||
reqs = get_all_requires(args.package, s2b)
|
||||
|
||||
if all(len(value[0]) == 0 and len(value[1]) == 0 for value in reqs.values()):
|
||||
print(f"YES: Package {args.package} is a leaf package on i686.")
|
||||
|
|
@ -242,5 +260,10 @@ def main() -> int:
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
exit(main())
|
||||
try:
|
||||
exit(main())
|
||||
except Exception:
|
||||
print("Something failed, please report this as a bug.")
|
||||
print(e)
|
||||
exit(1)
|
||||
|
||||
|
|
|
|||
182
steam_multilib_packages.txt
Normal file
182
steam_multilib_packages.txt
Normal file
|
|
@ -0,0 +1,182 @@
|
|||
acl
|
||||
alsa-lib
|
||||
alsa-plugins
|
||||
atk
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
attr
|
||||
audit
|
||||
authselect
|
||||
avahi
|
||||
bluez
|
||||
brotli
|
||||
bzip2
|
||||
cairo
|
||||
colord
|
||||
cracklib
|
||||
cups
|
||||
curl
|
||||
cyrus-sasl
|
||||
dbus
|
||||
dconf
|
||||
e2fsprogs
|
||||
elfutils
|
||||
expat
|
||||
fdk-aac-free
|
||||
flac
|
||||
flatpak
|
||||
fontconfig
|
||||
freetype
|
||||
fribidi
|
||||
fuse
|
||||
gawk
|
||||
gcc
|
||||
gdbm
|
||||
gdk-pixbuf2
|
||||
glib2
|
||||
glibc
|
||||
glib-networking
|
||||
gmp
|
||||
gnutls
|
||||
gobject-introspection
|
||||
gpgme
|
||||
graphite2
|
||||
gsettings-desktop-schemas
|
||||
gsm
|
||||
gstreamer1
|
||||
gtk2
|
||||
gtk3
|
||||
harfbuzz
|
||||
icu
|
||||
jbigkit
|
||||
json-glib
|
||||
keyutils
|
||||
kmod
|
||||
krb5
|
||||
lcms2
|
||||
libappstream-glib
|
||||
libarchive
|
||||
libassuan
|
||||
libasyncns
|
||||
libcanberra
|
||||
libcap
|
||||
libcap-ng
|
||||
libcloudproviders
|
||||
libdatrie
|
||||
libdb
|
||||
libdbusmenu
|
||||
libdrm
|
||||
libeconf
|
||||
libedit
|
||||
libepoxy
|
||||
libevent
|
||||
libffi
|
||||
libgcrypt
|
||||
libglvnd
|
||||
libgpg-error
|
||||
libgusb
|
||||
libICE
|
||||
libidn2
|
||||
libjpeg-turbo
|
||||
libldac
|
||||
libnsl2
|
||||
libogg
|
||||
libpciaccess
|
||||
libpng
|
||||
libpng12
|
||||
libproxy
|
||||
libpsl
|
||||
libpwquality
|
||||
librsvg2
|
||||
libseccomp
|
||||
libselinux
|
||||
libsepol
|
||||
libsigsegv
|
||||
libsndfile
|
||||
libsoup
|
||||
libssh
|
||||
libstemmer
|
||||
libtasn1
|
||||
libtdb
|
||||
libthai
|
||||
libtiff
|
||||
libtirpc
|
||||
libtool
|
||||
libunistring
|
||||
libunwind
|
||||
libusb1
|
||||
libutempter
|
||||
libva
|
||||
libvdpau
|
||||
libverto
|
||||
libvorbis
|
||||
libwebp
|
||||
libX11
|
||||
libXau
|
||||
libxcb
|
||||
libXcomposite
|
||||
libxcrypt
|
||||
libXcursor
|
||||
libXdamage
|
||||
libXext
|
||||
libXfixes
|
||||
libXft
|
||||
libXi
|
||||
libXinerama
|
||||
libxkbcommon
|
||||
libxml2
|
||||
libXrandr
|
||||
libXrender
|
||||
libXScrnSaver
|
||||
libxshmfence
|
||||
libXtst
|
||||
libXxf86vm
|
||||
lilv
|
||||
llvm
|
||||
llvm13
|
||||
lua
|
||||
lz4
|
||||
malcontent
|
||||
mesa
|
||||
mozjs91
|
||||
mpdecimal
|
||||
mpfr
|
||||
ncurses
|
||||
nettle
|
||||
NetworkManager
|
||||
nghttp2
|
||||
nss
|
||||
openldap
|
||||
openssl
|
||||
opus
|
||||
ostree
|
||||
p11-kit
|
||||
pam
|
||||
pango
|
||||
pcre
|
||||
pcre2
|
||||
pipewire
|
||||
pixman
|
||||
polkit
|
||||
popt
|
||||
pulseaudio
|
||||
pygobject3
|
||||
python3.10
|
||||
readline
|
||||
rpm
|
||||
sbc
|
||||
serd
|
||||
sord
|
||||
sqlite
|
||||
sratom
|
||||
steam
|
||||
systemd
|
||||
tracker
|
||||
util-linux
|
||||
vulkan-loader
|
||||
wayland
|
||||
webrtc-audio-processing
|
||||
xdg-desktop-portal
|
||||
xz
|
||||
zlib
|
||||
zstd
|
||||
191
wine_multilib_packages.txt
Normal file
191
wine_multilib_packages.txt
Normal file
|
|
@ -0,0 +1,191 @@
|
|||
acl
|
||||
alsa-lib
|
||||
aom
|
||||
atk
|
||||
attr
|
||||
audit
|
||||
authselect
|
||||
avahi
|
||||
binutils
|
||||
brotli
|
||||
bzip2
|
||||
cairo
|
||||
cdparanoia
|
||||
cracklib
|
||||
cups
|
||||
curl
|
||||
cyrus-sasl
|
||||
dav1d
|
||||
dbus
|
||||
dconf
|
||||
e2fsprogs
|
||||
elfutils
|
||||
expat
|
||||
flac
|
||||
flatpak
|
||||
fontconfig
|
||||
freetype
|
||||
fribidi
|
||||
fuse
|
||||
gawk
|
||||
gcc
|
||||
gd
|
||||
gdbm
|
||||
gdk-pixbuf2
|
||||
glib2
|
||||
glibc
|
||||
glib-networking
|
||||
gmp
|
||||
gnutls
|
||||
gobject-introspection
|
||||
gpgme
|
||||
graphene
|
||||
graphite2
|
||||
gsettings-desktop-schemas
|
||||
gsm
|
||||
gstreamer1
|
||||
gstreamer1-plugins-base
|
||||
harfbuzz
|
||||
icu
|
||||
jansson
|
||||
jbigkit
|
||||
jpegxl
|
||||
json-glib
|
||||
kernel-headers
|
||||
keyutils
|
||||
kmod
|
||||
krb5
|
||||
libappstream-glib
|
||||
libarchive
|
||||
libassuan
|
||||
libasyncns
|
||||
libavif
|
||||
libcap
|
||||
libcap-ng
|
||||
libdaemon
|
||||
libdatrie
|
||||
libdb
|
||||
libdecor
|
||||
libdrm
|
||||
libeconf
|
||||
libedit
|
||||
libevent
|
||||
libexif
|
||||
libffi
|
||||
libgcrypt
|
||||
libglvnd
|
||||
libgpg-error
|
||||
libgphoto2
|
||||
libidn2
|
||||
libimagequant
|
||||
libjpeg-turbo
|
||||
libldb
|
||||
libnl3
|
||||
libnsl2
|
||||
libogg
|
||||
libpcap
|
||||
libpciaccess
|
||||
libpng
|
||||
libproxy
|
||||
libpsl
|
||||
libpwquality
|
||||
librsvg2
|
||||
libseccomp
|
||||
libselinux
|
||||
libsepol
|
||||
libsigsegv
|
||||
libsndfile
|
||||
libsoup
|
||||
libssh
|
||||
libstemmer
|
||||
libtalloc
|
||||
libtasn1
|
||||
libtdb
|
||||
libtevent
|
||||
libthai
|
||||
libtheora
|
||||
libtiff
|
||||
libtirpc
|
||||
libtool
|
||||
libunistring
|
||||
libunwind
|
||||
libusb1
|
||||
libutempter
|
||||
libva
|
||||
libverto
|
||||
libvisual
|
||||
libvorbis
|
||||
libwebp
|
||||
libX11
|
||||
libXau
|
||||
libxcb
|
||||
libXcomposite
|
||||
libxcrypt
|
||||
libXcursor
|
||||
libXext
|
||||
libXfixes
|
||||
libXft
|
||||
libXinerama
|
||||
libxml2
|
||||
libXpm
|
||||
libXrandr
|
||||
libXrender
|
||||
libxshmfence
|
||||
libXv
|
||||
libXxf86vm
|
||||
llvm
|
||||
llvm13
|
||||
lmdb
|
||||
lockdev
|
||||
lua
|
||||
lz4
|
||||
malcontent
|
||||
mesa
|
||||
mpdecimal
|
||||
mpfr
|
||||
ncurses
|
||||
nettle
|
||||
nghttp2
|
||||
nss
|
||||
nss-mdns
|
||||
ocl-icd
|
||||
openal-soft
|
||||
openldap
|
||||
openssl
|
||||
opus
|
||||
orc
|
||||
ostree
|
||||
p11-kit
|
||||
pam
|
||||
pango
|
||||
pcre
|
||||
pcre2
|
||||
perl
|
||||
perl-Encode
|
||||
pixman
|
||||
pkgconf
|
||||
polkit
|
||||
popt
|
||||
pulseaudio
|
||||
pygobject3
|
||||
python3.10
|
||||
rdma-core
|
||||
readline
|
||||
rpm
|
||||
rust-rav1e
|
||||
samba
|
||||
sane-backends
|
||||
SDL2
|
||||
spirv-tools
|
||||
sqlite
|
||||
systemd
|
||||
unixODBC
|
||||
util-linux
|
||||
v4l-utils
|
||||
vkd3d
|
||||
vulkan-loader
|
||||
wayland
|
||||
wine
|
||||
xz
|
||||
zlib
|
||||
zstd
|
||||
Loading…
Add table
Add a link
Reference in a new issue