From a9266a413c810c372db48497bbe9916000744239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Wed, 17 Jan 2024 13:10:39 -0500 Subject: [PATCH] fix: workaround for bug in patch --- src/macros.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/macros.mk b/src/macros.mk index 8836dc6..59554df 100644 --- a/src/macros.mk +++ b/src/macros.mk @@ -12,6 +12,8 @@ # - TARGET defaults to "package" # - EXTRA_ARGS will be blindly injected # - packages may also define a "test" layer +# - the ulimit line is to workaround a bug in patch when the nofile limit is too large: +# https://savannah.gnu.org/bugs/index.php?62958 # TODO: # - try to disable networking on fetch layers with something like: # $(if $(filter fetch,$(lastword $(subst -, ,$(TARGET)))),,--network=none) @@ -29,6 +31,7 @@ define build SOURCE_DATE_EPOCH=1 \ $(BUILDER) \ build \ + --ulimit nofile=2048:16384 \ -t $(REGISTRY)/$(NAME):$(VERSION) \ --build-arg REGISTRY=$(REGISTRY) \ --platform $(PLATFORM) \