From 38b9f5184d76bd76fbb501e3195e7fedbfc020b0 Mon Sep 17 00:00:00 2001 From: Shih-Yi Chen Date: Wed, 1 Apr 2026 05:48:46 +0000 Subject: [PATCH] Fixed mlxbf-scripts should not depend on mlxbf-bootimages Debian: apt install --no-install-recommends mlxbf-scripts To remove: apt remove mlxbf-bootimages mlxbf-bootimages-devsigned mlxbf-bootimages-signed apt-mark manual mlxbf-scripts RPM / Fedora / RHEL(dnf) dnf install --setopt=install_weak_deps=False mlxbf-bfscripts yum install mlxbf-bfscripts --setopt=install_weak_deps=0 To remove: dnf remove mlxbf-bootimages RM #4951903 --- debian/control | 3 ++- mlxbf-bfscripts.spec | 4 +++- mlxbf-bfscripts.spec.rpkg | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 974126a..29e77fa 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,7 @@ Vcs-Git: https://github.com/Mellanox/bfscripts.git Package: mlxbf-scripts Architecture: any -Depends: ${misc:Depends}, mlxbf-bootctl, mlxbf-bootimages | mlxbf-bootimages-devsigned | mlxbf-bootimages-signed, python3, gzip +Depends: ${misc:Depends}, mlxbf-bootctl, python3, gzip +Recommends: mlxbf-bootimages | mlxbf-bootimages-devsigned | mlxbf-bootimages-signed Description: Contains Mellanox BlueField scripts Contains Mellanox BlueField scripts that serve different ancillary purposes. diff --git a/mlxbf-bfscripts.spec b/mlxbf-bfscripts.spec index 5b86dde..742abd9 100644 --- a/mlxbf-bfscripts.spec +++ b/mlxbf-bfscripts.spec @@ -17,7 +17,8 @@ BuildRequires: /usr/bin/pathfix.py Requires: mlxbf-bootctl # Note: mlxbf-bootimages is provided by mlxbf-aarch64-firmware on Fedora. -Requires: mlxbf-bootimages +# Not required on BlueField-4; kept as a weak dependency for BF1/BF2/BF3. +Recommends: mlxbf-bootimages Requires: bash Requires: python3 Requires: grub2-tools @@ -30,6 +31,7 @@ Requires: binutils Requires: systemd Requires: gzip + %description Useful scripts for managing Mellanox BlueField hardware. diff --git a/mlxbf-bfscripts.spec.rpkg b/mlxbf-bfscripts.spec.rpkg index e99c505..f90d6c5 100644 --- a/mlxbf-bfscripts.spec.rpkg +++ b/mlxbf-bfscripts.spec.rpkg @@ -22,7 +22,8 @@ BuildRequires: /usr/bin/pathfix.py Requires: mlxbf-bootctl # Note: mlxbf-bootimages is provided by mlxbf-aarch64-firmware on Fedora. -Requires: mlxbf-bootimages +# Not required on BlueField-4; kept as a weak dependency for BF1/BF2/BF3. +Recommends: mlxbf-bootimages Requires: bash Requires: python3 Requires: grub2-tools