commit:     4153ee687b291e4ce63a3826a85ec044b736a492
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 28 00:31:29 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 28 02:34:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4153ee68

sys-block/scsiping: fix build with clang16

Previous commit let this respect CC, so maybe clang
will be used now...

Closes: https://bugs.gentoo.org/870445
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 sys-block/scsiping/files/scsiping-0.0.1-clang16.patch | 8 ++++++++
 sys-block/scsiping/scsiping-0.0.1-r1.ebuild           | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/sys-block/scsiping/files/scsiping-0.0.1-clang16.patch 
b/sys-block/scsiping/files/scsiping-0.0.1-clang16.patch
new file mode 100644
index 000000000000..9e57d9cc4aa0
--- /dev/null
+++ b/sys-block/scsiping/files/scsiping-0.0.1-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/870445
+--- a/main.c
++++ b/main.c
+@@ -2,2 +2,4 @@
+ #include <stdio.h>
++#include <stdlib.h>
++#include <sys/ioctl.h>
+ #include <string.h>

diff --git a/sys-block/scsiping/scsiping-0.0.1-r1.ebuild 
b/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
index 745fd177ef62..d3777024a378 100644
--- a/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
+++ b/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
@@ -13,6 +13,10 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-clang16.patch
+)
+
 src_prepare() {
        default
 

Reply via email to