diff options
author | NHOrus <jy6x2b32pie9@yahoo.com> | 2024-04-02 10:40:41 +0400 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2024-04-03 10:10:32 +0200 |
commit | 09f2f5b261a39c21904223eeb8f1da1d5d9b7a67 (patch) | |
tree | 88323e28ac9c0c9d0d8ab839665607b221482e3c /x11-plugins/wmDownload | |
parent | games-util/heroic-bin: add 2.14.0 (diff) | |
download | gentoo-09f2f5b261a39c21904223eeb8f1da1d5d9b7a67.tar.gz gentoo-09f2f5b261a39c21904223eeb8f1da1d5d9b7a67.tar.bz2 gentoo-09f2f5b261a39c21904223eeb8f1da1d5d9b7a67.zip |
x11-plugins/wmDownload: ensure GCC-14 and C99 compatibility
Switching unsigned ints to unsigned shorts: That's (pointers to) what library craves.
Closes: https://bugs.gentoo.org/919225
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36052
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins/wmDownload')
-rw-r--r-- | x11-plugins/wmDownload/files/wmDownload-0.1.2a-shorten-integers.patch | 13 | ||||
-rw-r--r-- | x11-plugins/wmDownload/wmDownload-0.1.2a-r5.ebuild (renamed from x11-plugins/wmDownload/wmDownload-0.1.2a-r4.ebuild) | 9 |
2 files changed, 18 insertions, 4 deletions
diff --git a/x11-plugins/wmDownload/files/wmDownload-0.1.2a-shorten-integers.patch b/x11-plugins/wmDownload/files/wmDownload-0.1.2a-shorten-integers.patch new file mode 100644 index 000000000000..9a48e8e1ce4c --- /dev/null +++ b/x11-plugins/wmDownload/files/wmDownload-0.1.2a-shorten-integers.patch @@ -0,0 +1,13 @@ +unsigned shorts are enough for libdockapp. Ought to be enough for size of widget +diff -ru wmDownload.orig/wmDownload.c wmDownload/wmDownload.c +--- wmDownload.orig/wmDownload.c 2024-04-02 06:30:58.407108657 +0000 ++++ wmDownload/wmDownload.c 2024-04-02 06:32:26.445684633 +0000 +@@ -266,7 +266,7 @@ + + int main (int argc, char **argv) + { +- unsigned int height, width; ++ unsigned short height, width; + + DACallbacks callbacks = { NULL, buttonPressCallback, NULL, NULL, NULL, NULL, NULL }; + diff --git a/x11-plugins/wmDownload/wmDownload-0.1.2a-r4.ebuild b/x11-plugins/wmDownload/wmDownload-0.1.2a-r5.ebuild index aa1b3b6fea1f..b99cf3c89f26 100644 --- a/x11-plugins/wmDownload/wmDownload-0.1.2a-r4.ebuild +++ b/x11-plugins/wmDownload/wmDownload-0.1.2a-r5.ebuild @@ -1,17 +1,16 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit toolchain-funcs DESCRIPTION="dockapp that displays how much data you've received on each eth and ppp device" -SRC_URI="mirror://sourceforge/wmdownload/${P}.tar.gz" HOMEPAGE="https://wmdownload.sourceforge.net/" +SRC_URI="mirror://sourceforge/wmdownload/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="" RDEPEND=">=x11-libs/libdockapp-0.7:= x11-libs/libX11 @@ -24,6 +23,8 @@ S="${WORKDIR}/${PN}" PATCHES=( "${FILESDIR}"/${P}-makefile.patch "${FILESDIR}"/${PN}-strtouq-musl.patch + "${FILESDIR}"/${P}-shorten-integers.patch + ) DOCS=( CHANGELOG CREDITS HINTS README TODO ) |