From 229d5601ae2eca4f143dabdfb36406376cf88c03 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 12 May 2023 17:49:26 +0100 Subject: gentoo auto-resync : 12:05:2023 - 17:49:26 --- x11-plugins/wmrack/Manifest | 2 ++ ...ecifier-missing-and-undeclared-function-c.patch | 41 ++++++++++++++++++++++ x11-plugins/wmrack/wmrack-1.4-r2.ebuild | 37 +++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 x11-plugins/wmrack/files/1.4-Fix-type-specifier-missing-and-undeclared-function-c.patch create mode 100644 x11-plugins/wmrack/wmrack-1.4-r2.ebuild (limited to 'x11-plugins/wmrack') diff --git a/x11-plugins/wmrack/Manifest b/x11-plugins/wmrack/Manifest index 1263025b9400..c893fecfab2d 100644 --- a/x11-plugins/wmrack/Manifest +++ b/x11-plugins/wmrack/Manifest @@ -1,3 +1,5 @@ +AUX 1.4-Fix-type-specifier-missing-and-undeclared-function-c.patch 1208 BLAKE2B d5eaee78c13e5647a6f92fc55aada77301fa2e6f437f45acfc6c84260fb30faa166319033ee25a2f501d48e374e823b5b371e14d4ee37058f19b11405445864f SHA512 926913900f775a70779d4b1555bfa723d3bb1ead9c9a859c1e7fb1a1433cabc8e3da41244bf0131f8057c92ea73741654962e6395b575ef4315050897d92ff69 DIST wmrack-1.4.tar.gz 124243 BLAKE2B a1d8581b9ebc252429abe4c04aebbe9774d8a84048511b6dc5af02b8495f9c6c50d23e3fa26dd68f31d2d155ddae28e19c37d81082ed4378d269d19fd6888ae6 SHA512 27ed399a56f7f37e494005f02e74a09ad22c448ac288a3d2123987488ce65460f4c80841e8ff0fe3ff20db156130bc9e4894b42280181a1af58e06c1f8320a1e EBUILD wmrack-1.4-r1.ebuild 764 BLAKE2B 0718b355b3486d13ef3d42e81b4b48591478462d8498e581326afdd96a855135e958c00f96bde27915419be8588cb49b2252b10ddb93b301ccd9ecb62bf60ddc SHA512 aba841821143009d8a15d98eb50db13ad5618b8a38497ca4df45f8aa80f8553e335ac6808cae6669963bae37bdd63a8c872faad20aa5a63632081017fe4117e7 +EBUILD wmrack-1.4-r2.ebuild 856 BLAKE2B 77eadbc676a662004d4c94d8fd3c7c95961b8c1de975e65b93144c8b08e1760dccdf865f6cc5f4f7b06887836ed11e1490656f3d283e824ea5106ef6be72a972 SHA512 dc648b66a1463d7e9e046e3d9dba5e49359f4c8eec24debf7e27bc02284650d9fdbb8c1fde69fef4b4ad43dae0860ca563c943d946a1a5ee77fc23d2ea9774b9 MISC metadata.xml 329 BLAKE2B 525a644fe58ab8a6d8ce6ec753a4ced0cd8802eb1d26080d8c314ed360f55dbe9bdaee92e64bd457c5862a264c30e751b1c4a8f89558f72315836beb4fd13c56 SHA512 e78f6a0002c43bbf9a272ffd27069fc8f247b0ffec60d1575fa1128e00cba7de82bab933feea18bf86b75b9f2cfb8279b5e842a0cc4830a654f9d89024b0b653 diff --git a/x11-plugins/wmrack/files/1.4-Fix-type-specifier-missing-and-undeclared-function-c.patch b/x11-plugins/wmrack/files/1.4-Fix-type-specifier-missing-and-undeclared-function-c.patch new file mode 100644 index 000000000000..6e44f34a2ee2 --- /dev/null +++ b/x11-plugins/wmrack/files/1.4-Fix-type-specifier-missing-and-undeclared-function-c.patch @@ -0,0 +1,41 @@ +From ff65fefaa53a199933c005129b78e0c4f5a5ab47 Mon Sep 17 00:00:00 2001 +From: Brahmajit Das +Date: Thu, 11 May 2023 11:34:42 +0530 +Subject: [PATCH] Fix type specifier missing and undeclared function call with + clang 16 + +- wmrack.c:1243:12: error: type specifier missing, defaults to 'int' +- wmrack.c:1300:22: error: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations + +Signed-off-by: Brahmajit Das + +Bug: https://bugs.gentoo.org/899046 +Upstream Issue: https://sourceforge.net/p/wmrack/patches/3/ +--- + wmrack.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/wmrack.c b/wmrack.c +index ea49d40..4aa3d56 100644 +--- a/wmrack.c ++++ b/wmrack.c +@@ -25,6 +25,7 @@ + #include + #include + #include ++#include + + #include + #include +@@ -1240,7 +1241,7 @@ redrawDisplay (int force_win, int force_disp) + int track[2] = { 0, 0 }; + int cdtime[4] = { 0, 0, 0, 0 }; + static time_t last_flash_time; +- static flash = 0; ++ static int flash = 0; + int st = 0, newRack = RACK_NODISC, im_stop = 0; + MSF pos; + +-- +2.40.1 + diff --git a/x11-plugins/wmrack/wmrack-1.4-r2.ebuild b/x11-plugins/wmrack/wmrack-1.4-r2.ebuild new file mode 100644 index 000000000000..9a17bb0441bc --- /dev/null +++ b/x11-plugins/wmrack/wmrack-1.4-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="a sound mixer and CD player dockapp" +HOMEPAGE="http://wmrack.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND="x11-libs/libX11 + x11-libs/libXpm + x11-libs/libXext" +DEPEND="${RDEPEND} + x11-base/xorg-proto" + +DOCS=( CHANGES README TODO ) + +PATCHES=( "${FILESDIR}"/${PV}-Fix-type-specifier-missing-and-undeclared-function-c.patch ) + +src_prepare() { + default + ln -s grey.style XPM/standart.style || die + sed -i \ + -e 's:gcc:$(CC):' \ + -e 's:$(OBJECTS) -o:$(OBJECTS) $(LDFLAGS) -o:' "${S}"/Makefile.in || die +} + +src_install() { + emake LIBDIR="${D}/usr/$(get_libdir)/WMRack" \ + MANDIR="${D}/usr/share/man" BINDIR="${D}/usr/bin" \ + install + einstalldocs +} -- cgit v1.2.3