aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-abuild-properly-detect-package-size-on-filesystems.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/abuild/0001-abuild-properly-detect-package-size-on-filesystems.patch')
-rw-r--r--main/abuild/0001-abuild-properly-detect-package-size-on-filesystems.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/main/abuild/0001-abuild-properly-detect-package-size-on-filesystems.patch b/main/abuild/0001-abuild-properly-detect-package-size-on-filesystems.patch
new file mode 100644
index 0000000000..2aab1b1c93
--- /dev/null
+++ b/main/abuild/0001-abuild-properly-detect-package-size-on-filesystems.patch
@@ -0,0 +1,18 @@
+diff --git a/abuild.in b/abuild.in
+index 35b7995572..2d1d9e644d 100644
+--- a/abuild.in
++++ b/abuild.in
+@@ -812,6 +812,13 @@ prepare_metafiles() {
+ cd "$dir"
+ mkdir -p "$controldir"
+ local builddate=$(date -u "+%s")
++
++ # Fix package size on several filesystems
++ case "$(df -PT . | awk 'END {print $2}')" in
++ btrfs|ecryptfs|zfs)
++ sync;;
++ esac
++
+ local size=$(du -sk | awk '{print $1 * 1024}')
+
+ if [ "$arch" != "$apkbuild_arch" ]; then