From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 81577158020 for ; Wed, 23 Nov 2022 00:48:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCB3AE0BEC; Wed, 23 Nov 2022 00:48:46 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B277EE0BEC for ; Wed, 23 Nov 2022 00:48:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CCF2341371 for ; Wed, 23 Nov 2022 00:48:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 16B7A762 for ; Wed, 23 Nov 2022 00:48:42 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1669164472.0f3b4b7485a41f2662c0780d21e672ae1bb5348d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tcltk/tix/, dev-tcltk/tix/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch dev-tcltk/tix/tix-8.4.3-r2.ebuild X-VCS-Directories: dev-tcltk/tix/files/ dev-tcltk/tix/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0f3b4b7485a41f2662c0780d21e672ae1bb5348d X-VCS-Branch: master Date: Wed, 23 Nov 2022 00:48:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 983f1df5-1dce-40e6-a6a7-e1a38b0e2d38 X-Archives-Hash: 8e005c33316f2487b10fbecb335dc8c7 commit: 0f3b4b7485a41f2662c0780d21e672ae1bb5348d Author: Sam James gentoo org> AuthorDate: Wed Nov 23 00:47:52 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Nov 23 00:47:52 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f3b4b74 dev-tcltk/tix: fix -Wimplicit-int All types ended up being an int so no need to revbump. Doesn't actually full build with Clang 16 though yet. Signed-off-by: Sam James gentoo.org> dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch | 49 +++++++++++++++++++++++ dev-tcltk/tix/tix-8.4.3-r2.ebuild | 7 ++-- 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch b/dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch new file mode 100644 index 000000000000..b97d55c05a77 --- /dev/null +++ b/dev-tcltk/tix/files/tix-8.4.3-wimplicit-int.patch @@ -0,0 +1,49 @@ +https://sourceforge.net/p/tix/bugs/112/ + +Avoid implicit int declarations, a feature removed from C language with C99. + +--- a/generic/tixDiImg.c ++++ b/generic/tixDiImg.c +@@ -352,6 +352,8 @@ Tix_ImageItemDisplay(drawable, iPtr, x, y, width, height, xOffset, yOffset, + int y; + int width; + int height; ++ int xOffset; ++ int yOffset; + int flags; + { + TixImageItem *itPtr = (TixImageItem *)iPtr; +--- a/generic/tixDiWin.c ++++ b/generic/tixDiWin.c +@@ -458,6 +458,8 @@ Tix_WindowItemDisplay(drawable, iPtr, x, y, width, height, xOffset, yOffset, + int y; + int width; + int height; ++ int xOffset; ++ int yOffset; + int flags; + { + TixWindowItem *itPtr = (TixWindowItem *)iPtr; +--- a/generic/tixForm.c ++++ b/generic/tixForm.c +@@ -150,7 +150,7 @@ static Tcl_HashTable masterInfoHashTable; + /* + * Have static variables in this module been initialized? + */ +-static initialized = 0; ++static int initialized = 0; + + static int ReqSize(tkwin, axis) + Tk_Window tkwin; +--- a/unix/tixUnixMwm.c ++++ b/unix/tixUnixMwm.c +@@ -768,7 +768,7 @@ GetMwmInfo(interp, tkwin) + Tcl_Interp * interp; + Tk_Window tkwin; + { +- static inited = 0; ++ static int inited = 0; + Tcl_HashEntry *hashPtr; + int isNew; + + diff --git a/dev-tcltk/tix/tix-8.4.3-r2.ebuild b/dev-tcltk/tix/tix-8.4.3-r2.ebuild index e5534f6912ab..52e0231aaf70 100644 --- a/dev-tcltk/tix/tix-8.4.3-r2.ebuild +++ b/dev-tcltk/tix/tix-8.4.3-r2.ebuild @@ -11,14 +11,14 @@ SRC_URI="mirror://sourceforge/tix/${MY_P}-src.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" - RESTRICT="test" DEPEND=" - dev-lang/tk:0= + dev-lang/tk:= x11-libs/libX11 x11-libs/libXau - x11-libs/libXdmcp" + x11-libs/libXdmcp +" RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}" @@ -26,6 +26,7 @@ S="${WORKDIR}/${MY_P}" PATCHES=( "${FILESDIR}"/${P}-tcl8.5.patch "${FILESDIR}"/${P}-tcl8.6.patch + "${FILESDIR}"/${P}-wimplicit-int.patch ) src_prepare() {