File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ SYSTEM=$(build/bin/sage-guess-package-system)
4
4
5
5
if [ " $SYSTEM " = " fedora" ]; then
6
6
# Need to use --setopt=tsflags="" to avoid errors with gphelp
7
- yum install -y pari-gp --setopt=tsflags=" "
7
+ dnf5 install -y pari-gp --setopt=tsflags=" "
8
+
9
+ # Mitigate upstream packaging bug: https://bugzilla.redhat.com/show_bug.cgi?id=2332429
10
+ # by swapping the incorrectly installed OpenCL-ICD-Loader for the expected ocl-icd
11
+ dnf5 -y swap --repo=' fedora' OpenCL-ICD-Loader ocl-icd
8
12
fi
9
13
10
14
eval $( build/bin/sage-print-system-package-command $SYSTEM " $@ " update)
Original file line number Diff line number Diff line change 44
44
SYSTEM=$(build/bin/sage-guess-package-system)
45
45
if [ "$SYSTEM" = "fedora" ]; then
46
46
# Need to use --setopt=tsflags="" to avoid errors with gphelp
47
- yum install -y pari-gp --setopt=tsflags=""
47
+ dnf5 install -y pari-gp --setopt=tsflags=""
48
+
49
+ # Mitigate upstream packaging bug: https://bugzilla.redhat.com/show_bug.cgi?id=2332429
50
+ # by swapping the incorrectly installed OpenCL-ICD-Loader for the expected ocl-icd
51
+ dnf5 -y swap --repo='fedora' OpenCL-ICD-Loader ocl-icd
48
52
fi
49
53
50
54
eval $(build/bin/sage-print-system-package-command $SYSTEM update)
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ elif emerge --version > /dev/null 2>&1; then
17
17
echo gentoo
18
18
elif apt-get --version > /dev/null 2>&1 ; then
19
19
echo debian
20
- elif yum --version > /dev/null 2>&1 ; then
20
+ elif dnf5 --version > /dev/null 2>&1 ; then
21
21
echo fedora
22
22
elif pacman --version > /dev/null 2>&1 ; then
23
23
echo arch
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ case $system:$command in
154
154
@ (fedora* | redhat* | centos* ):install)
155
155
[ " $YES " = yes ] && options=" $options -y"
156
156
[ " $IGNORE_MISSING " = yes ] && options=" $options --skip-unavailable"
157
- [ -n " $system_packages " ] && print_shell_command ${SUDO} yum install $options $system_packages
157
+ [ -n " $system_packages " ] && print_shell_command ${SUDO} dnf5 install $options $system_packages
158
158
;;
159
159
gentoo* :install)
160
160
[ -n " $system_packages " ] && print_shell_command ${SUDO} emerge $system_packages
You can’t perform that action at this time.
0 commit comments