From 6b34c429b40e0ddb2f010740f7871db9a801f9bc Mon Sep 17 00:00:00 2001 From: Pawel Cieslak Date: Fri, 6 Jan 2023 02:10:41 +0100 Subject: [PATCH] build: set nofile limit to 65535 when building deb packages fakeroot hangs when nofile limit is high: https://bugs.debian.org/920913 Related-To: NEO-7310 Signed-off-by: Pawel Cieslak --- scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh | 3 ++- scripts/packaging/opencl/build_opencl_deb.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh b/scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh index 5081b41bef..c45533e5bb 100755 --- a/scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh +++ b/scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_deb.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# Copyright (C) 2021-2022 Intel Corporation +# Copyright (C) 2021-2023 Intel Corporation # # SPDX-License-Identifier: MIT # @@ -116,6 +116,7 @@ EOF export NEO_SKIP_UNIT_TESTS dch -v ${PKG_VERSION} -m "build $PKG_VERSION" + ulimit -n 65535 || true dpkg-buildpackage -j`nproc --all` -us -uc -b -rfakeroot sudo dpkg -i --force-depends ../*.deb if [ "${LOG_CCACHE_STATS}" == "1" ]; then diff --git a/scripts/packaging/opencl/build_opencl_deb.sh b/scripts/packaging/opencl/build_opencl_deb.sh index b02ede4c78..5e176d4fa7 100755 --- a/scripts/packaging/opencl/build_opencl_deb.sh +++ b/scripts/packaging/opencl/build_opencl_deb.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# Copyright (C) 2021-2022 Intel Corporation +# Copyright (C) 2021-2023 Intel Corporation # # SPDX-License-Identifier: MIT # @@ -115,6 +115,7 @@ EOF export NEO_SKIP_UNIT_TESTS dch -v ${PKG_VERSION} -m "build $PKG_VERSION" -b + ulimit -n 65535 || true dpkg-buildpackage -j`nproc --all` -us -uc -b -rfakeroot sudo dpkg -i --force-depends ../*.deb if [ "${LOG_CCACHE_STATS}" == "1" ]; then