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 <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak 2023-01-06 02:10:41 +01:00 committed by Compute-Runtime-Automation
parent d6c9269dfe
commit 6b34c429b4
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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