summaryrefslogtreecommitdiff
path: root/system/abuild/inode.patch
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2022-01-19 14:37:50 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-05-01 17:05:45 -0500
commit0070e5b241daff55f93b747761d877ffb24123ad (patch)
tree7a33e3e971989484a96a4a29e4517f8e89927c4d /system/abuild/inode.patch
parent41053876509c8e940eb1447717bf2655484bf6af (diff)
downloadpackages-0070e5b241daff55f93b747761d877ffb24123ad.tar.gz
packages-0070e5b241daff55f93b747761d877ffb24123ad.tar.bz2
packages-0070e5b241daff55f93b747761d877ffb24123ad.tar.xz
packages-0070e5b241daff55f93b747761d877ffb24123ad.zip
system/abuild: Add patch for zero-size files
Diffstat (limited to 'system/abuild/inode.patch')
-rw-r--r--system/abuild/inode.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/system/abuild/inode.patch b/system/abuild/inode.patch
new file mode 100644
index 000000000..a3a7cef09
--- /dev/null
+++ b/system/abuild/inode.patch
@@ -0,0 +1,30 @@
+From 9969ec002c408b616714a99a6317c7f996965dd4 Mon Sep 17 00:00:00 2001
+From: Samuel Holland <samuel@sholland.org>
+Date: Wed, 19 Jan 2022 02:35:19 -0600
+Subject: [PATCH] abuild: Correctly package files that fit in inode
+
+On filesystems such as XFS, abuild will skip small files and symlinks
+because the file fits in an inode and shows a size of 0.
+
+Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
+Acked-by: Zach van Rijn <me@zv.io>
+---
+ abuild.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/abuild.in b/abuild.in
+index 6bb087a..3e83563 100644
+--- a/abuild.in
++++ b/abuild.in
+@@ -927,7 +927,7 @@ prepare_metafiles() {
+ sync;;
+ esac
+
+- local size="$(du -sk | awk '{print $1 * 1024}')"
++ local size="$(du -sk --apparent-size | awk '{print $1 * 1024}')"
+
+ if [ "$arch" != "$apkbuild_arch" ]; then
+ local msg="Split function set arch=\"$arch\" for $name, use subpackages=pkg:split:arch format instead"
+--
+2.32.0 (Apple Git-132)
+