summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-04-23 04:15:14 -0400
committerSamuel Dionne-Riel <samuel@dionne-riel.com>2021-04-24 14:49:04 -0400
commit05c13a03e2fb27186d8d1f2825807bf156512111 (patch)
tree9ecba23759ade2f003f66b807119f6b9312d2cd9 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent0ca4f6b7395ffcfd0153791f9623a4844650b023 (diff)
make-disk-image: Get proper size for automatic size
On some filesystems, `du` without `--apparent-size` will not give the actual size for a file. Using `--apparent-size` will give us the actual file size. Though, this is not actually correct still. 1000 × 1 bytes is not 1000 bytes. It is 1000 × ceil(filesize/blockSize)*blockSize. So instead of adding up the actual file sizes. We are adding up the block sizes. Note that this also changes the builder to work with *bytes*, rather than with any other units. Doing maths on bytes is less likely to go awry than doing it on other units.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions