mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
net-irc/dccserver: fix build for clang16
Closes: https://bugs.gentoo.org/875026 Closes: https://bugs.gentoo.org/861377 Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de> Closes: https://github.com/gentoo/gentoo/pull/28475 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
30
net-irc/dccserver/dccserver-0.5-r2.ebuild
Normal file
30
net-irc/dccserver/dccserver-0.5-r2.ebuild
Normal file
@@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Linux implementation of the mirc dccserver command"
|
||||
HOMEPAGE="https://www.nih.at/dccserver/"
|
||||
SRC_URI="https://www.nih.at/dccserver/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~riscv ~x86"
|
||||
|
||||
RDEPEND="dev-libs/libbsd"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-include-bsd-string-header.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Respect AR
|
||||
sed -i -e "s/AR = /AR ?= /" lib/Makefile.in || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
AR="$(tc-getAR)" default
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
This uses strlcpy() from bsd/string.h. On non BSD system those headers are to find under
|
||||
/usr/include/bsd/. See also man libbsd.
|
||||
|
||||
Bug: https://bugs.gentoo.org/875026
|
||||
Bug: https://bugs.gentoo.org/861377
|
||||
|
||||
Pascal Jäger <pascal.jaeger@leimstift.de> (2022-11-29)
|
||||
|
||||
--- a/lib/dcc.c
|
||||
+++ b/lib/dcc.c
|
||||
@@ -37,7 +37,7 @@
|
||||
#endif /* HAVE_ERR_H */
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
-#include <string.h>
|
||||
+#include <bsd/string.h>
|
||||
|
||||
#include "dcc.h"
|
||||
#include "io.h"
|
||||
Reference in New Issue
Block a user