]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
kernel: install bc 2425/head
authorIlya Dryomov <idryomov@gmail.com>
Thu, 14 Aug 2025 09:59:58 +0000 (11:59 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 14 Aug 2025 10:07:13 +0000 (12:07 +0200)
bc has been required for building the Linux kernel for a long time.
It was installed explicitly (albeit from the wrong script) in the deb
case, but not installed in the rpm case:

  error: Failed build dependencies:
   bc is needed by kernel-6.17.0_rc1_g0dccf5229fc7-1.x86_64
  make[2]: *** [scripts/Makefile.package:75: binrpm-pkg] Error 11

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
kernel/build/build_deb
kernel/build/setup

index de59dfcd0f9ec386b9df24b25eb0e85f4b3503ee..40c24e56a37e33396c52ba1d447ce7c99243d175 100644 (file)
@@ -41,9 +41,6 @@ echo "*****"
 env
 echo "*****"
 
-# Install build dependencies
-sudo apt-get install -y bc
-
 # Clean the upper level debs
 rm -f ../*.deb
 
index 732c67bcd4375fd369180c9a1fe352aa49c9d0ff..4a8b6335e88c08699be0d48d929e80309eeea897 100644 (file)
@@ -30,6 +30,7 @@ fi
 export LC_ALL=C # the following is vulnerable to i18n
 
 if test -f /etc/redhat-release ; then
+    $SUDO yum install -y bc
     $SUDO yum install -y elfutils-libelf-devel  # for ORC unwinder
     $SUDO yum install -y flex bison  # for Kconfig
     $SUDO yum install -y dwarves
@@ -42,6 +43,7 @@ if test -f /etc/redhat-release ; then
 fi
 
 if which apt-get > /dev/null ; then
+    $SUDO apt-get install -y bc
     $SUDO apt-get install -y lsb-release
     $SUDO apt-get install -y libelf-dev  # for ORC unwinder
     $SUDO apt-get install -y flex bison  # for Kconfig