From 0d73805d6a949a1e222ad8955f35d4931d9a2818 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 13 Oct 2022 23:13:48 -0400 Subject: x11-misc/xdock: fix build w/ upcoming clang16 Closes: https://bugs.gentoo.org/871549 Signed-off-by: Ionen Wolkens --- x11-misc/xdock/files/xdock-0.3.0-clang16.patch | 19 +++++++++++++ x11-misc/xdock/xdock-0.3.0-r1.ebuild | 39 ++++++++++++++++++++++++++ x11-misc/xdock/xdock-0.3.0.ebuild | 38 ------------------------- 3 files changed, 58 insertions(+), 38 deletions(-) create mode 100644 x11-misc/xdock/files/xdock-0.3.0-clang16.patch create mode 100644 x11-misc/xdock/xdock-0.3.0-r1.ebuild delete mode 100644 x11-misc/xdock/xdock-0.3.0.ebuild (limited to 'x11-misc/xdock') diff --git a/x11-misc/xdock/files/xdock-0.3.0-clang16.patch b/x11-misc/xdock/files/xdock-0.3.0-clang16.patch new file mode 100644 index 000000000000..17db7dbb0433 --- /dev/null +++ b/x11-misc/xdock/files/xdock-0.3.0-clang16.patch @@ -0,0 +1,19 @@ +https://bugs.gentoo.org/871549 +--- a/src/docks/xdcalendar.c ++++ b/src/docks/xdcalendar.c +@@ -1,2 +1,3 @@ + #include ++#include + #include +--- a/src/docks/xdmemory.c ++++ b/src/docks/xdmemory.c +@@ -1,2 +1,3 @@ + #include ++#include + #include +--- a/src/lib/network.c ++++ b/src/lib/network.c +@@ -10,2 +10,3 @@ + # include ++# include + # define INVALID_SOCKET -1 diff --git a/x11-misc/xdock/xdock-0.3.0-r1.ebuild b/x11-misc/xdock/xdock-0.3.0-r1.ebuild new file mode 100644 index 000000000000..4c830a3fe0f3 --- /dev/null +++ b/x11-misc/xdock/xdock-0.3.0-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Emulates Window Maker docks (runs in any window manager)" +HOMEPAGE="https://xdock.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="x11-libs/libX11" +DEPEND=" + ${RDEPEND} + x11-base/xorg-proto" + +DOCS=( API AUTHORS ChangeLog README TODO ) + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.0-ldconfig.patch + "${FILESDIR}"/${P}-clang16.patch +) + +src_prepare() { + default + + sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' configure.ac || die + eautoreconf +} + +src_install() { + default + + find "${ED}" -type f -name '*.la' -delete || die +} diff --git a/x11-misc/xdock/xdock-0.3.0.ebuild b/x11-misc/xdock/xdock-0.3.0.ebuild deleted file mode 100644 index dd2c66023042..000000000000 --- a/x11-misc/xdock/xdock-0.3.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit autotools - -DESCRIPTION="Emulates Window Maker docks (runs in any window manager)" -HOMEPAGE="https://xdock.sourceforge.net/" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -RDEPEND="x11-libs/libX11" -DEPEND=" - ${RDEPEND} - x11-base/xorg-proto" - -DOCS=( API AUTHORS ChangeLog README TODO ) - -PATCHES=( - "${FILESDIR}"/${PN}-0.2.0-ldconfig.patch -) - -src_prepare() { - default - - sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' configure.ac || die - eautoreconf -} - -src_install() { - default - - find "${ED}" -type f -name '*.la' -delete || die -} -- cgit v1.2.3-65-gdbad