summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-07 20:31:23 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-07 20:42:05 -0400
commite31f9606235bc9de090279da8371849b64d4275a (patch)
treee46bc963b4fb4e73f8f962682ab40b0c41515b60 /dev-util/min-cscope
parentnet-analyzer/rrdtool: cairo[svg] -> svg(+) (diff)
downloadgentoo-e31f9606235bc9de090279da8371849b64d4275a.tar.gz
gentoo-e31f9606235bc9de090279da8371849b64d4275a.tar.bz2
gentoo-e31f9606235bc9de090279da8371849b64d4275a.zip
dev-util/min-cscope: fix build with upcoming clang16
Also sneak in the missing ncurses dep while revbumping. Closes: https://bugs.gentoo.org/871162 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-util/min-cscope')
-rw-r--r--dev-util/min-cscope/files/min-cscope-16.1.0-pointer-type.patch11
-rw-r--r--dev-util/min-cscope/min-cscope-16.1.0-r2.ebuild (renamed from dev-util/min-cscope/min-cscope-16.1.0-r1.ebuild)7
2 files changed, 17 insertions, 1 deletions
diff --git a/dev-util/min-cscope/files/min-cscope-16.1.0-pointer-type.patch b/dev-util/min-cscope/files/min-cscope-16.1.0-pointer-type.patch
new file mode 100644
index 000000000000..6d54b253b501
--- /dev/null
+++ b/dev-util/min-cscope/files/min-cscope-16.1.0-pointer-type.patch
@@ -0,0 +1,11 @@
+Fix build with -Werror=incompatible-pointer-types that's due
+to become a default on clang16.
+
+https://bugs.gentoo.org/871162
+--- a/src/exec.c
++++ b/src/exec.c
+@@ -75,3 +75,3 @@
+ int exitcode = -1; /* initialize, to avoid warning */
+- const char *argv[BUFSIZ];
++ char *argv[BUFSIZ];
+ pid_t p;
diff --git a/dev-util/min-cscope/min-cscope-16.1.0-r1.ebuild b/dev-util/min-cscope/min-cscope-16.1.0-r2.ebuild
index 0d3a3575f8b8..1dd28afb54b3 100644
--- a/dev-util/min-cscope/min-cscope-16.1.0-r1.ebuild
+++ b/dev-util/min-cscope/min-cscope-16.1.0-r2.ebuild
@@ -15,10 +15,14 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug"
+RDEPEND="sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+
DOCS=( AUTHORS README{,.cscope} TODO )
PATCHES=(
"${FILESDIR}/${P}-tinfo.patch" # bug #678886
+ "${FILESDIR}/${P}-pointer-type.patch"
)
src_prepare() {
@@ -29,7 +33,8 @@ src_prepare() {
}
src_configure() {
- append-flags -I"${S}"/sort
+ # -D_GNU_SOURCE for qsort_r, bug #871162
+ append-cppflags -I"${S}"/sort -D_GNU_SOURCE
cmake_src_configure
}