Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/scsiping/, sys-block/scsiping/files/
Date: Wed, 28 Sep 2022 02:35:32
Message-Id: 1664332474.4153ee687b291e4ce63a3826a85ec044b736a492.ionen@gentoo
1 commit: 4153ee687b291e4ce63a3826a85ec044b736a492
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 28 00:31:29 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 02:34:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4153ee68
7
8 sys-block/scsiping: fix build with clang16
9
10 Previous commit let this respect CC, so maybe clang
11 will be used now...
12
13 Closes: https://bugs.gentoo.org/870445
14 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
15
16 sys-block/scsiping/files/scsiping-0.0.1-clang16.patch | 8 ++++++++
17 sys-block/scsiping/scsiping-0.0.1-r1.ebuild | 4 ++++
18 2 files changed, 12 insertions(+)
19
20 diff --git a/sys-block/scsiping/files/scsiping-0.0.1-clang16.patch b/sys-block/scsiping/files/scsiping-0.0.1-clang16.patch
21 new file mode 100644
22 index 000000000000..9e57d9cc4aa0
23 --- /dev/null
24 +++ b/sys-block/scsiping/files/scsiping-0.0.1-clang16.patch
25 @@ -0,0 +1,8 @@
26 +https://bugs.gentoo.org/870445
27 +--- a/main.c
28 ++++ b/main.c
29 +@@ -2,2 +2,4 @@
30 + #include <stdio.h>
31 ++#include <stdlib.h>
32 ++#include <sys/ioctl.h>
33 + #include <string.h>
34
35 diff --git a/sys-block/scsiping/scsiping-0.0.1-r1.ebuild b/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
36 index 745fd177ef62..d3777024a378 100644
37 --- a/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
38 +++ b/sys-block/scsiping/scsiping-0.0.1-r1.ebuild
39 @@ -13,6 +13,10 @@ LICENSE="GPL-2"
40 SLOT="0"
41 KEYWORDS="amd64 ppc x86"
42
43 +PATCHES=(
44 + "${FILESDIR}"/${P}-clang16.patch
45 +)
46 +
47 src_prepare() {
48 default