* [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmDownload/, x11-plugins/wmDownload/files/
@ 2024-04-03 8:14 Bernard Cafarelli
0 siblings, 0 replies; only message in thread
From: Bernard Cafarelli @ 2024-04-03 8:14 UTC (permalink / raw
To: gentoo-commits
commit: 09f2f5b261a39c21904223eeb8f1da1d5d9b7a67
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Tue Apr 2 06:40:41 2024 +0000
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Wed Apr 3 08:10:32 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09f2f5b2
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 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/36052
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>
.../files/wmDownload-0.1.2a-shorten-integers.patch | 13 +++++++++++++
...ownload-0.1.2a-r4.ebuild => wmDownload-0.1.2a-r5.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
similarity index 89%
rename from x11-plugins/wmDownload/wmDownload-0.1.2a-r4.ebuild
rename to 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 )
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-03 8:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 8:14 [gentoo-commits] repo/gentoo:master commit in: x11-plugins/wmDownload/, x11-plugins/wmDownload/files/ Bernard Cafarelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox