aports/main/ccache/ioctl.patch
MaxPeal f19f08bffd main/ccache: upgrade to 4.4.2
- switch form asciidoc to asciidoctor
- re-enable check()
- SKIP make -C build test on armhf
- test.secondary_redis needs redis-server and redis-cli
- test.secondary_http needs python3
- test.color_diagnostics need util-linux-misc
- Update ioctl.patch for ccache-4.4.2
2021-12-12 14:16:55 +00:00

18 lines
642 B
Diff

musl uses an `int` instead of a `unsigend long` for the ioctl function
prototype, contrary to glibc, since POSIX mandates the former. This
causes a spurious error on ppc64le which can be silenced by casting to
int explicitly.
See https://www.openwall.com/lists/musl/2020/01/20/2
--- ccache-4.4.2.orig/src/Util.cpp 2021-09-28 21:39:22.000000000 +0200
+++ ccache-4.4.2/src/Util.cpp 2021-11-05 16:16:59.972620042 +0100
@@ -253,7 +253,7 @@ clone_file(const std::string& src, const
}
}
- if (ioctl(*dest_fd, FICLONE, *src_fd) != 0) {
+ if (ioctl(*dest_fd, (int)FICLONE, *src_fd) != 0) {
throw core::Error(strerror(errno));
}