diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-04-20 21:27:18 +0200 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-04-20 21:27:47 +0200 |
commit | 1f464f19b3359f5d325c3cded647614b822cd502 (patch) | |
tree | 2016e74e9e323fcd136cbf924a9fa111bdfa6eab /dev-ml/core_unix | |
parent | net-misc/ena-driver: drop 2.8.0, 2.8.2 (diff) | |
download | gentoo-1f464f19b3359f5d325c3cded647614b822cd502.tar.gz gentoo-1f464f19b3359f5d325c3cded647614b822cd502.tar.bz2 gentoo-1f464f19b3359f5d325c3cded647614b822cd502.zip |
dev-ml/core_unix: fix musl build
Closes: https://bugs.gentoo.org/895840
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/core_unix')
-rw-r--r-- | dev-ml/core_unix/core_unix-0.15.2-r1.ebuild | 2 | ||||
-rw-r--r-- | dev-ml/core_unix/files/core_unix-0.15.2-musl.patch | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild b/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild index afbc6c1676e2..ae132f20399d 100644 --- a/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild +++ b/dev-ml/core_unix/core_unix-0.15.2-r1.ebuild @@ -26,6 +26,8 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="" +PATCHES=( "${FILESDIR}"/${P}-musl.patch ) + src_prepare() { sed -i \ -e "s:gcc:$(tc-getCC):" \ diff --git a/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch b/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch new file mode 100644 index 000000000000..fb1101426ba2 --- /dev/null +++ b/dev-ml/core_unix/files/core_unix-0.15.2-musl.patch @@ -0,0 +1,11 @@ +--- a/bigstring_unix/src/bigstring_unix_stubs.c 2023-04-20 21:13:23.374157594 +0200 ++++ b/bigstring_unix/src/bigstring_unix_stubs.c 2023-04-20 21:13:32.900011808 +0200 +@@ -699,7 +699,7 @@ + int count = Int_val(v_count); + size_t total_len = 0; + struct iovec *iovecs = copy_iovecs(&total_len, v_iovecs, count); +- struct msghdr msghdr = { NULL, 0, NULL, 0, NULL, 0, 0 }; ++ struct msghdr msghdr = { NULL }; + ssize_t ret; + if (total_len > THREAD_IO_CUTOFF || contains_mmapped(v_iovecs, count)) { + Begin_roots1(v_iovecs); |