From d04dd6f2cd981d306dcb3405c2db32ca59709864 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 2 Aug 2024 16:48:59 +0000 Subject: [PATCH] Config: Fix computing the package file size Signed-off-by: Michael Tremer --- lfs/Config | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lfs/Config b/lfs/Config index 11074e94a6..f02675630e 100644 --- a/lfs/Config +++ b/lfs/Config @@ -418,9 +418,6 @@ define CREATE_PACKAGE . endef -# Returns the filesize in bytes -PACKAGE_SIZE = stat --format=%s $(1) - # Creates the meta file for a Pakfire package define CREATE_META # Clear/create the file @@ -431,7 +428,7 @@ define CREATE_META echo "Summary: $(SUMMARY)" >> $(2) echo "ProgVersion: $(VER)" >> $(2) echo "Release: $(PAK_VER)" >> $(2) - echo "Size: $(call PACKAGE_SIZE,$(1))" >> $(2) + echo "Size: $(shell stat --format=%s $(1))" >> $(2) echo "Dependencies: $(DEPS)" >> $(2) echo "File: $(PROG)-$(VER)-$(PAK_VER).ipfire" >> $(2) echo "Services: $(SERVICES)" >> $(2) -- 2.47.3