Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "package/pkg-utils.mk: break hardlinks in global {TARGET, HOST…
…}_DIR on per-package build" Commit 21d52e5 (package/pkg-utils.mk: break hardlinks in global {TARGET, HOST}_DIR on per-package build) stopped hardlink the source and destination when rsyncing per-package directory, on the rationale that modifying files in-place after the rsync would also modify the original file, and that break foo-rebuild and can cause issues with post-build scripts. However, what 21d52e5 did not envision, is that copying instead of hard-linking has two nasty side effects: - the size increase for the build directory increase with the number of packages and with the depth of th dependency chains for those packages: a (relatively small) build that was previously totalling ~13GiB in output/, now totals north of 122GiB, an almost 10-time increase; - the build time increases, as it takes more time to read+write files than it takes to create a new link to a file; the same build saw an increase of build time from 5min 10s to 7min 30s, a 45% increase. These regressions are both serious, so revert the change; we'll come up with a stopgap measure in follow-up commits. This reverts commit 21d52e5. Signed-off-by: Yann E. MORIN <[email protected]> Cc: Herve Codina <[email protected]> Cc: Peter Korsgaard <[email protected]> Cc: Thomas Petazzoni <[email protected]> Reviewed-by: Herve Codina <[email protected]>
- Loading branch information